Page 1 of 1

Disabled and Invisible flags for gadgets

Posted: Thu Jun 05, 2003 1:54 am
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).

:)

Posted: Thu Jun 05, 2003 7:52 am
by gnozal
Enable/Disable gadget : it already exists I think, but not at Gadget creation (DisableGadget()).
Of course, an InvisibleGadget() function would be nice !

Posted: Thu Jun 05, 2003 8:21 am
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.

Posted: Thu Jun 05, 2003 9:25 am
by Fred
Ok for both.

Posted: Thu Jun 05, 2003 12:02 pm
by PB
> Ok for both.

Muchos gracias, Fred! :D

Posted: Thu Jun 05, 2003 12:47 pm
by Manolo
PB wrote:
Muchos gracias, Fred! :D
Only one change "MuchAs gracias, Fred!", another spanish speaker. Hehehe. :lol:

Manolo

Posted: Thu Jun 05, 2003 12:49 pm
by PB
> Only one change "MuchAs gracias, Fred!", another spanish speaker.

Hehehe, I knew I'd get it wrong. :oops:

Posted: Thu Jun 05, 2003 1:11 pm
by tinman
gnozal wrote:Of course, an InvisibleGadget() function would be nice !
You mean like HideGadget() ?

Posted: Sat Jun 07, 2003 10:27 am
by gnozal
Yes :oops:

Posted: Sun Nov 26, 2006 12:31 pm
by PB
> Ok for both

Bump. :)

Posted: Sat Jul 26, 2008 1:01 pm
by hallodri
Fred wrote:Ok for both.

5 years later :?

Please add for 4.3

thanks

Posted: Sat Jul 26, 2008 2:02 pm
by Perkin
Please add for next release. Would make me so happy. :D