How do I toggle a toolbar button..?

Just starting out? Need help? Post your questions and find answers here.
Jones1969
New User
New User
Posts: 7
Joined: Fri May 02, 2003 9:35 am
Location: Denmark

How do I toggle a toolbar button..?

Post 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
<FONT color="DarkGray" size="1">Registered PureBasic user. (Win 98 2nd, AMD Duron, 800 MHz, 192 MB RAM)</FONT>
plouf
Enthusiast
Enthusiast
Posts: 281
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Post by plouf »

GetGadgetState() and SetGAdgetState() set and retrieve Button state
1 for pushed 0 otherwise
but i have not aclue about toolbar
Christos
Jones1969
New User
New User
Posts: 7
Joined: Fri May 02, 2003 9:35 am
Location: Denmark

Post by Jones1969 »

Thanks, I think I'll just create my own "toolbar" made of Imagebuttons then.

/Jones
<FONT color="DarkGray" size="1">Registered PureBasic user. (Win 98 2nd, AMD Duron, 800 MHz, 192 MB RAM)</FONT>
plouf
Enthusiast
Enthusiast
Posts: 281
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Post 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 :)
Christos
Post Reply