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