I’m trying to understand how regions are working in wxRuby. For now, I
tried only to draw a rectangle and to move it. In order to do that, I
use a region to tell wxRuby to refresh only the rectangle and not the
whole screen. But no matter how I try, it always refreshs only a part of
the rectangle. Can somebody tell me why ?
I’m running wxRuby 2.0.1 on OSX, and wrote a script (attached to this
post) as an example. Don’t hesitate to tell me if my code looks bad and
how to improve it, I’m a beginner in WxRuby as in Ruby.
Thanks in advance.