Computer Science Canada

GUI buttons don't work on new screen.

Author:  jasonhan416 [ Thu Jan 08, 2009 2:08 am ]
Post subject:  GUI buttons don't work on new screen.

I am making an ISP and all the GUI BUTTOns are clickable except when I make a new window screen.
On the new window, i cant click on the GUI button.
How do i fix it?

Author:  Tony [ Thu Jan 08, 2009 2:42 am ]
Post subject:  RE:GUI buttons don\'t work on new screen.

you are likely not running GUI.ProcessEvent in a loop, at that point.

Author:  jasonhan416 [ Thu Jan 08, 2009 2:44 am ]
Post subject:  Re: RE:GUI buttons don\'t work on new screen.

Tony @ Thu Jan 08, 2009 2:42 am wrote:
you are likely not running GUI.ProcessEvent in a loop, at that point.


oh.. so GUI.ProcessEvent only works for the first window screen?
Then.. how do i make another GUI.ProcessEvent..

Author:  Tony [ Thu Jan 08, 2009 3:05 am ]
Post subject:  RE:GUI buttons don\'t work on new screen.

I don't know how you are implementing your "new window". Trace your code, and try to figure out what's happening at the moment when you click your mouse on the second screen.

Is this inside a loop? Does this loop call GUI.ProcessEvent?

Author:  jasonhan416 [ Thu Jan 08, 2009 8:07 am ]
Post subject:  Re: GUI buttons don't work on new screen.

im using the new window in the new procedure using Window.Open with new variables and stuff.
Also Gui.processevent is like this at the end

loop
exit when GUI.ProcessEvent
end loop


like the end of the turing code.


and also, when i click on the screen in the new window, the button doesn't even a clickable.
its just frozen (not the screen, the button)


: