Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, Quad, soulman3, Ayumi, steyr, 3run), 631 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
showing and hiding panels question #360160
02/22/11 15:02
02/22/11 15:02
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Hi guys,

I was seeing NHA RPG template 2.0 mainmenu script, and found a code which shows and hides panels, but it doesn't work in my script.

Code:
mainmenu_pan.visible = true;



I got an error saying that visible is not a member of panel.

Than I looked in the GSmanual and found that visible is now a obsolete keyword, 'show' is now used for it.

So I changed the code to this;

Code:
mainmenu_pan.show = true;



But I get he same error saying that show is not a member of panel.

Anyone knowing what I'm doing wrong? Thanks in advance.

Re: showing and hiding panels question [Re: reknak] #360168
02/22/11 16:06
02/22/11 16:06
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
maybe you shouldn't use c-script...
instead i would use the lite-c flag system:
Code:
set(mainmenu_pan,SHOW);




Visit my site: www.masterq32.de
Re: showing and hiding panels question [Re: MasterQ32] #360242
02/22/11 21:27
02/22/11 21:27
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
and if I want to the hide the panel? Should I than use this for showing and hiding the panel?:

Code:
toggle(mainmenu_pan,SHOW);



Re: showing and hiding panels question [Re: reknak] #360244
02/22/11 21:34
02/22/11 21:34
Joined: Apr 2005
Posts: 274
austria
Ascalon Offline
Member
Ascalon  Offline
Member

Joined: Apr 2005
Posts: 274
austria
use set(mainmenue_pan,SHOW); to show your panel and use
reset(mainmenue_pan,SHOW); to hide a panel
with toggle(mainmenue_pan,SHOW); you can switch always between showing and hiding. it depends on what yo just need


my webside : www.ascalon.jimdo.de
Re: showing and hiding panels question [Re: Ascalon] #360249
02/22/11 21:49
02/22/11 21:49
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Thanks for the clarification!


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1