search for: get_selection

Displaying 20 results from an estimated 37 matches for "get_selection".

2007 Mar 31
0
[935] branches/wxruby2/wxwidgets_282/doc/textile/listbox.txtl: Correct method signature of Listbox#get_selections method
...none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[935] branches/wxruby2/wxwidgets_282/doc/textile/listbox.txtl: Correct method signature of Listbox#get_selections method</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>935</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-03-31 11:32:49 -0400 (Sat, 31 Mar 2007)</dd> &...
2006 Nov 24
0
[757] trunk/wxruby2/samples/bigdemo/wxListBox.rbw: Made presentation of results of ListBox.get_selections clearer
...oration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[757] trunk/wxruby2/samples/bigdemo/wxListBox.rbw: Made presentation of results of ListBox.get_selections clearer</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>757</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-11-24 12:17:52 -0500 (Fri, 24 Nov 2006)</dd>...
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...
2006 Nov 21
0
[ wxruby-Bugs-6810 ] Wx::ListBox.get_selections does not return selected items
...:21 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=6810&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Kevin Smith (qualitycode) Summary: Wx::ListBox.get_selections does not return selected items Initial Comment: Wx::ListBox.get_selections should return an array containing the Integer positions of all the selected items. It is only useful when the widget has been created with the LB_MULTIPLE style. However, at present, it returns the number of selected item...
2007 Sep 20
7
Troubles with ListBox and CheckListBox events
...rough event.string) of the item both when the item is selected AND when the item is unselected. - one can know if an item is actually selected through the event.selection? (or is_selection) call. This is fine and this is what I expect but the wxRuby documentation states that : "CommandEvent#get_selection Integer get_selection() Returns item index for a listbox or choice selection event (not valid for a deselection). CommandEvent#get_string String get_string() Returns item string for a listbox or choice selection event (not valid for a deselection)." => Question : The documentation contrad...
2006 Nov 23
0
[752] trunk/wxruby2: Fix for Bug #6810: ListBox#get_selections should return an array of selections
...px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[752] trunk/wxruby2: Fix for Bug #6810: ListBox#get_selections should return an array of selections</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>752</dd> <dt>Author</dt> <dd>roys</dd> <dt>Date</dt> <dd>2006-11-23 00:58:43 -0500 (Thu,...
2006 Nov 23
0
[754] trunk/wxruby2/samples/bigdemo: Rubified samples and added in missing client data sample code
...ss="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"> end </span><span class="cx"> </span><span class="cx"> def on_evt_text(event) </span><del>...
2006 Nov 24
0
[756] trunk/wxruby2/swig: Moved one-shot typemaps for ListBox.get_selections into ListBox.i
...ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[756] trunk/wxruby2/swig: Moved one-shot typemaps for ListBox.get_selections into ListBox.i</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>756</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-11-24 12:17:06 -0500 (Fri, 24 Nov 2006)</...
2006 Mar 12
1
What''s the correct way to use ":with" with link_to_remote?
...arameter a value computed in javascript. In order to accomplish this I''m using this command: <%= link_to_remote(''TouchUp'', :update => ''touchup_section'', :url => {:action => ''touchup'', :id => @article}, :with => "get_selection()" ) %> This works, but the name of the parameter is whatever is returned by get_selection (a string). I can''t see how to name the parameter so that I might access it in my controller. Thanks in advance. -cameron
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
2008 Mar 07
9
copy & paste event
hi. now I have problem about copy and paste text in my application I make copy and paste button in toolbar and I have fuction of them but I don''t know how to make it can copy only selection text and paste into other textCtrl. see my picture for more info. thank you :) Attachments: http://www.ruby-forum.com/attachment/1526/untitled.JPG -- Posted via http://www.ruby-forum.com/.
2004 May 22
4
couple of questions
...a MDI, but the controls sample looks OK. The artifacts are cleared up when it''s repainted or resized, but I was wondering if there was anything else I could do - even manually forcing the frame to repaint? I''m on WinXP Pro. 2) Would it be sensible to have methods like TreeCtrl#get_selection return Ruby''s nil rather than 0 if nothing is highlighted in the control. It feels more natural Ruby to me to write something like if sel = get_selection() ... rather than if sel = get_selection() and sel != 0 ... cheers alex -------------- next part -------------- A non-text at...
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
2006 Nov 23
2
to_s
I was toying around with adding a to_s function to wxPoint (and probably to some other classes). I''m wondering if this is a good idea or not and if so, is it best to use %extend or put it into something like wxSugar or the ruby parts of wx? My initial implementation is: %extend wxPoint { VALUE to_s() { char buffer[40]; sprintf(buffer, "%d,%d", self->x,
2007 Jul 05
8
when can publish the next version?
when can publish the next version? i am waiting... _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
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
2004 Jun 23
1
some wxruby questions
...if not, is there a work around? MODERN fonts are NOT fixed width, especially on debian 3) Are there some memory problems with tree control? I instantiate a tree control, add some items and then if I call this code several minutes later, I often get a seg fault : get_item_data(get_selection).absolute_filename (where absolute_filename is a method on the item data) this works, for a while and then it starts seg faulting. I''m guessing that somewhere the ruby garbage collection is prematurely collecting these items? has anyone else seen this. It''s really annoying...
2007 May 07
0
[1017] trunk/wxruby2/Changelog: Update changelog with 0.0.40 changes
...to use paint method rather than DC directly (AF) +- Fixes for memory errors and windows crashes with PaintDC, doc (AF/Artur Kuptel) +- Prevent direct instantiation of ClientDC and PaintDC (AF) +- Make Window#paint work consistently inside and outside evt_paint (AF) +- Fix for crasher with ComboBox#get_selection, rename method (AF) +- Fix for XRC error in Linux listbook sample (AF) +- Enable no-arg constructor for Frame for use with XRC (AF) +- Fix for Window#get_handle (AF) +- Remove deprecated DC#begin/end_drawing (AF) +- Fix AUI compilation on Windows, remove odbc linking (AF) +- Add check_spelling meth...
2007 Apr 13
0
[956] branches/wxruby2/wxwidgets_282: Additions to TreeCtrl API 2.6->2.8
...tsize </ins><span class="cx"> * "TreeCtrl#get_root_item":#TreeCtrl_getrootitem </span><span class="cx"> * "TreeCtrl#get_item_selected_image":#TreeCtrl_getitemselectedimage </span><span class="cx"> * "TreeCtrl#get_selection":#TreeCtrl_getselection </span><span class="lines">@@ -175,6 +179,7 @@ </span><span class="cx"> * "TreeCtrl#insert_item":#TreeCtrl_insertitem </span><span class="cx"> * "TreeCtrl#insert_item_before":#TreeCtrl...
2007 Mar 21
0
[906] branches/wxruby2/wxwidgets_282: Wx::ComboBox API 2.6 -> 2.8, plus some doc corrections
...n><span class="cx"> * "ComboBox#get_last_position":#ComboBox_getlastposition </span><del>-* "ComboBox#get_value":#ComboBox_getvalue </del><ins>+* "ComboBox#get_current_selection":#ComboBox_getcurrentselection +* "ComboBox#get_selection":#ComboBox_getselectionrange </ins><span class="cx"> * "ComboBox#paste":#ComboBox_paste </span><span class="cx"> * "ComboBox#redo":#ComboBox_redo </span><span class="cx"> * "ComboBox#replace":#Combo...