Alyce
Jun 5, 2006
- "Clarified difference between Dan's "bitmap button" and native LB "bmpbutton""
Alyce
Jun 5, 2006
- "Clarified difference between Dan's "bitmap button" and native LB "bmpbutton""
The Windows native way of doing this is having a button with the style _BS_BITMAP and the sending the message _BM_SETIMAGE with the handle of the graphic.
Here's a function I made that simplifies this process, all you have to do is supply that with the handle of the button and the handle to the graphic and it will do everything for you.
(Dan's bitmap button uses a regular Liberty BASIC pushbutton. It is not the same as the native Liberty BASIC bmpbutton control.)