forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dynamically changing image bitmap for %ib button

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
acw



Joined: 04 Nov 2005
Posts: 151
Location: Darkest Devon

PostPosted: Wed Feb 16, 2011 7:19 pm    Post subject: Dynamically changing image bitmap for %ib button Reply with quote

Does anyone know if there's a way to dynamically change the bitmap used in a %ib button - not just the state but that actual bitmap. Failing that any method for hiding the button?
Thanks,
Alan
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5005
Location: Salford, UK

PostPosted: Wed Feb 16, 2011 7:36 pm    Post subject: Reply with quote

There is no way to change the bitmap without replacing the whole of the window. You can do this but it is quite tricky. That is, create a new window on top of the old one but with the modified attributes, then close the old window.

You can use the Plato "Spy" tool to see if there is a hwnd (a Windows handle) associated with the button but this is very unlikely. A %tb would be the same but a row of %bt or %tt (or %bb) would have separate hwnds for each button so you could then hide each button at will. %bt and %bb can have images.
Back to top
View user's profile Send private message
acw



Joined: 04 Nov 2005
Posts: 151
Location: Darkest Devon

PostPosted: Wed Feb 16, 2011 7:40 pm    Post subject: Reply with quote

Paul,
Actually I'm using multiple %ib which do give a window handle using %lc and I can move the buttons around, so I guess I could just have a pair of buttons and hide/move them in to place as required.
Thanks.
Back to top
View user's profile Send private message Visit poster's website
DanRRight



Joined: 10 Mar 2008
Posts: 1623
Location: South Pole, Antarctica

PostPosted: Wed Feb 16, 2011 11:38 pm    Post subject: Reply with quote

i am interested in this too. Often needed
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group