Silverfrost Forums

Welcome to our forums

Dynamically changing image bitmap for %ib button

16 Feb 2011 6:19 #7767

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

16 Feb 2011 6:36 #7768

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.

16 Feb 2011 6:40 #7769

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.

16 Feb 2011 10:38 #7771

i am interested in this too. Often needed

Please login to reply.