Displaying 20 results from an estimated 9000 matches similar to: "TextCtrl performance for large files"
2007 Sep 03
1
API survey results & update
Thanks to everyone who voted in the API style survey. We had 10 votes
altogether - we''re not electing the prime minister, after all - but it
was decisively a yes. 90% (9/10) supported adding keyword constructors,
and 77% (7/9) ruby-style accessors. The changes are summarised at the
bottom of the email.
We hope to have a 1.9.1 release incorporating these in the next week or
two.
2009 Jan 29
6
Control Characters
I am attempting a text editor using wxRuby. I''m having character issues.
Strings are not binary-safe.
Some characters are not allowed.
- newline / line feed (\n), tab (\t) are displayed
- carraige return (\r) is stripped
- Other control characters and high-ascii cause control values to become
empty.
Affected controls include: Wx::TextCtrl, Wx::StaticText, Wx::Clipboard,
et al.
Most
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/.
2007 Jun 17
2
Wx::TextCtrl and wxMSW
Hey Alex,
Found a solution to the problem that was occuring with wxMSW and the
Wx::TextCtrl, have yet to verify that this will work in linux, but my little
trick to the matter, was simple, thanks to the things that are provided with
both Wx::TextCtrl, and Wx::Window classes.
I''m providing this bit of information for thoes who may have trouble with
dealing with Wx::TextCtrl, _AND_ have
2007 Mar 21
4
Bug in TextCtrl constructor
Howdy,
I''ve uncovered a bug in the constructor for TextCtrl (originally
uncovered while using WxSugar but it appears to apply to WxRuby itself
as well). Here''s the output from irb:
# ------
irb(main):001:0> require ''wx'';
irb(main):002:0* ctl =
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.
2007 Jul 04
0
[1104] trunk/wxruby2: Added 2.8 methods to TextCtrl & document them; tidy up header file
<!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:
2008 May 11
4
Choosing a Sizer
Following alex advices, i''ve used both "text/textctrl.rb" and
"etc/threaded.rb" to build my first wxApp.
I''ve changed the Sizer type mainly (from "Wx::BoxSizer" to
"Wx::FlexGridSizer").
I didn''t find the way to let @log (Wx::TextCtrl) span 2 columns. At the time
of writing it''s growing only vertically.
And also how to get
2006 Aug 24
5
TreeCtrl background?
On my windows build, I just noticed that the background of my TextCtrl''s
is grey by default, and when I try to set the default style I get the error:
TestTextCtrl.rb:15:in `set_default_style'': undefined method `'' for
#<Wxruby2::TextCtrl:0x360a0c4> (NoMethodError)
from TestTextCtrl.rb:15:in `initialize''
from TestTextCtrl.rb:24:in
2007 Jan 22
4
Adding sizers to other sizers doesn''t work
Hello all,
Running this on an Intel Mac
OSX 10.4.8
ruby 1.8.4 (2005-12-24) [i686-darwin]
wxruby2-preview (0.0.37)
using zshell
I''m having a heck of a time setting up a GUI with a differing number of
widgets per row, resulting in a differing number or widgets per column.
At first I tried to simply do something like the following:
class CharacterInfoPanel < Wx::Panel
def
2006 Apr 27
5
Major Breakthrough?
Attached are patches to make the textctrl.rb sample work fully. Note
the new %directorargout typemap I added to fix wxWindows calling into
SWIG. I don''t know if this can fix all such problems or not. Let me
know what you think.
I also rubified the sample a little bit more. Also, note that I fix the
<< operator so the function can be called. I hope I did this right.
Roy
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
2004 Jun 19
4
FlexGridSizer question
=begin
I am trying to understand how FlexGridSizer works and I have written a small
test application using the latest wxRuby 0.4.0 on Win XP (Home).
I cannot get static text ''Week'', ''Day'' and ''Date'' line up above the OK button.
I have tried all combinations of ALIGN flags, but I either got the text sticking
far too close to the left edge of
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 Aug 11
2
TextCtrl.new
Salut alex,
j''utilise ce bout de code pour faire apparaître mon texte dans ma fenêtre:
@dou = TextCtrl.new(@s, -1, "", Point.new(10, 70), Size.new(410, 210), TE_RICH | TE_MULTILINE)
@dou << "je vais à l''école"
le problème c''est que l''encodage ne marche pas.Je ne peut pas mettre l''accentuation.J''ai essayer pas mal de
2008 Mar 31
2
Mouse motion example - help
Hi,
I am trying out this example adapted from the wxpython book, but the
mouse motion event does not seem to be captured right. What am I doing
wrong?
Thanks
warrior
# code below
require ''wx''
class MyFrame < Wx::Frame
def initialize
super(nil, -1, "My Frame", :size => [300,300])
@my_panel = Wx::Panel.new(self, -1)
evt_motion(){ |event|
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
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
2007 Oct 16
5
Question about GUI processing order
I am developing a GUI with WxRuby (wxruby-1.9.1-i386-mswin32, ruby-1.8.6).
In one of my button event handlers I do the following in this order:
set the value of a TextCtrl,
show a button (which was hidden),
hide the button that was caused this event
play some sounds (using Sound.play)
What I observe is that all these things happen, but not in the order I
specified. Hiding the button occurs
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