search for: write_text

Displaying 18 results from an estimated 18 matches for "write_text".

Did you mean: write_test
2006 Nov 23
0
[754] trunk/wxruby2/samples/bigdemo: Rubified samples and added in missing client data sample code
...t; </span><span class="lines">@@ -36,25 +36,27 @@ </span><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def on_combobox(event) </span><del>- @log.write_text("evt_combobox: " + event.get_string()) </del><ins>+ cb = event.get_event_object + data = cb.get_client_data(event.get_selection) + @log.write_text("evt_combobox: #{event.get_string}\nClient Data: #{data}") </ins><span class="cx&quot...
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
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
2
Patch to fix ArtProvider and ArtProvider sample
These patches better implement ArtProvider and add the demo for it. I also expanded the bigdemo window a little bit. I really think we should go larger but I suppose there might be some people at 800x600 still. Note that creating your own art provider still doesn''t quite work correctly. I didn''t have time to get into that. The RubyConstants.i.patch file looks weird. Not
2006 Sep 14
1
wxChoicebook
wxChoicebook.rbw + patch file to bigdemo.rb 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
2006 Nov 24
0
[757] trunk/wxruby2/samples/bigdemo/wxListBox.rbw: Made presentation of results of ListBox.get_selections clearer
...7) </span><span class="lines">@@ -107,7 +107,8 @@ </span><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def on_evt_multi_listbox(event) </span><del>- @log.write_text("evt_multi_listbox: (" + @lb2.get_selections.to_s + ")") </del><ins>+ @log.write_text("evt_multi_listbox: (" + + @lb2.get_selections.join('','') + ")") </ins><span class="cx">...
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 Jan 14
3
ListCtrl help
...from a separate data source once I have it working and maybe you can add it to the samples library.... I''d expect that being able to quickly whip up a cross platform data viewer is a popular reason to use wxRuby. -Hawley ------------------- def on_col_left_click(event) @log.write_text("col clicked, id=%d" % event.get_column()) if @sort_column == event.get_column() @the_data.reverse! else @sort_column = event.get_column() @the_data.sort! {|a,b| a[@sort_column]<=>b[@sort_column]} end @the_data.each do |d| @log.w...
2007 Jan 05
0
[832] trunk/wxruby2/samples: Fix samples for TreeItemIds as integers, fix image size in treectrl sample
...pan class="cx"> def on_sel_changed(event) </span><span class="cx"> @item = event.get_item() </span><del>- if @item.is_ok </del><ins>+ if @item.nonzero? </ins><span class="cx"> @log.write_text("on_sel_changed: " + @tree.get_item_text(@item)) </span><span class="cx"> # if Wx::PLATFORM == "WXMSW" </span><span class="cx"> #@log.write_text("BoundingRect: " + @tree.get_bounding_rect(@item)) &...
2008 Jul 19
0
[ wxruby-Bugs-21273 ] Segmantation fault in textctr.append_text
...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 appending text to the end of the log window), application crashes after couple of seconds with ...lib/base/my_logger.rb:6: [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i386-mswin32] This app...
2007 Apr 19
0
scRUBYt! 0.2.8
...they are constructed from examples, just as regular expressions (Credit: Neelance) [NEW] Possibility to click the n-th link [FIX] Clicking on links using scRUBYt''s advanced example lookup (i.e. you can use :begins_with etc.) [NEW] Forcing writing text of non-leaf nodes with :write_text => true [NEW] Possibility to set custom user-agent; Specified default user agent as Konqueror [FIX] Fixed crawling to detail pages in case of leaving the original site (Credit: Michael Mazour) [FIX] fixing the ''//'' problem - if the relative url contained two...
2007 Apr 29
0
[990] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxCursor.rbw: Use paint block instead of ClientDC; load icon file safely
...bsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-04-29 16:16:10 UTC (rev 990) </span><span class="lines">@@ -90,7 +90,8 @@ </span><span class="cx"> choice = event.get_string </span><span class="cx"> @log.write_text("Selecting the cursor #{choice}") </span><span class="cx"> if choice[0..1] == ''zz'' </span><del>- image = Wx::Image.new(''icons/pointy.png'') </del><ins>+ img_file = File.join(File.dirname(__FILE_...
2007 May 04
0
[1006] trunk/wxruby2/samples/bigdemo/wxArtProvider.rbw: ok method name changed to is_ok
...bmp = make_bitmap("tick.png") </span><span class="cx"> end </span><span class="cx"> </span><del>- if bmp.ok </del><ins>+ if bmp.is_ok </ins><span class="cx"> @log.write_text("MyArtProvider: providing #{artid}:#{client} at #{size.x}x#{size.y}") </span><span class="cx"> end </span><span class="cx"> bmp </span><span class="lines">@@ -229,7 +229,7 @@ </span><span class=&quo...
2007 May 31
0
[1043] trunk/wxruby2/samples/bigdemo: Don''t manually call destroy
...lass="cx"> close(true) </span><span class="cx"> end </span><span class="cx"> </span><del>- def on_close_window </del><ins>+ def on_close_window(event) </ins><span class="cx"> @log.write_text("MiniFrame closed.") </span><del>- destroy </del><ins>+ event.skip </ins><span class="cx"> end </span><span class="cx"> </span><span class="cx"> end </span></span></pre&gt...
2007 Jun 26
0
[1078] trunk/wxruby2: Map evt_spinctrl to SpinEvent instead of CommandEvent; add example to bigdemo
...+ + sc = Wx::SpinCtrl.new(self, -1, "", + Wx::Point.new(30, 50), Wx::Size.new(80, -1)) + sc.set_range(1,100) + sc.set_value(5) + evt_spinctrl(sc.get_id) { | e | on_spinctrl(e) } + # sc.enable(false) + end + + def on_spinctrl(evt) + @log.write_text("spintctrl - new position #{evt.get_position}") + end </ins><span class="cx"> end </span><span class="cx"> </span><span class="cx"> module Demo </span><del>- def Demo.run(frame,nb,log) - win = TestPa...
2009 Feb 02
12
[RSpec] rcov and/or rexml bug?
...o integer (TypeError) from /usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `wrap'' from /usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `wrap'' from /usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:90:in `write_text'' from /usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/default.rb:50:in `write'' from /usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:75:in `write_element'' from /usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:73:in `ea...
2007 Jul 04
0
[1104] trunk/wxruby2: Added 2.8 methods to TextCtrl & document them; tidy up header file
...hange_value":#TextCtrl_changevalue </ins><span class="cx"> * "TextCtrl#show_position":#TextCtrl_showposition </span><span class="cx"> * "TextCtrl#undo":#TextCtrl_undo </span><span class="cx"> * "TextCtrl#write_text":#TextCtrl_writetext </span><span class="lines">@@ -408,14 +440,19 @@ </span><span class="cx"> h4. Remarks </span><span class="cx"> </span><span class="cx"> Note that even empty text controls have one line...