Computer Science Canada

GUI.ProcessEvent := false

Author:  Albrecd [ Wed May 30, 2007 6:06 pm ]
Post subject:  GUI.ProcessEvent := false

Is there a way to reset GUI.ProcessEvent to return false after it has been made true by GUI.Quit?

Thanks

Author:  Cervantes [ Wed May 30, 2007 6:49 pm ]
Post subject:  RE:GUI.ProcessEvent := false

Try GUI.ResetQuit.

I seem to recall this being buggy, though. If it is buggy and doesn't work, you'll probably have to go into the code for the GUI classes and fix it. It's simple enough: all you have to do is set a certain boolean variable to false (or possibly true, but I doubt it).

Author:  Albrecd [ Thu May 31, 2007 4:59 pm ]
Post subject:  Re: GUI.ProcessEvent := false

Thanks,
I looked through the wigit modules and they don't seem to have a procedure for resetting the boolean (quitting), so I'm attempting to make one now.

Author:  Albrecd [ Fri Jun 01, 2007 1:51 pm ]
Post subject:  Re: GUI.ProcessEvent := false

I've run into some trouble with exporting my procedure.

I added a procedure called ResetQuit to the WigitModule unit, and added it to the export list; however, when I try to impliment it (GUI.ResetQuit), the procedure isn't found. I looked through all of the other units in the GUI Library, but I can't find anywhere else that I need to import or export it in order to make it work.

Does anyone know the heirarcy of imports/exports for the GUI Support Library or what specific unit is called upon by GUI.<whatever>?

Thanks

Author:  Cervantes [ Fri Jun 01, 2007 7:14 pm ]
Post subject:  RE:GUI.ProcessEvent := false

What version of Turing are you using that you don't have ResetQuit built in?

In my version (4.0.5), it appears on line 178 of WidgetModule.tu. It's exported in the usual way. Nothing special at all.

Author:  Albrecd [ Mon Jun 04, 2007 11:33 am ]
Post subject:  Re: GUI.ProcessEvent := false

Hmm...
Maybe that's it. I have 4.0.3.

Do you know what unit is accessed by calling GUI?

Author:  Clayton [ Mon Jun 04, 2007 2:51 pm ]
Post subject:  RE:GUI.ProcessEvent := false

Um... do you mean the GUI module, or the Widget module? Or perhaps the GUI class code, which I don't know where it is, although it is there.

Author:  Cervantes [ Mon Jun 04, 2007 5:58 pm ]
Post subject:  Re: GUI.ProcessEvent := false

Albrecd @ Mon Jun 04, 2007 11:33 am wrote:
Hmm...
Maybe that's it. I have 4.0.3.

Do you know what unit is accessed by calling GUI?


I'm not entirely sure, but I think you should put it into WidgetModule.tu, because that's where it is in 4.0.5. Does that work for you?

Author:  Albrecd [ Tue Jun 05, 2007 1:28 pm ]
Post subject:  Re: GUI.ProcessEvent := false

Yeah, I already added the new procedure to WigitModule.tu and to its export list, but when I call upon it, it isn't found. Confused

Author:  Cervantes [ Tue Jun 05, 2007 11:31 pm ]
Post subject:  RE:GUI.ProcessEvent := false

What happens if you remove an entry from the export list and then try calling that method? Or more extreme, what happens if you delete the entire WidgetModule.tu file (of course, make a backup of it first)? These are just some basic debugging ideas.


: