[wxruby-users] displaying a progress dialog
Timothy McDowell
tmcdowell at gmail.com
Tue Jan 13 17:25:19 EST 2009
Excuse me for interrupting this, but how often is 'refresh' on a window
called, and what are it's two arguments?
On Tue, Jan 13, 2009 at 11:23 AM, Alex Fenton <alex at pressure.to> wrote:
> John Griffiths wrote:
>
>> Hi, trying to display a progress dialog tied to a Frame using via...
>>
>> dlg = Wx::ProgressDialog.new("title", "task", max, self,
>> Wx::PD_CAN_ABORT | Wx::PD_APP_MODAL)
>>
>> max and self both have valid values but everytime i try to use this i
>> get...
>>
>> progress.rb:233:in `refresh': wrong # of arguments(2 for 0)
>> (ArgumentError)
>>
> Works fine for me with wxRuby 1.9.9 on Windows, and I've been using
> ProgressDialog on OS X recently and not had any problems.
>
> Are you in fact writing your own ProgressDialog subclass, and defining a
> method called 'refresh' in it? wxRuby calls 'refresh' upon Windows (with two
> arguments) when they need to be redrawn. This allows for custom handling in
> Ruby, but it will cause problems if you have a method with the same name
> that does something different.
>
>
> a
> _______________________________________________
> wxruby-users mailing list
> wxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wxruby-users
>
--
--Brains.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20090113/16525eae/attachment.html>
More information about the wxruby-users
mailing list