search for: append_text

Displaying 14 results from an estimated 14 matches for "append_text".

2008 Jul 19
0
[ wxruby-Bugs-21273 ] Segmantation fault in textctr.append_text
...-07-19 17:51 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=21273&group_id=35 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Roman Zawada (zwadar) Assigned to: Nobody (None) Summary: Segmantation fault in textctr.append_text Initial Comment: I''m using window with one multiline TextCtrl (with RICH style) for logging what my building app is doing by using function TextCtrl.append_text() (tested on write_text too). When I continuously move with scrollbar, trying to read older log messages (while app is still app...
2005 Aug 19
9
Patch for listbook.rb
Attached is a patch file for listbook.rb 1) Message box scrolls properly now 2) Blank lines are skipped when adding pizzas and ice cream _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Jan 22
0
[ wxruby-Bugs-8068 ] TextCtrl#append_text doesn''t work when text is in UTF8
...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 Initial Comment: TextCtrl.append_text should append the passed text to the textctrl''s content. However, if the passed text contains multibyte UTF-8 characters, it will show as blank. On OS X 10.3, wxruby 0.0.38 ---------------------------------...
2005 Dec 27
0
Re: RESOLVED: Overloading error_message_on method in ActiveRecordHelper
...ton to one with a hash that simulates keywords, it works just fine: --- module ActionView module Helpers module ActiveRecordHelper def error_message_on(object, method, params = nil) if params.class == Hash prepend_text = params[:prepend_text] || "" append_text = params[:append_text] || "" css_class = params[:css_class] || "formError" span = params[:span] || false end if errors = instance_variable_get("@#{object}").errors.on(method) content_tag(span ? &quot...
2005 Dec 23
1
Overloading error_message_on method in ActiveRecordHelper
...per_fix'' --- ..and a lib directory with active_record_helper_fix.rb like this: --- require ''action_view/helpers/active_record_helper'' module ActionView module Helpers module ActiveRecordHelper def error_message_on(object, method, prepend_text = "", append_text = "", css_class = "formError", span = false) if errors = instance_variable_get("@#{object}").errors.on(method) content_tag(span ? "span" : "div", "#{prepend_text}#{errors.is_a?(Array) ? errors.first : errors}#{append_text}&quo...
2007 Jan 03
2
error_message_on broken?
Hi, in my app, using the error_message_on form helper like this: <label for="user_name">User name:</label> <%= error_message_on ''user'', :name %> <%= f.text_field :name %> generates the following error: undefined method `errors'' for :user:Symbol I am using edge revision 5813 and the simply_helpful plugin. Is there a way to fix this?
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 Sep 14
0
Work around for problems with error_message_on
Hey all I was encountering problems with error_message_on in the fact that it caused an exception when no object by that name had any errors (or did not exsist) so i created this work around... def display_error(obj, method, prepend_text = "", append_text = "", css_class = "form_error") object = instance_variable_get("@#{obj}") if object && !object.errors.empty? errors = object.errors.on(method) if errors content_tag("div", "#{prepend_text}#{errors.is_a?(Array) ? erro...
2007 Jun 17
2
Wx::TextCtrl and wxMSW
...us makes for faster updates succ,c,sl = self.position_to_xy(self.get_last_position) # Need to know where we are at in the buffer. Only part used is sl # Here is where I process my text, but shouldn''t be needed for other stuff, least your doing an Extended Text Formatting self.append_text(text) self.thaw # Okay, we are done adding, so you can clear out now succ,c,se = self.position_to_xy(self.get_last_position) # Now we need to know where the buffer is, since we added data. self.scroll_lines((el-sl)+2) # Move the window to the last line given. Add 2 more fake lines, to...
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
2008 Jun 13
7
Rubyscript2exe undefined ''run'' method
...ndomFrame < RandomBase def initialize super evt_button(start_button) {|event| on_start(event)} end def on_start(event) path = @dirtree.get_path() if location_textbox.get_value().length == 0 then @location_textbox.clear @location_textbox.append_text(path) end @max_number = number_of_random_textbox.get_value() @number_of_digits = number_of_digits_textbox.get_value() @file_path = location_textbox.get_value() if (@number_of_digits.to_i == 0) or (@max_number.to_i == 0) then elsif path.length == 0 then els...
2006 Oct 19
0
[690] trunk/wxruby2/samples/text/unicode.rb: Placed controls within a panel so they appear on the correct themed background
...gt;@@ -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 </span><span class="cx"> # as a string </span><span class="cx"> def report() </span><span class="lines">@@ -6...
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 Jul 04
0
[1104] trunk/wxruby2: Added 2.8 methods to TextCtrl & document them; tidy up header file
...multiline text controls always store the text as a sequence of lines </span><span class="lines">@@ -92,6 +100,27 @@ </span><span class="cx"> text.set_default_style( Wx::TextAttr.new(Wx::BLUE) ) </span><span class="cx"> text.append_text("Blue on grey text\n") </span><span class="cx"> </span><ins>+h2. Constants + +The values below are the possible return codes of the +"hit_test":#TextCtrl_hittest method: + + + + // the point asked is ... + enum TextCtrlHitTestResult + { + T...