Easy flags to add?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Easy flags to add?

Post 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. ;)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Indeed
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Easy flags to add?

Post 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.
Post Reply