search for: set_focus

Displaying 16 results from an estimated 16 matches for "set_focus".

2007 Jan 08
0
[ wxruby-Bugs-7658 ] Window#set_focus method not working on OS X
...1-08 01:12 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=7658&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: Window#set_focus method not working on OS X Initial Comment: The set_focus method of Window does not seem to be working correctly on OS X. When called on a textctrl, for example, the caret is blinking in the ctrl, but text input is not directed to that control. The user must click the mouse there to give the ctrl...
2010 Mar 20
1
Tab key traversal
...nks. #!/usr/bin/env ruby require ''rubygems'' require ''wx'' require ''tp1.rb'' class MainFrame < TPSC def on_init m_scrolledwindow6.set_virtual_size(400, 100) m_scrolledwindow6.set_scroll_rate(5, 5) wxEVT_CHAR(@m_textCtrl2) { m_textCtrl3.set_focus } wxEVT_CHAR(@m_textCtrl3) { m_textCtrl4.set_focus } wxEVT_CHAR(@m_textCtrl4) { m_textCtrl4.set_focus } # evt_button(@m_buttonincrement) { increaseColour } # evt_button(@m_buttondecrement) { decreaseColour } end Wx::App.run do self.app_name = ''TestNotebook'' frame = Main...
2008 Jan 14
4
Focus on TextCtrl
Hello. I have a problem with set focus on a TextCtrl in wxRuby. I must do something like Login TextCtrl and set focus on a next TextCtrl by clicking Tab key. -- Posted via http://www.ruby-forum.com/.
2006 Aug 25
3
Patch to wxComboBox.rbw
This patch fixes the sample so it works correctly. You''ll need to patches in the previous e-mail. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Oct 02
0
[ wxruby-Patches-14375 ] bigdemo/wxScrolledWindow - paint bug with scrolled window
...nt the lines are drawn correctly. So they are saved correctly to the lines array but there is an error when they are first drawn. I changed two methods to get the correct behaviour: (file with changes attached) From: def on_left_button_event_down(event) if event.left_is_down() and !@drawing set_focus() set_XY(event) @curLine = [] capture_mouse() @drawing = true end end To: def on_left_button_event_down(event) if event.left_is_down() and !@drawing set_focus() set_XY(event) @event_x_old = event.get_x # added this to save the current absolute... @event_y_old...
2003 Nov 25
1
Does wxRuby have event masks or something similar?
I''m trying to capture character events on a frame, using the following piece of code (adapted from samples/etc/test.rb): def initialize(title) super(nil, -1, title, Wx::Point.new(-1,-1), Wx::Size.new(530,590), Wx::DEFAULT_FRAME_STYLE | Wx::FRAME_SHAPED) evt_paint { onPaint } evt_char { | evt | puts "Got char evt: "+evt.to_s if evt.get_key_code.chr =~
2007 Jul 04
0
[1105] trunk/wxruby2/doc/textile/button.txtl: 2.8 documentation update reflecting where set_default_item now lies
...t;cx"> Under Windows, only dialog box buttons respond to this function. As </span><span class="cx"> normal under Windows and Motif, pressing return causes the default button to </span><del>-be depressed when the return key is pressed. See also "Window#set_focus":window.html#Window_setfocus which sets the keyboard focus for windows and text panel items, and "Panel#set_default_item":panel.html#Panel_setdefaultitem. </del><ins>+be depressed when the return key is pressed. See also "Window#set_focus":window.html#Window_set...
2010 Aug 03
1
Making a Text Control selected once user hits a button
I want it so that when a user hits a button, that a text control is selected and they can just start typing away and update the text control. Is there anyway to do this? -- Posted via http://www.ruby-forum.com/.
2006 Sep 17
1
run.rb
This is a first stab at a run.rb file that will let you run a sample in the bigdemo directory by itself. You have to add the following to the bottom of every sample file: if __FILE__ == $0 load "run.rb" run(File.basename($0)) end Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org
2003 Dec 13
1
widget hierarchy - program variables
Hi! During developing my little program, I''ve noticed, that the objects have a hierarchy, but now I don''t know what to do, if a widget initiates an event which has an effect to the parent, grandfather/brother/other relatives. Is there a tutorial for this aspect? Gergo -- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ |
2007 Jul 16
0
[1113] trunk/wxruby2/samples/caret/caret.rb: Ensure the canvas has focus so KeyEvents are directed to it, fixing bug 10663
...;cx"> </span><span class="cx"> @canvas = MyCanvas.new(self) </span><span class="cx"> </span><ins>+ # This is required to set focus so that key events are directed to + # this Window, on Linux/GTK in particular + @canvas.set_focus + </ins><span class="cx"> # create a status bar just for fun (by default with 1 pane only) </span><span class="cx"> create_status_bar(2) </span><span class="cx"> set_status_text("Welcome to Windows!") </span&...
2006 Dec 18
13
unit testing wxruby GUIs
paul.allton at uk.bnpparibas.com wrote: > I''m a big fan of automated UI testing (i.e. driving the UI from some robot API). I appreciate this > is potentially a whole new project, but does wxwidgets provide a method of clicking buttons, > typing into components ... if so, would it be technically possible to expose this in wxruby. I like automated UI testing too, but
2005 Aug 15
16
swig_up
Tracing down some things to add in validators and I''ve run across something that kinda bothers me... In order to implement validators you have to override the clone method. The directors seems to be set up to specifically handle this situation. However, whenever C++ calls back to the object''s methods the swig_get_up function is returning false. It seems like swig_up
2006 Nov 13
7
[736] trunk/wxruby2/samples/dialogs/dialogs.rb: Fixed crashing bug in on_paint and made the code style more Ruby like.
.../ins><span class="cx"> </span><del>- sizerTop.set_size_hints(self) - sizerTop.fit(self) </del><ins>+ sizer_top.set_size_hints(self) + sizer_top.fit(self) </ins><span class="cx"> </span><del>- @m_btnFocused.set_focus() - @m_btnFocused.set_default() </del><ins>+ @btn_focused.set_focus() + @btn_focused.set_default() </ins><span class="cx"> </span><del>- evt_button(-1) {|event| onButton(event) } </del><ins>+ evt_button(-1) {|event| on_button...
2008 Feb 17
15
A bug in wxRuby. Segmentation fault in random situations.
Hello, I wrote an application in wxRuby: ruby 1.8.6 wxruby 1.9.4 installed from gem windows xp sp2 After several minutes of running it crashes with the following error: "c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: [BUG] Segmentation fault ruby 1.8.6 (2007-03-13) [i386-mswin32] This application has requested the Runtime to terminate it in an unusual way. Please contact
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...:#Window_setdroptarget </del><span class="cx"> * "Window#set_event_handler":#Window_seteventhandler </span><span class="cx"> * "Window#set_extra_style":#Window_setextrastyle </span><span class="cx"> * "Window#set_focus":#Window_setfocus </span><span class="lines">@@ -200,7 +206,12 @@ </span><span class="cx"> * "Window#set_help_text":#Window_sethelptext </span><span class="cx"> * "Window#set_id":#Window_setid </span>&l...