Excuse me for interrupting this, but how often is &#39;refresh&#39; on a window called, and what are it&#39;s two arguments?<br><br><div class="gmail_quote">On Tue, Jan 13, 2009 at 11:23 AM, Alex Fenton <span dir="ltr">&lt;<a href="mailto:alex@pressure.to">alex@pressure.to</a>&gt;</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>
 &nbsp; &nbsp;dlg = Wx::ProgressDialog.new(&quot;title&quot;, &quot;task&quot;, 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&#39;: wrong # of arguments(2 for 0)<br>
(ArgumentError)<br>
</blockquote></div>
Works fine for me with wxRuby 1.9.9 on Windows, and I&#39;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 &#39;refresh&#39; in it? wxRuby calls &#39;refresh&#39; 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>