Page 1 of 1

How do I toggle a toolbar button..?

Posted: Sat Jun 14, 2003 12:28 pm
by Jones1969
I need to toggle a toolbar button between active and passive stages (sort of like the BOLD button in a text editor).
Is this possible? And if it is -- how do I set or check its current stage?
--
I tried the same thing with ordinary buttons, where I can use the #PB_Button_Toggle. But again -- how do I set or check the state of the button?

/Jones

Posted: Sat Jun 14, 2003 1:51 pm
by plouf
GetGadgetState() and SetGAdgetState() set and retrieve Button state
1 for pushed 0 otherwise
but i have not aclue about toolbar

Posted: Sat Jun 14, 2003 2:15 pm
by Jones1969
Thanks, I think I'll just create my own "toolbar" made of Imagebuttons then.

/Jones

Posted: Sat Jun 14, 2003 9:19 pm
by plouf
for ToolBar you can aslo use DAnilo's nice PureTools_I which has
a ToolBArPRo with the posibility to disable it (DisableTBPro())
and more power command seek for danilo's signature :)