home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4422 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.6 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!chaph.usc.edu!girtab.usc.edu!not-for-mail
  2. From: sloyola@girtab.usc.edu (Steven J. Loyola)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Bitmaps on Buttons wish BC++
  5. Date: 22 Dec 1992 09:37:03 -0800
  6. Organization: University of Southern California, Los Angeles, CA
  7. Lines: 31
  8. Distribution: world
  9. Message-ID: <1h7jnvINNk37@girtab.usc.edu>
  10. References: <1h76k1INNflb@ceres.kingston.ac.uk>
  11. NNTP-Posting-Host: girtab.usc.edu
  12.  
  13. In article <1h76k1INNflb@ceres.kingston.ac.uk> ee_d270@ceres.kingston.ac.uk (Richie Poo's) writes:
  14. >
  15. >Hi.
  16. >
  17. >I am trying to put pictures on buttons in dialog boxes will the
  18. >resource workshop supplied with BCC++.
  19. >
  20. >Does anyone know how to do this as I cant get it to work.
  21. >
  22. >Thanks a lot
  23. >
  24. >ee_d270@king.ac.uk
  25. >
  26.  
  27. First, look in the file BWCCAPI.RW (it should be in your DOC subdirectory).  It
  28. and the other .RW files can be helpful sometimes.  In general, you need to:
  29. 1)  define the button class as "BorBtn" (ctrl-dblclick to get this dlg box)
  30. 2)  create 3 bitmaps for each button (copy & paste helps here)
  31.     Button Control Id + 1000:  Normal VGA image
  32.            "          + 3000:  Pressed VGA image
  33.            "          + 5000:  Focused VGA image
  34.     (add 1000 to each for EGA)
  35.     Your bitmaps should include the frame and shadow for each button (use the
  36.     Resource Workshop on itself to see how Borland makes theirs.
  37.  
  38. I may be forgetting some details, so check those .RW files.  Also, I can't
  39. overemphasize how helpful it can be to use the Resource Workshop to look at the
  40. resources in an .exe file.
  41.  
  42. Hope this helps,
  43. Steve Loyola
  44.