It is currently Mon Sep 21, 2020 4:36 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject:
PostPosted: Wed Dec 19, 2001 10:49 pm 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Dec 20, 2001 12:14 am 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye