<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 29, 2008, at 1:40 PM, David Toll wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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> <br> <br><font size="2" face="sans-serif">I have a call to repaint() for the FXText window and for the FXApp. &nbsp;</font> <br> <br><font size="2" face="sans-serif">The documentation for FXApp.repaint says "Paint all windows marked for repainting. &nbsp;On return all the applications windows have been painted". &nbsp;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. &nbsp;However that clearly is not the case - the window gets repainted some considerable time later.</font></blockquote><div><br></div>This question is addressed in the FAQ:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><a href="http://www.fox-toolkit.org/faq.html#CLIENTSERVER">http://www.fox-toolkit.org/faq.html#CLIENTSERVER</a></div><div><br></div><div>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.</div><div><br><blockquote type="cite"><font size="2" face="sans-serif">There is no documentation of a repaint method for FXText, nor for its parent FXScrollArea. &nbsp;FXScrollArea's parent is Object, so I am not at all sure from which class FXText gets a repaint method.</font></blockquote><div><br></div>Actually, FXScrollArea's base class is FXComposite, not FXObject:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><a href="http://www.fxruby.org/doc/api/classes/Fox/FXScrollArea.html">http://www.fxruby.org/doc/api/classes/Fox/FXScrollArea.html</a></div><div><br></div><div>Hope this helps,</div><div><br></div><div>Lyle</div><div><br></div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><div><div><div><div><div>---<br><div apple-content-edited="true"><div><div><div><div><div><div>"FXRuby: Create Lean and Mean GUIs with Ruby"</div><div>Now available from the Pragmatic Bookshelf!</div><div><a href="http://www.pragprog.com/titles/fxruby">http://www.pragprog.com/titles/fxruby</a></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br></div></span><br class="Apple-interchange-newline"> </div><br></body></html>