I had posted a question several month ago about toggling between two bitmaps on a toolbar button, depending upon status. My original post is below and a solution attached.
This solution to toggling the save button assumes that there are two files in the graphics subdirectory: one called save_enabled.png and the other called save_disabled.png. When the search button is pressed (toggled), bitmap for the save button is changed in the OnToggle event.
Hope this is helpful to someone.
toggle_example.py (984 Bytes)
ยทยทยท
> Brian Wolf wrote:
>Is there a straight-forward way to add a button to a frame's Toolbar so
> that the bitmap displayed can be toggled easily between two bitmaps,
> depending upon status? For instance, show bitmap1 if data has been
> modified but not yet saved, and show bitmap2 if there are no pending
> updates to make.
--
__________________________________________
Brian Wolf
brian@activustech.com
Activus Technologies Corporation
__________________________________________