Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   GUI Control problem. (https://forums.graalonline.com/forums/showthread.php?t=68367)

contiga 08-26-2006 08:21 PM

GUI Control problem.
 
PHP Code:

new GuiPopUpMenuCtrl( Dropdown) {
  
x = sx + 224;
  
y = sy + 37;
  
width = 128;
  
height = 18;
  for ( 
t: thiso.draw_icons[ thiso.caction][ 7][ 0])
    
addText( t, 1);
} 

When I draw this for the first time, it works just fine. When I do; Dropdown.hide(); and later try to redraw it again, it doesn't show up.

Anyone knows why?

xXziroXx 08-26-2006 08:26 PM

clearRows(); before the loop?

Skyld 09-01-2006 12:13 AM

Because it's probably still got it registered as invisible.

Just put a visible = true; inside your GUI control:
PHP Code:

new GuiControl(name)
{
  
visible = true;

  ...
} 


contiga 09-01-2006 08:37 AM

I did what Ziro did, Sheepy (my NAT) told me the same, clearRows();. Thanks tho guys.


All times are GMT +2. The time now is 09:40 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.