similar to: Focus on TextCtrl

Displaying 20 results from an estimated 100 matches similar to: "Focus on TextCtrl"

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 =~
2010 Mar 20
1
Tab key traversal
Below is my attempt at changing the focus from one text control to the next control after a person presses the tab key. The wxTE_PROCESS_TAB style property has been selected for each of the controls. What corrections do I have to make? Thanks. #!/usr/bin/env ruby require ''rubygems'' require ''wx'' require ''tp1.rb'' class MainFrame < TPSC
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
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 ]---------+ |
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 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
2007 Jan 08
0
[ wxruby-Bugs-7658 ] Window#set_focus method not working on OS X
Bugs item #7658, was opened at 2007-01-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
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
2007 Jul 21
0
[1139] trunk/wxruby2/samples/text/textctrl.rb: Place TextCtrl sample in a panel so gets correct bg color on MSW
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2007 Nov 23
0
[ wxruby-Bugs-15845 ] ctrl+shift+t crashes empty styled textctrl
Bugs item #15845, was opened at 2007-11-23 00:02 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=15845&group_id=35 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Christopher Bludau (count_cb) Assigned to: Nobody (None) Summary: ctrl+shift+t crashes empty styled textctrl Initial Comment: If one pressed
2007 Oct 02
0
[ wxruby-Bugs-14374 ] TextCtrl TE_RICH and SUNKEN_BORDER (WxRuby1.9.1)
Bugs item #14374, was opened at 2007-10-02 12:13 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=14374&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Christopher Bludau (count_cb) Assigned to: Nobody (None) Summary: TextCtrl TE_RICH and SUNKEN_BORDER (WxRuby1.9.1) Initial Comment: When
2007 Oct 24
0
[ wxruby-Bugs-15025 ] TextCtrl method get_insertion_point() return is constrained to a 16 bit number
Bugs item #15025, was opened at 2007-10-24 15:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=15025&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: TextCtrl method get_insertion_point() return is constrained to a 16 bit number Initial
2007 Jun 08
0
[ wxruby-Bugs-11446 ] Wx::TextCtrl behaves wrong when scrolling
Bugs item #11446, was opened at 2007-06-08 10:48 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=11446&group_id=35 Category: Incorrect behavior Group: current Status: Open Resolution: None Priority: 3 Submitted By: Mario Steele (eumario) Assigned to: Kevin Smith (qualitycode) Summary: Wx::TextCtrl behaves wrong when scrolling Initial Comment: On
2007 Jan 22
0
[ wxruby-Bugs-8068 ] TextCtrl#append_text doesn''t work when text is in UTF8
Bugs item #8068, was opened at 2007-01-22 20:27 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=8068&group_id=35 Category: Incorrect behavior Group: current Status: Open Resolution: None Priority: 4 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: TextCtrl#append_text doesn''t work when text is in UTF8
2006 Aug 24
0
Re: TextCtrl background? (was TreeCtrl background?)
You had me looking in TreeCtrl at first with the previous subject line :) I too got an error and do not see an obvious reason, Kevin or Roy may have a better idea as they are better with SWIG than I am. You may want to put some printf''s in the generated TextCtrl.cpp file within the SetDefaultStyle method and find where it is crashing. The error in Mac OS X is: test.rb:15:in
2006 Feb 19
1
TextCtrl width
What''s the best way to specify the width of a TextCtrl in characters instead of pixels? -- R. Mark Volkmann Partner, Object Computing, Inc.
2005 Nov 26
1
new textctrl sample
Hi An updated textctrl sample, with rich text and a bit more commenting and current ruby style. I haven''t done as patch b/c it''s from scratch. I''m working on something similar to show off Wxruby''s new unicode features. It all works pretty smoothly, with a few patches to typemap.i to make string return values work with multibyte characters (I''ll
2008 Jun 02
1
Add TextCtrl to toolbar
Hi, How can I add a textctrl to a toolbar? I tried toolbar.add_control(TextCtrl.new(self, ID_ANY)), but that returns false and the control gets placed wherever. Thanks
2009 Aug 14
1
TextCtrl performance for large files
I''ve been trying to speed up my program, which uses a TextCtrl, for large files by getting rid of code using line numbers. However, it seems that just using the get_range method is slowing down my program for large files. I don''t know whether I''m doing something wrong or there''s a way to access the text without significant slowing in large files. If anyone