home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / programm / 7279 < prev    next >
Encoding:
Text File  |  1993-01-03  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!umn.edu!csus.edu!netcom.com!daveb
  3. From: daveb@netcom.com (Dave Briccetti)
  4. Subject: Re: Putting Icons onto pushbuttons ?
  5. Message-ID: <1993Jan3.053907.1156@netcom.com>
  6. Organization: Dave Briccetti & Assoc., OS/2 Consulting
  7. References: <1992Dec29.125326.5216@ugle.unit.no>
  8. Date: Sun, 3 Jan 1993 05:39:07 GMT
  9. Lines: 21
  10.  
  11. benji@Lise.Unit.NO (Jrn Norheim) writes:
  12. : I am trying to  make a PM application that use pushbuttons quite heavily. I would
  13. : like to put Icons or Bitmaps onto these buttons, but I have not figgured out
  14. : quite how to do this. I would prefer to attach the Icons or Bitmaps to the button
  15. : without having to make a userbutton and catching the BN_PAINT message.
  16. : If anyone could help me with this problem, I would appreciate it very much.
  17.  
  18. Sure.  Just use the BS_ICON style.  
  19.  
  20. I don't remember the exact details of how to specify which icon to 
  21. use for the button, but I believe the icon id is encoded in the button's
  22. text, such as "#101".
  23.  
  24. -- 
  25.  
  26. Dave Briccetti, Owner, Dave Briccetti & Associates
  27. OS/2 Developer/Consultant
  28. P.O. Box 1713
  29. Lafayette, CA  94549-7013
  30.