[wxruby-users] displaying a progress dialog

Alex Fenton alex at pressure.to
Wed Jan 14 02:16:13 EST 2009


Timothy McDowell wrote:
> Excuse me for interrupting this, but how often is 'refresh' on a 
> window called, and what are it's two arguments?
It's called when the window needs to be redrawn:

http://wxruby.rubyforge.org/doc/window.html#Window_refresh

I'm not 100% sure it's the best way for it to be called from wxRuby into 
user ruby code. It's something that makes sense the wxWidgets C++ way, 
but perhaps not the ruby way, where one would expect to stick to using 
evt_paint and/or evt_erase_background. In Ruby it can create surprising 
errors, as we've seen. It's something that's easy to change in the 
wrapping, any way.

a


More information about the wxruby-users mailing list