Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,449 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to disable the visibility of PANE... #204676
04/30/08 18:19
04/30/08 18:19
Joined: Apr 2008
Posts: 28
India,Kolkata
A
ayan Offline OP
Newbie
ayan  Offline OP
Newbie
A

Joined: Apr 2008
Posts: 28
India,Kolkata
ok now i have...

 Code:
  
PANEL* some_panel = 
{
 bmap = "some_pic.pcx";
 layer = 10;
 pos_x = 0;
 pos_y = 0;
 flags = VISIBLE; // is it possible to flag it invisible here and makle visible
                  // later in my code
}


now what i need to do is make this PANEL "some_panel" invisible after some conditions are met and make other PANEL visible...

Re: how to disable the visibility of PANE... [Re: ayan] #204681
04/30/08 18:24
04/30/08 18:24
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
if you are usin lite-c its:

reset(some_panel,VISIBLE);

c-script:

some_panel.VISIBLE = off;


3333333333
Re: how to disable the visibility of PANE... [Re: Quad] #204685
04/30/08 18:31
04/30/08 18:31
Joined: Apr 2008
Posts: 28
India,Kolkata
A
ayan Offline OP
Newbie
ayan  Offline OP
Newbie
A

Joined: Apr 2008
Posts: 28
India,Kolkata
how to know which one i am using...

neways...is it possible to flag the PANEL invisible (not visible) during its declaration.....

Re: how to disable the visibility of PANE... [Re: ayan] #204689
04/30/08 18:42
04/30/08 18:42
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
use INVISIBLE flag while declaring or dont use any flags.

and as you defining panels like in your first post
you are usin lite-c


3333333333
Re: how to disable the visibility of PANE... [Re: Quad] #204693
05/01/08 01:48
05/01/08 01:48
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Don't use INVISIBLE on panels. Simply ommit the VISIBLE flag.


Always learn from history, to be sure you make the same mistakes again...
Re: how to disable the visibility of PANE... [Re: Quad] #204732
05/01/08 12:46
05/01/08 12:46
Joined: Apr 2008
Posts: 28
India,Kolkata
A
ayan Offline OP
Newbie
ayan  Offline OP
Newbie
A

Joined: Apr 2008
Posts: 28
India,Kolkata
then how to use PANEL in c-script...pro version comes with c-script right...

secondly using flags = INVISIBLE; within the PANEL declaration is resulting in an error...

Re: how to disable the visibility of PANE... [Re: ayan] #204735
05/01/08 12:58
05/01/08 12:58
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Dont know which version you are using(a6/a7)

but afaik all a7 versions support both c-sctipt an lite-c [Lite-c versions only support lite-c]

and if you are able to use the panel in you first post, then you cn use lite-c.

And yes,checked the manual, panels doesnt have the INVISIBLE flag.

just dont use any flags , delete the flags = VISIBLE; line from definition and it will be invisible.

to make it visible at runtime you can use
set(some_panel,VISIBLE);

toggle(some_panel,VISIBLE); toggles the visibility.


3333333333
Re: how to disable the visibility of PANE... [Re: Quad] #204758
05/01/08 14:44
05/01/08 14:44
Joined: Apr 2008
Posts: 28
India,Kolkata
A
ayan Offline OP
Newbie
ayan  Offline OP
Newbie
A

Joined: Apr 2008
Posts: 28
India,Kolkata
thanks...tht cleared a lot....


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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