Disabled and Invisible flags for gadgets

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

Disabled and Invisible flags for gadgets

Post by PB »

Any way to get these implemented in a future release, so that a gadget can
be disabled and/or hidden when first designed? Like this:

#PB_Gadget_Disabled and #PB_Gadget_Invisible

Thus: ButtonGadget(#,x,y,w,h,text$,#PB_Gadget_Disabled).

(I know it can be done after creation, and with API constants, but a native
solution would be best, especially for cross-platform compatibility).

:)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Enable/Disable gadget : it already exists I think, but not at Gadget creation (DisableGadget()).
Of course, an InvisibleGadget() function would be nice !
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> it already exists I think, but not at Gadget creation

Doing it at gadget creation is what I'd like. :)

I can use an API constant for disabling at creation, but not for visibility:

ButtonGadget(1,20,50,250,25,"this is disabled",#WS_DISABLED)

But APIs are not compatible with Linux, so native flags would be nice.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Ok for both.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> Ok for both.

Muchos gracias, Fred! :D
Manolo
User
User
Posts: 75
Joined: Fri Apr 25, 2003 7:06 pm
Location: Spain

Post by Manolo »

PB wrote:
Muchos gracias, Fred! :D
Only one change "MuchAs gracias, Fred!", another spanish speaker. Hehehe. :lol:

Manolo
Return to the forum
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> Only one change "MuchAs gracias, Fred!", another spanish speaker.

Hehehe, I knew I'd get it wrong. :oops:
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

gnozal wrote:Of course, an InvisibleGadget() function would be nice !
You mean like HideGadget() ?
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

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

Post by PB »

> Ok for both

Bump. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Post by hallodri »

Fred wrote:Ok for both.

5 years later :?

Please add for 4.3

thanks
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

Post by Perkin »

Please add for next release. Would make me so happy. :D
%101010 = $2A = 42
Post Reply