SetToolbarButtonState

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

SetToolbarButtonState

Post by blueznl »

SetToolbarButtonState() would change the status of a button on the toolbar...

SetToolbarButtonState(#n,0) - default
SetToolbarButtonState(#n,1) - pressed (for toggles)
SetToolbarButtonState(#n,2) - disabled (grayed out)

GetToolbarButtonState()

for real fancy things one could ure the toolbar pro library, but the above is fairly basic for simple programs, and would simply enhance the usability of the toolbar
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

or perhaps equivalents for...

Code: Select all

x_toolbar_togglebutton()
x_toolbar_radiobutton()
x_toolbar_setbuttonstate()
x_toolbar_getbuttonstate()
x_toolbar_disablebutton()
x_toolbar_enablebutton()
:-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply