View previous topic :: View next topic |
Author |
Message |
acw
Joined: 04 Nov 2005 Posts: 165 Location: Darkest Devon
|
Posted: Wed Feb 16, 2011 7:19 pm Post subject: Dynamically changing image bitmap for %ib button |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Wed Feb 16, 2011 7:36 pm Post subject: |
|
|
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 |
|
|
acw
Joined: 04 Nov 2005 Posts: 165 Location: Darkest Devon
|
Posted: Wed Feb 16, 2011 7:40 pm Post subject: |
|
|
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 |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2816 Location: South Pole, Antarctica
|
Posted: Wed Feb 16, 2011 11:38 pm Post subject: |
|
|
i am interested in this too. Often needed |
|
Back to top |
|
|
|