PureBasic Forum
https://www.purebasic.fr/english/

Image gadget
https://www.purebasic.fr/english/viewtopic.php?f=5&t=2908
Page 1 of 1

Author:  BackupUser [ Wed Dec 19, 2001 10:49 pm ]
Post subject: 

Restored from previous forum. Originally posted by Shagwana.

I have a simple request, how would I go about creating a image button that can be toggled. When the image button is up it will display image #x and when the button is down it will display image #y (two different images)?.

http://www.sublimegames.com

Author:  BackupUser [ Thu Dec 20, 2001 12:14 am ]
Post subject: 

Restored from previous forum. Originally posted by Shagwana.

Heh, well I have sort of figured out half the answer myself

The 'ButtonImageGadget' command returns a usefull pointer to the gadget like;

hn=ButtonImageGadget(1, 384, 5, 50, 36, UseImage(0))

Then when I want to change the image in the gadget, i dito;

SendMessage_(hn,#BM_SETIMAGE,0,UseImage(1))

And the image changes

http://www.sublimegames.com

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/