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
Dynamically changing image bitmap for %ib button
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.
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.
i am interested in this too. Often needed