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
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
C-Lite Panel unsichtbar machen #183968
02/14/08 21:08
02/14/08 21:08
Joined: Oct 2004
Posts: 70
Link Offline OP
Junior Member
Link  Offline OP
Junior Member

Joined: Oct 2004
Posts: 70
Hi ich hab mal ne einfache Frage.
Wie kann ich später mein Panel wieder unsichtbar machen?

Früher bei c-script hat man es ja so gemacht:
Code:
 TESTPANEL.visble = 0; 



das geht ja nicht mehr bei LITE-C

Ich habe es so probiert: Code:
 TESTPANEL.flags |= VISIBLE;

oder

TESTPANEL.flags = INVISIBLE;



Das hat beides nicht funktioniert.


Allerdings hat es dann mit funktioniert:
Code:
 TESTPANEL.flags = TRANSLUCENT; 



Meine frage nun, ist das so richtig und ist das die beste methode oder belaste ich damit unnötig den videospeicher?


Danke im Vorraus

Re: C-Lite Panel unsichtbar machen [Re: Link] #183969
02/14/08 21:18
02/14/08 21:18
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Das sagt das Manual unter "Flags":
Quote:


In C, C++, or Lite-C, a flag is set at runtime by OR-ing the flags parameter with the flag (material.flags |= TANGENT;); it is reset by AND-ing the flags parameter with the inverse flag (material.flags &= ~TANGENT;); and it is read by AND-ing the flags parameter with the flag and comparing the result with zero.





Alternativ gibt es die makros set(PointerZumElement,FLAGS) und reset(PointerZumElement,FLAGS). Eine nähere Beschreibung von diesen findest du unter "Macros".


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