<br><font size=2 face="sans-serif">Lyle:</font>
<br>
<br><font size=2 face="sans-serif">Thanks for the suggestion. Unfortunately,
it makes no difference.</font>
<br>
<br><font size=2 face="sans-serif">However, I think we are looking for
the wrong problem.</font>
<br>
<br><font size=2 face="sans-serif">I can make it effectively make my FXRuby
program perform the following, repeated 16 times:</font>
<br>
<br><font size=2 face="sans-serif"> printf("hi\n")
to the FXText window</font>
<br><font size=2 face="sans-serif"> sleep(3)</font>
<br>
<br><font size=2 face="sans-serif">If I run this then all is well.</font>
<br>
<br><font size=2 face="sans-serif">However, if I concurrently run two copies
of this program, from separate DOS-type command windows, then neither of
them updates properly until both of the programs terminate the above sequence
and re-enter command -input mode.</font>
<br>
<br><font size=2 face="sans-serif">I.e. it would appear that my problem
is that, somehow, multiple FXRuby programs, running concurrently on the
same copy of Windows, interfere with each other. </font>
<br>
<br><font size=2 face="sans-serif">I think this requires a deep understanding
of how FXRuby works underneath, maybe requires an understanding of its
interaction with Windows (Windows XP in this case). </font>
<br>
<br><font size=2 face="sans-serif"> Thanks</font>
<br><font size=2 face="sans-serif">
Dave</font>
<br><font size=2 face="sans-serif">-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
</font>
<br>
<br>
<br>
<br>
<br><font size=3>On Oct 29, 2008, at 1:40 PM, David Toll wrote:</font>
<br>
<br><font size=2 face="sans-serif">I have an FXText window which I would
like to force to be repainted immediately, not wait for the lazy re-paint.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
I have a call to repaint() for the FXText window and for the FXApp. </font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
The documentation for FXApp.repaint says "Paint all windows marked
for repainting. On return all the applications windows have been
painted". I take that to mean (or hope that it means) that this
a synchronous call, and your program should wait for the repaint to complete.
However that clearly is not the case - the window gets repainted
some considerable time later.</font>
<br>
<br><font size=3>This question is addressed in the FAQ:</font>
<br>
<br><a href="http://www.fox-toolkit.org/faq.html#CLIENTSERVER"><font size=3 color=blue><u>http://www.fox-toolkit.org/faq.html#CLIENTSERVER</u></font></a>
<br>
<br><font size=3>I think you should be able to call update() on the FXText
window (to mark it as dirty and in need of a repaint), followed by a call
to FXApp#flush to immediately flush all drawing commands to the display.</font>
<br>
<br><font size=2 face="sans-serif">There is no documentation of a repaint
method for FXText, nor for its parent FXScrollArea. FXScrollArea's
parent is Object, so I am not at all sure from which class FXText gets
a repaint method.</font>
<br>
<br><font size=3>Actually, FXScrollArea's base class is FXComposite, not
FXObject:</font>
<br>
<br><a href=http://www.fxruby.org/doc/api/classes/Fox/FXScrollArea.html><font size=3 color=blue><u>http://www.fxruby.org/doc/api/classes/Fox/FXScrollArea.html</u></font></a>
<br>
<br><font size=3>Hope this helps,</font>
<br>
<br><font size=3>Lyle</font>
<br>
<br><font size=1 face="Helvetica">---</font>
<br><font size=1 face="Helvetica">"FXRuby: Create Lean and Mean GUIs
with Ruby"</font>
<br><font size=1 face="Helvetica">Now available from the Pragmatic Bookshelf!</font>
<br><a href=http://www.pragprog.com/titles/fxruby><font size=1 color=blue face="Helvetica"><u>http://www.pragprog.com/titles/fxruby</u></font></a>
<br>
<br>
<br>
<br>
<br><tt><font size=2>_______________________________________________<br>
fxruby-users mailing list<br>
fxruby-users@rubyforge.org<br>
http://rubyforge.org/mailman/listinfo/fxruby-users</font></tt>
<br>