Page 1 of 1

Weird button behavior

Posted: Fri Dec 31, 2004 13:37
by Emmeran
Hi there!
I've some real weird problem: I have some GUISheets with different contents: one with an ingame menu (including a quit button etc), one with some ingame buttons (build factory etc) and another one with a factory-menu (build unit, build harvester, cancel etc).

Started the game I click on >build factory< and build a factory on my terrain. Now, the >build factory< button is disabled - I don't know why. He's only disabled, if I build the factory - when I cancel building he's not disabled and btw. I cannot re-enable the button.
Then, when I make a doubleclick on the built factory, the factory-menu gets visible, but it's disabled, too. All buttons, listboxes etc - everything - is disabled, but not the ingame menu. When I press escape, the menu gets visible and I can use the quit button. But if I move the mouse while clicking (accidently) the buttons in this menu get disabled, too.

I propose the problem is the z-order, so the buttons get to background or something similar. But why?? I never give commands like disable in my code. I give no commands at all.

I hope u understood my problem.

Thx in advance,
Emmeran

update:
I hacked the lib and printed the name of the catched window when mouseButtonDown is fired, and after the first time I click on it, the GUISheet Messages comes to foreground and is picked every click.

Weird button behavior

Posted: Fri Dec 31, 2004 14:22
by Emmeran
OK my problem is solved by disabling the messages-sheet which has to be always in the background. now it works.