Excuse me for interrupting this, but how often is 'refresh' on a window called, and what are it's two arguments?<br><br><div class="gmail_quote">On Tue, Jan 13, 2009 at 11:23 AM, Alex Fenton <span dir="ltr"><<a href="mailto:alex@pressure.to">alex@pressure.to</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">John Griffiths wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, trying to display a progress dialog tied to a Frame using via...<br>
<br>
dlg = Wx::ProgressDialog.new("title", "task", max, self,<br>
Wx::PD_CAN_ABORT | Wx::PD_APP_MODAL)<br>
<br>
max and self both have valid values but everytime i try to use this i<br>
get...<br>
<br>
progress.rb:233:in `refresh': wrong # of arguments(2 for 0)<br>
(ArgumentError)<br>
</blockquote></div>
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.<br>
<br>
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.<div>
<div></div><div class="Wj3C7c"><br>
<br>
a<br>
_______________________________________________<br>
wxruby-users mailing list<br>
<a href="mailto:wxruby-users@rubyforge.org" target="_blank">wxruby-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/wxruby-users" target="_blank">http://rubyforge.org/mailman/listinfo/wxruby-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--Brains.<br>