Displaying 20 results from an estimated 10000 matches similar to: "new textctrl sample"
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 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 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
2005 Nov 28
1
WxRuby2 Unicode
Hi
Please find some bits n pieces for CVS for Wxruby2''s unicode support
1) a patch for typemap.i (typemap_unicode.patch) - this makes methods
that return strings (eg TextCtrl#get_value) return them as proper UTF8
strings. Currently, if the strings contain non-latin characters, an
empty string is returned. This should only affect unicode builds,
according to the method docs.
2) a
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
2006 Sep 21
9
problem with TextCtrl#get_insertion_point
I''m trying to un-ignore TextCtrl#get_selection. The typemaps work fine,
but in the process it breaks get_insertion_point.
This is because (on Mac, tho not GTK), get_insertion_point calls
get_selection internally and simply returns the first value. I think the
return value is being converted from a long to a ruby int twice, because
when get_selection is wrapped, it works fine but the
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
2006 Apr 12
6
*OUTPUT/*INPUT typemaps
Hi
Have been looking again at SWIG output pointer parameters, as:
http://www.swig.org/Doc1.3/Ruby.html#Ruby_nn32
The problem is, whenever I tried to include the SWIG/Ruby ''typemaps.i''
file, it threw loads of errors.
A bit more investigation pinned the problem down to some secondary files
that typemaps.i includes to map ''special'' types like File.
So I tried
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
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 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 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 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
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 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.
2009 Jan 13
9
Segmentation Fault : [i386-mswin32] in wxruby
Greetings,
I have created a GUI to generate a output text file using wxruby. my
program codes are about ~1400 lines.
ruby : 1.8.6
wxruby : 1.9.7
rails : 2.1.0
FYI, I am using the TextCtrl & combobox in the main GUI to get the
output file name and main settings. after clicking the button, it will
pop up another frame which let user to select and modified settings with
TextCtrl & combobox.
2005 Aug 15
1
TextAttr.i
Hi
New .i file attached; compiled and tested on OS X, though background
colour doesn''t seem to work as documented - applying
TextAttr.new(fg_colour, bg_colour) doesn''t seem to affect the actual
shown colour, even with TE_RICH|TE_RICH2 styles on the TextCtrl. This is
also true of current wx on Windows but not Linux.
As per Nick''s comment previously, TextAttr and
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.
2006 Sep 21
2
wxImage patches
These patches allow the RMagick sample to work with wxRuby2. They also
open up some functions that were %ignored that probably shouldn''t be (at
least with the typemap adjustment).
I think we may need to visit (or document carefully) what happens when
you pass in a string of data to the constructor or to SetAlpha. We need
to decide which setting of static_data is correct for the
2007 May 21
5
Wx::Scintilla class not defined
I''m posting this for a friend who is having trouble with this and here is
his message.
"Heya! I''m working on a script editor application, but it''s missing one key
feature: Syntax highlighting. Seeing this, I looked around in the sample
directory and came across scintilla.rb. I attempted a run, however Ruby
reported Wxruby2::Scintilla as an uninitialized