Page 1 of 1

Easy flags to add?

Posted: Sat Feb 25, 2006 2:51 am
by PB
Sometimes I create a gadget that is initially disabled, so I use #WS_DISABLED
for its flags... so maybe have a native PureBasic flag equal to this? Something
like #PB_Gadget_Disabled? And while we're at it: #PB_Gadget_Invisible?

And still while we're at it: how about #PB_Event_Keyboard with the same
value as #WM_KEYDOWN? Would make our apps more standard without
having to use API constants. ;)

Posted: Thu Mar 02, 2006 4:23 am
by Joakim Christiansen
Indeed

Re: Easy flags to add?

Posted: Tue Oct 30, 2007 1:17 pm
by PB
I'd like to bump this old thread because it's still needed.

And while we're at it: I can't use #WS_DISABLED with OptionGadgets because
they don't support ANY flags... so could they support them in future, please?
So I can do this:

Code: Select all

OptionGadget(0,x,y,w,h,"text",#WS_DISABLED)
Instead of this:

Code: Select all

OptionGadget(0,x,y,w,h,"text")
DisableGadget(0,#True)
And do you know what would really be the icing on the cake? If colors could
be supported for OptionGadgets too (for the text and its background circle).
Same for CheckBoxGadgets too. :)

Please consider.