Displaying 20 results from an estimated 24 matches for "set_select".
Did you mean:
ast_select
2010 Mar 16
0
[ wxruby-Bugs-27976 ] Wx::ControlWithItems.select behavior is diferent than the documentation
...s (lotusone)
Assigned to: Nobody (None)
Summary: Wx::ControlWithItems.select behavior is diferent than the documentation
Initial Comment:
Doc (http://wxruby.rubyforge.org/doc/controlwithitems.html#ControlWithItems_select):
>ControlWithItems#select
> select(Integer n)
>This is the same as set_selection and exists only because it is slightly more natural for controls >which support multiple selection.
Code:
> c = Wx::Choice.new self, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, (''1''..''5'').to_a
> c.select 2
Output:
> in `select'': Swig dir...
2006 Nov 23
0
[754] trunk/wxruby2/samples/bigdemo: Rubified samples and added in missing client data sample code
...ext += key.chr()
</del><ins>+ @typedText += key.chr
</ins><span class="cx"> item = find_prefix(@typedText)
</span><span class="cx"> if item != -1
</span><span class="cx"> set_selection(item)
</span><span class="lines">@@ -57,7 +57,7 @@
</span><span class="cx">
</span><span class="cx"> else
</span><span class="cx"> @typedText = ""
</span><d...
2007 Mar 21
0
[906] branches/wxruby2/wxwidgets_282: Wx::ComboBox API 2.6 -> 2.8, plus some doc corrections
...omboBox_remove
</span><span class="cx"> * "ComboBox#set_insertion_point":#ComboBox_setinsertionpoint
</span><span class="cx"> * "ComboBox#set_insertion_point_end":#ComboBox_setinsertionpointend
</span><del>-* "ComboBox#set_selection":#ComboBox_setselection
</del><ins>+* "ComboBox#set_selection":#ComboBox_setselectionrange
</ins><span class="cx"> * "ComboBox#set_value":#ComboBox_setvalue
</span><span class="cx"> * "ComboBox#undo":#Comb...
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
2004 Aug 07
1
end_modal question
Really stupid question, but have you wrapped this all in an App class? If you don''t have a
wxApp subclass driving your applications then all sorts of badness would happen.
> I''m writing a custom little application for my boss''s high school
> football team to track there stats play by play.
>
> My problem is that when I start the application, it
2007 Jul 04
0
[1104] trunk/wxruby2: Added 2.8 methods to TextCtrl & document them; tidy up header file
...oint_end":#TextCtrl_setinsertionpointend
</span><span class="cx"> * "TextCtrl#set_max_length":#TextCtrl_setmaxlength
</span><ins>+* "TextCtrl#set_modified":#TextCtrl_setmodified
</ins><span class="cx"> * "TextCtrl#set_selection":#TextCtrl_setselection
</span><span class="cx"> * "TextCtrl#set_style":#TextCtrl_setstyle
</span><span class="cx"> * "TextCtrl#set_value":#TextCtrl_setvalue
</span><ins>+* "TextCtrl#change_value":#TextCtr...
2006 Dec 01
0
[766] trunk/wxruby2: Added item_data aliases for client_data functions, update doc & tests;
...nt_data":#ControlWithItems_setclientdata
-* "ControlWithItems#set_client_object":#ControlWithItems_setclientobject
</del><ins>+* "ControlWithItems#set_item_data":#ControlWithItems_setitemdata
</ins><span class="cx"> * "ControlWithItems#set_selection":#ControlWithItems_setselection
</span><span class="cx"> * "ControlWithItems#set_string":#ControlWithItems_setstring
</span><span class="cx"> * "ControlWithItems#set_string_selection":#ControlWithItems_setstringselection
</s...
2005 Aug 04
2
Next swig problem
...cpp(1147) : error C2371: ''cWxSpinCtrl'' : redefinition;
different basic types
...
The reason for this is the way it trying to use something before
declaring it:
extern "C" void PostInit_wxSpinCtrl(void)
{
#ifndef __WXGTK__
rb_define_method(cWxSpinCtrl.klass, "set_selection",
VALUEFUNC(_wrap_wxSpinCtrl_SetSelection), -1);
#endif
}
extern swig_class cWxControl;
swig_class cWxSpinCtrl;
If I move the PostInit part down below the declaration all works fine
(compilation wise).
2007 Jan 03
0
[823] trunk/wxruby2/doc/textile: Remove docs for some deprecated classes
...rol#set_font":#TabControl_setfont
-* "TabControl#set_id":#TabControl_setid
-* "TabControl#set_label":#TabControl_setlabel
-* "TabControl#set_position":#TabControl_setposition
-* "TabControl#set_row_position":#TabControl_setrowposition
-* "TabControl#set_selected":#TabControl_setselected
-* "TabControl#set_size":#TabControl_setsize
-
-</div>
-
-
-h3. TabControl.new
-
- *TabControl.new*(%(arg-type)TabView% view = nil)
-
-Constructor.
-
-h3. TabControl#get_col_position
-
- Integer *get_col_position*()
-
-Returns the position of the tab...
2007 Mar 21
0
[909] branches/wxruby2/wxwidgets_282/doc/textile/combobox.txtl: Correct disambiguated method names in methods listing
...omboBox_remove
</span><span class="cx"> * "ComboBox#set_insertion_point":#ComboBox_setinsertionpoint
</span><span class="cx"> * "ComboBox#set_insertion_point_end":#ComboBox_setinsertionpointend
</span><del>-* "ComboBox#set_selection":#ComboBox_setselectionrange
</del><ins>+* "ComboBox#set_selection_range":#ComboBox_setselectionrange
</ins><span class="cx"> * "ComboBox#set_value":#ComboBox_setvalue
</span><span class="cx"> * "ComboBox#undo&...
2007 Mar 31
0
[935] branches/wxruby2/wxwidgets_282/doc/textile/listbox.txtl: Correct method signature of Listbox#get_selections method
...lass="cx">
</span><span class="cx"> "ControlWithItems#get_selection":controlwithitems.html#ControlWithItems_getselection, "ControlWithItems#get_string_selection":controlwithitems.html#ControlWithItems_getstringselection, "ControlWithItems#set_selection":controlwithitems.html#ControlWithItems_setselection
</span></span></pre>
</div>
</div>
</body>
</html>
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 Nov 23
0
[752] trunk/wxruby2: Fix for Bug #6810: ListBox#get_selections should return an array of selections
...(@lb2.get_id()) {|event| on_evt_multi_listbox(event)}
</span><del>- # evt_right_up(@lb2.get_id()) {|event| on_evt_right_button(event)}
</del><ins>+ @lb2.evt_right_up {|event| on_evt_right_button(event)}
</ins><span class="cx"> @lb2.set_selection(0)
</span><span class="cx">
</span><span class="cx"> sampleList += ["test a", "test aa", "test aab", "test ab", "test abc", "test abcc", "test abcd"]
</span>&l...
2008 Jan 16
2
Question about WxNotebook, threads, and GUI refreshing
...", true, 0)
mpa_page = add_page(MPAPanel.new(self), "Product Addition", true, 0)
msrpc_page = add_page(MSRPCPanel.new(self), "SRP Change", true, 0)
payparse_page = add_page(PayParsePanel.new(self), "Payroll
Report", true, 0)
set_selection(0)
end
end
class MyApp < Wx::App
def on_init
frame = Wx::Frame.new(nil, :size => Wx::Size.new(686, 303),
:title => "MultiTool")
notebook = MainNB.new(frame, 0)
t = Wx::Timer.new(self, 55)
evt_timer(55) { Thread.pass }
t...
2007 Apr 14
0
[966] branches/wxruby2/wxwidgets_282/doc/textile/listbox.txtl: Fix methods which don''t need a ''n'' item for arrays in Ruby
...gt;@@ -136,21 +137,15 @@
</span><span class="cx"> "ControlWithItems#get_selection":controlwithitems.html#ControlWithItems_getselection, "ControlWithItems#get_string_selection":controlwithitems.html#ControlWithItems_getstringselection, "ControlWithItems#set_selection":controlwithitems.html#ControlWithItems_setselection
</span><span class="cx">
</span><span class="cx">
</span><del>-
-
-
</del><span class="cx"> h3(#ListBox_insertitems). ListBox#insert_items
</span><sp...
2007 Apr 29
0
[989] branches/wxruby2/wxwidgets_282: Fix a crasher with misdirected ComboBox#GetSelection method on GTK; clearer
...omboBox_remove
</span><span class="cx"> * "ComboBox#set_insertion_point":#ComboBox_setinsertionpoint
</span><span class="cx"> * "ComboBox#set_insertion_point_end":#ComboBox_setinsertionpointend
</span><del>-* "ComboBox#set_selection_range":#ComboBox_setselectionrange
</del><ins>+* "ComboBox#set_text_selection_range":#ComboBox_settextselectionrange
</ins><span class="cx"> * "ComboBox#set_value":#ComboBox_setvalue
</span><span class="cx"> * "...
2006 Oct 19
0
[690] trunk/wxruby2/samples/text/unicode.rb: Placed controls within a panel so they appear on the correct themed background
...t; File.readlines($utf8_file).each do | line |
</span><span class="cx"> next if line.chomp.empty?
</span><span class="cx"> choice.append(line.chomp)
</span><span class="cx"> end
</span><ins>+ choice.set_selection(0)
</ins><span class="cx"> ctrl_sizer.add(choice, 0, Wx::ADJUST_MINSIZE|Wx::ALL, 2)
</span><span class="cx">
</span><span class="cx"> sizer.add(ctrl_sizer, 0, Wx::ADJUST_MINSIZE|Wx::ALL, 2)
</span><span class=&qu...
2004 May 24
9
Combo Box
...ives = `subst`.split("\n").collect {|d|
md = d.match(/(.:).* => .*\\(.*)/)
"#{md.captures[0]} (#{md.captures[1] })"
}
@drives_box = ComboBox.new(self, ID_DRIVES_BOX, "",
DEFAULT_POSITION, DEFAULT_SIZE, drives)
@drives_box.set_selection(0)
dlgSizer.add(@drives_box, 1, ALIGN_RIGHT | ALL, 3)
evt_combobox(ID_DRIVES_BOX) {on_cmbx_change}
@btn_test_cmbx = Button.new(self, ID_BTN1, "Test ComboBox")
evt_button(ID_BTN1) { on_cmbx_change }
dlgSizer.add(@btn_test_cmbx, 1, ALIGN_RIGHT |...
2007 May 05
0
[1012] trunk/wxruby2/doc/textile: Added docs for AUI Advanced User Interface classes
...ertpage
+* "AuiNotebook#remove_page":#AuiNotebook_removepage
+* "AuiNotebook#set_art_provider":#AuiNotebook_setartprovider
+* "AuiNotebook#set_page_bitmap":#AuiNotebook_setpagebitmap
+* "AuiNotebook#set_page_text":#AuiNotebook_setpagetext
+* "AuiNotebook#set_selection":#AuiNotebook_setselection
+* "AuiNotebook#set_tab_ctrl_height":#AuiNotebook_settabctrlheight
+* "AuiNotebook#set_uniform_bitmap_size":#AuiNotebook_setuniformbitmapsize
+
+</div>
+
+
+h3(#AuiNotebook_wxauinotebook). AuiNotebook.new
+
+ *AuiNotebook.new*(%(arg-type...
2006 Dec 03
0
[778] trunk/wxruby2: Remove broken and deprecated LayoutConstraints, update samples & docs
...choices, CB_SORT )
</span><span class="cx">
</span><del>- Myset_client_data("choice", @m_choice)
- Myset_client_data("choice", @m_choiceSorted)
-
</del><span class="cx"> @m_choice.set_selection(2)
</span><span class="cx"> @m_choice.set_background_colour(Colour.new("red"))
</span><span class="cx"> Button.new( panel, ID_CHOICE_SEL_NUM, "Select #&2", Point.new(180,30), Size.new(140,30) )
</span><s...