search for: draw_circl

Displaying 3 results from an estimated 3 matches for "draw_circl".

Did you mean: draw_circle
2007 Apr 29
0
[990] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxCursor.rbw: Use paint block instead of ClientDC; load icon file safely
...uot;cx"> def on_draw_dot(evt) </span><span class="cx"> # Draw a dot so the user can see where the hotspot is </span><del>- dc = Wx::ClientDC.new(@win) - dc.set_pen(Wx::RED_PEN) - dc.set_brush(Wx::RED_BRUSH) - pos = evt.get_position - dc.draw_circle(pos.x, pos.y, 4) </del><ins>+ @win.paint do | dc | + dc.set_pen(Wx::RED_PEN) + dc.set_brush(Wx::RED_BRUSH) + pos = evt.get_position + dc.draw_circle(pos.x, pos.y, 4) + end </ins><span class="cx"> end </span><span class="cx...
2007 Sep 29
0
[ wxruby-Bugs-14322 ] Multiple warnings, especially @__painting__
...ty: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Multiple warnings, especially @__painting__ Initial Comment: Hi, I''m drawing with "paint" outside the normal evt_paint with the following code (just as example) in a subclass of Wx::Panel: paint do |dc| dc.draw_circle( ... ) end With this I get multiple "warning: instance variable @__painting__ not initialized" warnings for each paint call. Because they are displayed on every draw event, developing with ruby -w is very hard. It would be nice if this could be fixed. There are also some other warnin...
2008 Jan 14
15
How to get a Window handle from another app?
Hello, I would like to get a window handle from another app outside of wxRuby and convert it into a wxRuby Window handle so that I can use it as the parent Window for several wxRuby child windows. Basically I want to use the FRAME_FLOAT_ON_PARENT window style so that my wxRuby windows become associated with the outside app kind of like toolbars, e.g., they don''t show up in the