SOLVED: GUI button not active

Started by barefoot, Wed 31/08/2011 11:00:03

Previous topic - Next topic

barefoot

Hi

Help search still down.

I have a gui (gPanel customised) with a button on scripted as gPanel.Visible=false; but the button is not active... it is set to Run Script.

Code: ags

function CloseInfo_OnClick(GUIControl *control, MouseButton button)
{
 gPanel.Visible=false;
}


any ideas why?

cheers

barefoot
I May Not Be Perfect but I Have A Big Heart ..

Matti

I assume "the button is not active" means that gPanel remains visible. Are you sure you're not setting it to visible somewhere else?

barefoot

Hi Matti

Well, I checked everything in Global and it seemed ok though I suspected an error somewhere but then I decided to Import new gPanel and set the interface and button up again and surprise surprise it worked.. Odd.. anyhow, ok now.

cheers

:=

barefoot

I May Not Be Perfect but I Have A Big Heart ..

SMF spam blocked by CleanTalk