|
From: | Laurent Julliard |
Subject: | [FR-devel] Re: FR UI problem with 2 windows |
Date: | Wed, 12 Jun 2002 18:40:56 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 |
Curt Hibbs wrote:
I'm afraid that my understanding of FOX/FxRuby is probably about the same as yours, so I'm sending this to Lyle as well. Lyle, the main thing that is different here from a more traditional FOX/FXRuby app is that I discovered a workaround to the problem where the FOX UI blocks all other threads from running in the non-cygwin build of Ruby: # This is called from FreeBASE Core @plugin["/system/ui/messagepump"].set_proc do @app. runWhileEvents(self) if @running end The one-line proc is called repeatedly from the main FreeRIDE loop. Could this be related to the problem that Laurent is experiencing? Either way, any assistance you can give him would be greatly appreciated. Curt
One additional comment for Lyle. The self argument in the runWhileEvents call is the first main window.
So I did one thing I change the argument to self.root to make the runWhileEvents loop run on the root window instead of the main window. This solved my focus problem so that now I can select the second main window ok. However it looks like the second window doesn't refresh itself correctly. For instance when I click on the node of a Tree List nothin happen on the display but hidding/unhidding the window updates the display of the TreeList to what it should be.
So at least this is an indication that this piece of code is probably the root cause of my problem with the 2 windows. And if anyone has an idea on ho to fix the refresh problem....
Laurent
[Prev in Thread] | Current Thread | [Next in Thread] |