search for: get_position

Displaying 15 results from an estimated 15 matches for "get_position".

2006 Aug 03
6
evt_scrollwin_thumbtrack/GetPosition?
...working on thumbtracking. I capture the event successfully, but I am unable to capture the position of the thumb tracker. I have looked at the poor man''s doc and have been unable to figure out how this is captured. I have also looked at the wxWidgets documentation and tried using event.get_position (corresponding to wxWidgets GetPosition, and following the format generally used in wxRuby), but this was not successful. Thanks, Joe _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2008 Mar 31
2
Mouse motion example - help
..._panel = Wx::Panel.new(self, -1) evt_motion(){ |event| on_move(event)} Wx::StaticText.new(@my_panel, -1, :label => "Pos:", :pos => [10, 12]) @posCtrl = Wx::TextCtrl.new(@my_panel, -1, "",:pos => [40, 10]) show end def on_move(event) @pos = event.get_position @posCtrl.change_value("#{@pos}") end end Wx::App.run{MyFrame.new}
2006 Aug 16
10
all I wanted was a class reference...
And I got this lousy LatexParser. Ah well... A new cut of the automatic WxRuby documentation is now viewable online at http://www.pressure.to/wxruby/. There''s also a pdf version http://www.pressure.to/wxruby/wxruby.pdf [3MB, 751 pages!] and a tarball http://www.pressure.to/wxruby/wxruby2.tar.gz [1.3MB] In terms of output, it''s no advance on what Sean has already done.
2006 Apr 07
3
Pointer position on keypress event?
Hi. Is there any straightforward way to tell pointer position (x, y) upon keypress? In original wxWidgets, wxKeyEvent supports GetX() and GetY() methods, but wxRuby''s KeyEvent object does not have one. I also checked with event.methods and event.instance_variables. Do I need to keep track of pointer position by evt_motion? -- Taisuke Yamada <tyamadajp@spam.rakugaki.org>,
2007 Apr 29
0
[990] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxCursor.rbw: Use paint block instead of ClientDC; load icon file safely
...><span class="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><...
2007 Jul 04
0
[1107] trunk/wxruby2: Add the 2.8 get_modifiers method to KeyEvent; remove some deprecated
...yEvent#control_down":#KeyEvent_controldown </span><span class="cx"> * "KeyEvent#get_key_code":#KeyEvent_getkeycode </span><ins>+* "KeyEvent#get_modifiers":#KeyEvent_getmodifiers </ins><span class="cx"> * "KeyEvent#get_position":#KeyEvent_getposition </span><span class="cx"> * "KeyEvent#get_raw_key_code":#KeyEvent_getrawkeycode </span><span class="cx"> * "KeyEvent#get_raw_key_flags":#KeyEvent_getrawkeyflags </span><span class="lines"&g...
2006 Nov 23
0
[754] trunk/wxruby2/samples/bigdemo: Rubified samples and added in missing client data sample code
...s.to_s + ")") </ins><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def on_evt_right_button(event) </span><del>- @log.write_text("evt_right_button: " + event.get_position().to_s()) - if event.get_event_object().get_id() == 70 - selections = @lb2.get_selections() - selections.reverse!() </del><ins>+ @log.write_text("evt_right_button: " + event.get_position.to_s) + if event.get_event_object.get_id == 70...
2011 Jul 05
4
[Bug 1918] New: match_pattern_list fails for negated failure
https://bugzilla.mindrot.org/show_bug.cgi?id=1918 Bug #: 1918 Summary: match_pattern_list fails for negated failure Classification: Unclassified Product: Portable OpenSSH Version: 5.8p2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: sshd
2007 Apr 02
0
[939] trunk/wxsugar/lib/wx_sugar/wx_classes/window.rb: Add has_style? method, allow find_window to work even if C++ method
...gt; end </span><span class="cx"> </span><span class="cx"> # Returns the window''s current size as a two element array </span><span class="lines">@@ -32,4 +32,19 @@ </span><span class="cx"> pos = get_position </span><span class="cx"> return pos.x, pos.y </span><span class="cx"> end </span><ins>+ + # Tests if the GUI object has the given window style +style+. Returns + # +style+ if it has been applied, or +nil+ if the window does not have +...
2007 Apr 16
0
[969] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Cleanup and fixing of broken links.
...dow, or NULL if there is no parent. </del><ins>+Returns the parent of the window, or @nil@ if there is no parent. </ins><span class="cx"> </span><span class="cx"> </span><span class="cx"> h3(#Window_getposition). Window#get_position </span><span class="cx"> </span><del>- *get_position*(%(arg-type)Integer% x, %(arg-type)Integer% y) </del><ins>+ *get_position*(%(arg-type)Integer% x, %(arg-type)Integer% y) </ins><span class="cx"> </span><span class=...
2007 Jun 26
0
[1078] trunk/wxruby2: Map evt_spinctrl to SpinEvent instead of CommandEvent; add example to bigdemo
...;", + Wx::Point.new(30, 50), Wx::Size.new(80, -1)) + sc.set_range(1,100) + sc.set_value(5) + evt_spinctrl(sc.get_id) { | e | on_spinctrl(e) } + # sc.enable(false) + end + + def on_spinctrl(evt) + @log.write_text("spintctrl - new position #{evt.get_position}") + end </ins><span class="cx"> end </span><span class="cx"> </span><span class="cx"> module Demo </span><del>- def Demo.run(frame,nb,log) - win = TestPanel.new(nb, log) - return win - end -...
2004 Feb 08
5
wxruby 0.2 for osx panther release
A first draft of the wxruby binary release for the macintosh is now available at: http://www.nicreations.net/wxruby-0.2-osx-panther.dmg Install the metapackage (mpkg). You will need to choose a folder for the sample apps. wxruby.bundle is installed in /usr/lib/ruby/1.6/powerpc-darwin7.0 A few questions: 1) Should I just leave the samples in a folder instead of making the user
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...olour_bitmap(col) ) + + col = art.get_color(Wx::AUI_DOCKART_GRIPPER_COLOUR) + @grip_colour.set_bitmap_label( create_colour_bitmap(col) ) + end + + def on_pane_border_size(event) + @frame.get_dock_art.set_metric( Wx::AUI_DOCKART_PANE_BORDER_SIZE, + event.get_position ) + @frame.do_update + end + + def on_sash_size(event) + @frame.get_dock_art.set_metric( Wx::AUI_DOCKART_SASH_SIZE, + event.get_position ) + @frame.do_update + end + + def on_caption_size(event) + @frame.get_dock_art.set_metric( Wx::AUI_DOCKART_C...
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...lass="cx"> * "Window#get_label":#Window_getlabel </span><span class="lines">@@ -121,6 +124,8 @@ </span><span class="cx"> * "Window#get_parent":#Window_getparent </span><span class="cx"> * "Window#get_position":#Window_getposition </span><span class="cx"> * "Window#get_rect":#Window_getrect </span><ins>+* "Window#get_screen_position":#Window_getscreenposition +* "Window#get_screen_rect":#Window_getscreenrect </ins><span class=&...
2008 Dec 20
0
Wine release 1.1.11
...t IHTMLStyle put_fontStyle. mshtml: Implement IHTMLStyle get/put fontVariant. mshtml: Implement IHTMLScriptElement get/put Defer. mshtml: Implement IHTMLStyle get_backgroundImage. msxml3: Corrected getAttributeNode to return correct values. mshtml: Implement IHTMLStyle get_position. msxml3: Make functions static. msxml3: Add ISupportErrorInfo interface to IXMLDOMDocument. Andrei Derevyanko (2): mshtml: Silence IMarshal QueryInterface FIXME. mshtml: Updated test of QueryInterface. Andrew Nguyen (4): jscript: Fix some errors detected by Valgrind....