Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, NewtraderX), 856 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Im having 2 problems to do with panels [Re: xbox] #372935
06/05/11 21:19
06/05/11 21:19
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
Thanks a bunch buddy works perfect.

Re: Im having 2 problems to do with panels [Re: JakeBilbe] #372948
06/06/11 02:10
06/06/11 02:10
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline
Senior Member
xbox  Offline
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
Hey, no problem man!! Glad to hear it works. grin

Re: Im having 2 problems to do with panels [Re: xbox] #372974
06/06/11 11:21
06/06/11 11:21
Joined: May 2008
Posts: 257
D
djfeeler Offline
Member
djfeeler  Offline
Member
D

Joined: May 2008
Posts: 257
if you want know if a panel is visible the code is :

Code:
if(is(panel,SHOW))
{
//code here
}



or not visible

Code:
if(!is(panel,SHOW))
{
//code here
}



Last edited by djfeeler; 06/06/11 11:24.
Re: Im having 2 problems to do with panels [Re: xbox] #373085
06/07/11 12:29
06/07/11 12:29
Joined: Apr 2011
Posts: 75
Malta
E
Ercoles Offline
Junior Member
Ercoles  Offline
Junior Member
E

Joined: Apr 2011
Posts: 75
Malta
I use the following method and it always works without errors:

To show it I use:

inventory_main.flags = SHOW;

To hide it I use:

inventory_main.flags &= ~SHOW;

Re: Im having 2 problems to do with panels [Re: Ercoles] #373094
06/07/11 14:08
06/07/11 14:08
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
Originally Posted By: Ercoles
I use the following method and it always works without errors:

To show it I use:

inventory_main.flags = SHOW;

To hide it I use:

inventory_main.flags &= ~SHOW;
That's somewhat flawed

inventory_main.flags = SHOW; will reset all other flags set, you need to use inventory_main.flags |= SHOW; to set just this flag
if you're struggling with this you'd be better using the macros predefined set() and reset()

also look at toggle(), this will save checking if it's shown in the first place

Page 2 of 2 1 2

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