search for: te_multilin

Displaying 19 results from an estimated 19 matches for "te_multilin".

Did you mean: te_multiline
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 solution différente mais rien à faire. Quand je veut encoder ça ne marche pas mais par contre si je...
2007 Sep 03
1
API survey results & update
...ng keyword args. This is really handy, for example, if you mainly use Sizers to manage layouts, and so rarely need to set an explicit size or position for a window. So, for a multiline TextCtrl, before, this was necessary Wx::TextCtrl.new(parent, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::TE_MULTILINE) now this is enough: Wx::TextCtrl.new(parent, :style => Wx::TE_MULTILINE) 2) One of the keyword constructor aspects is to allow a shorter notation for Size and Position arguments, using a two-element array: Wx::TextCtrl.new(parent, :size => [200, 100]) For consistency, this shorthand w...
2007 Apr 12
1
(no subject)
Bonjour. Je n''ai pas encore eu l''occasion d''utiliser TE_RICH2 en plus de TE_RICH | TE_MULTILINE, je compte l''essayé. Pour rentrer le texte dans TextCtrl j''utilise : @dou << texte Sebastien _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2010 Aug 23
4
Segmentation Fault
Once more, with feeling. I''m trying to implement using xrc_replace so as to use a RichTextCtrl in a form created by FormBuilder. The problem is that I can''t even create a RichTextCtrl. When I try to, I get a segmentation fault. I''ve attached the files that are causing this. I''m running wxRuby on a box running an up-to-date PCLinuxOS distro. I''ve
2007 Apr 03
0
[946] trunk/wxsugar/samples/sugar-sample.rb: Illustrate enumerable_controls and has_style
...n><del>- panel.add( Wx::TextCtrl[ :value => ''initial value'', </del><ins>+ tx = panel.add( Wx::TextCtrl[ :value => ''initial value'', </ins><span class="cx"> :style => Wx::TE_MULTILINE, </span><span class="cx"> :size => [200, 300] ] ) </span><ins>+ # test if a style is applied to a control + tx.has_style?(Wx::TE_MULTILINE) # true + tx.has_style?(Wx::TE_READONLY) # false </ins><span clas...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...show_modal + end + + def create_text_ctrl(text = "") + if text.empty? + text = "This is a test text box" + end + Wx::TextCtrl.new( self, Wx::ID_ANY, text, + Wx::Point.new(0, 0), Wx::Size.new(150, 90), + Wx::NO_BORDER|Wx::TE_MULTILINE) + end + + def create_grid + grid = Wx::Grid.new(self, Wx::ID_ANY, + Wx::Point.new(0, 0), + Wx::Size.new(150, 250), + Wx::NO_BORDER|Wx::WANTS_CHARS) + grid.create_grid(50, 20) + grid + end + + + def create_tree_...
2007 Apr 12
9
taille de caractère
en fait je vous renvoi ce message car maintenant la taille de la police change au bout de 500 lignes environ, alors que j''avais reussi à garder la taille jusqu''à environ 5000 lignes. Je ne comprend pas. Est-ce que c''est instable? le bout de code que vous m''avez envoyer ne marche pas. merci Sebastien _______________________________________________ wxruby-users
2007 Nov 19
3
wxRuby textArea??
I want to know wxruby can make textArea like java?? I can only use textbox with it but it has problem when I must use text that has many line, it can''t new line please help me -- Posted via http://www.ruby-forum.com/.
2007 Apr 08
0
Re: [news-wxruby2---preview-0.0.39-released-][20330] problème de police dans Traducteur-wxruby
...eu près dépasser les 1000 lignes pour que la taille change. > Merci pour votre réponse > Je n'ai pas vue cette erreur moi-meme. Pouvez-vous nous donner quelques détails svp? - Est-ce que vous travaillez sur Windows, Linux ou OS X? - Vous vous servez de Wx::TextCtrl avec le style Wx::TE_MULTILINE pour montrer le fichier sur l'écran? - Comment ouvrez-vous le fichier? Peut-être un échantillon court nous aiderait. Alex _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Apr 04
1
wx layout with sugar
...). Where am I going wrong? add(Panel, :proportion => 1) {|p| p.arrange_vertically(:padding => 5) p.add(Panel, :proportion => 1) {|p1| p1.arrange_vertically(:padding => 5) @history = p1.add(Choice, :minsize => true) @input = p1.add(TextCtrl[:style => TE_MULTILINE], :proportion => 1) } p.add(Panel, :proportion => 0) {|p2| p2.arrange_horizontally(:padding => 5) @eval = p2.add(Button[:label => ''eval'']) @clear_context = p2.add(Button[:label => ''clear context'']) } } I...
2006 Dec 14
5
wxruby2-preview Gauge and wx-sugar with SplitterWindow
...nge_vertically splitter = SplitterWindow.new(self) splitter.minimum_pane_size = 10 p1 = splitter.add(Panel.new(splitter)) do | p1 | @errors = p1.add(ListBox.new(p1)) end p2 = splitter.add(Panel.new(splitter)) do | p2 | @log = p2.add(TextCtrl.new(p2, :style => TE_MULTILINE | TE_READONLY)) end splitter.split_horizontally(p1, p2) add(splitter, :proportion => 1) Many thanks, Paul This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete...
2007 Feb 12
0
[863] trunk/wxruby2/samples/controls/controls.rb: Avoid error calling no-args Colour.new (no longer allowed)
...L_COLOUR </ins><span class="cx"> </span><span class="cx"> @m_text = TextCtrl.new(self, -1, "This is the log window.\n", </span><span class="cx"> Point.new(0, 250), Size.new(100, 50), TE_MULTILINE) </span></span></pre> </div> </div> </body> </html>
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
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
...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 + # that style. + # + # combobox.has_style?(Wx::CB_READONLY) + # textctrl.has_style?(Wx::TE_MULTILINE) + # + # Note that you should at least know that the constant +style+ is + # applicable to self. You may get false positives if testing a widget + # for a style belonging to an irrelevant class, e.g. testing a + # Wx::TextCtrl for the WX::CB_READONLY style. + def has_style?(style) + ( ge...
2006 Sep 07
2
A little bit of sugar
Hi Do a search on ''wxruby'' and you''ll see that people''s main gripes are 1) stability 2) development progress 3) documentation and 4) syntax. We''re making great progress on 1-3 so thought it seemed like a good time to start looking at 4). So here''s announcing a first release of WxSugar. It can be downloaded via gems (gem install wx_sugar)
2006 Oct 19
0
[690] trunk/wxruby2/samples/text/unicode.rb: Placed controls within a panel so they appear on the correct themed background
...;/span><span class="cx"> " << File.read( $utf8_file ) </span><span class="cx"> </span><span class="lines">@@ -24,9 +24,6 @@ </span><span class="cx"> Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::TE_MULTILINE) </span><span class="cx"> end </span><span class="cx"> </span><del>- # more ruby-ish - alias :<< :append_text - </del><span class="cx"> # run through a few useful methods of textctrl and report the results &...
2006 Dec 03
0
[778] trunk/wxruby2: Remove broken and deprecated LayoutConstraints, update samples & docs
...ot;> if x == -1 and y == -1 </span><span class="cx"> center_on_screen(Wx::BOTH) </span><span class="cx"> end </span><del>- text = Wx::TextCtrl.new(self, -1, msg, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::TE_MULTILINE | Wx::TE_READONLY) - ok = Wx::Button.new(self, Wx::ID_OK, "OK") - lc = Wx::LayoutConstraints.new() - lc.top.same_as(self, Wx::LAYOUT_TOP, 5) - lc.bottom.same_as(ok, Wx::LAYOUT_TOP, 5) - lc.right.same_as(self, Wx::LAYOUT_RIGHT, 5) - lc.left.same_a...
2007 Mar 29
7
object-oriented GUI design and event handling
I''m trying to setup a fairly simple GUI with Ruby to perform some SQL queries. There are a few drop-down boxes where users can select different options and then one button that when clicked should get the text from each drop-down in order to perform the query. Once it gets the result it should display it to a text control. The problem is I am not sure how to actually reference each
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