search for: id_any

Displaying 17 results from an estimated 17 matches for "id_any".

Did you mean: cid_any
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...nTextColour + ID_ActiveCaptionColour + ID_ActiveCaptionGradientColour + ID_ActiveCaptionTextColour + ID_BorderColour + ID_GripperColour ] + + consts.each_with_index do | c, i | + const_set(c, 1001 + i) + end + + def initialize(parent, frame) + super(parent, Wx::ID_ANY) + @frame = frame + @base_bmp = create_colour_bitmap(Wx::BLACK) + + # set up some spin ctrls for integer variables + @border_size, s1 = make_metric_spin_ctrl( ID_PaneBorderSize, + "Pane Border Size:", +...
2008 May 26
0
[ wxruby-Feature Requests-20367 ] wxToolBarTool (wxToolBarToolBase) missing, thus anti-OO
...tool(1001) { puts "I warned you" } Those IDs: 1000, 1001 may clash with other toolbars on the same frame. For a fixed app this may be not a great problem, but for generated apps it''s a mess. I really want to be able to do tb = Wx::Toolbar.new(frame) tryme = tb.add_tool(Wx::ID_ANY, "Click me", fancy_bitmap) dangerous = tb.add_tool(Wx::ID_ANY, "Don''t click here", fancy_bitmap) evt_tool(tryme) { puts "Great job" } evt_tool(dangerous) { puts "I warned you" } (Well, those ID_ANY should also go away, but this can be done wi...
2008 Jun 02
1
Add TextCtrl to toolbar
Hi, How can I add a textctrl to a toolbar? I tried toolbar.add_control(TextCtrl.new(self, ID_ANY)), but that returns false and the control gets placed wherever. Thanks
2006 Apr 23
5
Re: StaticBoxSizer bug?
...; IMPLEMENT_APP(SizerTestApp); > > bool SizerTestApp::OnInit() { > SizerTestFrame *frame = new SizerTestFrame("Test"); > > frame->Show(true); > > return true; > } > > SizerTestFrame::SizerTestFrame(const wxString & title) : > wxFrame(NULL, wxID_ANY, title) > { > wxPanel *panel = new wxPanel(this, wxID_ANY); > wxBoxSizer *boxSizer = new wxBoxSizer(wxHORIZONTAL); > wxStaticBox *box = new wxStaticBox(panel, wxID_ANY, wxT("BoxTitle")); > wxStaticText *text = new wxStaticText(panel, wxID_ANY, wxT("...
2008 Jan 22
0
Wx::GenericDirCtrl fixes
...ry solution, till wxGenericDirCtrl#get_tree_ctrl() is fixed, is that you can sub-class Wx::GenericDirCtrl() into your own class, and intercept messages sent by the TreeCtrl within it. Example: class MyDirCtrl < Wx::GenericDirCtrl def initialize(*args) super evt_tree_item_selected(Wx::ID_ANY) { |evt| do_event(evt) } end end As far as I know, this will work with any of the evt_tree* signals. A bit of a hack, but it should work without any problems. L8ers, -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/proje...
2007 Dec 18
1
Dynamic Task Bar Menu Items
Am looking for a way to dynamically add menu items to a task bar icon menu. And then once selected - I would like to get the title of the menu item. The general idea is to read a text file: Project1 Project2 Project3 ===== Add those to the task bar menu, and when i select (for example) Project2, I want to pass the string "Project2" to the code. Also - Am wondering about how to get
2007 Nov 18
2
Issues adding sub-menu items
Hello All, I''m new to the list and to Ruby. I was trying to use one of the examples as a skeleton for something that I''m working on. I''m currently stuck when it comes to adding another item to the sub-menus. I have a menu item by the name of "Tools" and I would like to add a sub-menu item called "Find Unique Fields" but it doesn''t show up
2007 Jul 21
0
[1132] trunk/wxruby2/doc/textile/windowdestroyevent.txtl: Updated and corrected doc on WindowDestroyEvent, noting that e.skip must
...use the @evt_destroy@ event hook -to handle the event using a block. The block can optionally receive a -WindowDestroyEvent argument. @id@ should be the id of the window whose -destruction should be handled. It is possible to observe the destruction -of any window using the special identifier @Wx::ID_ANY@. Note that a -WindowDestroyEvent is only generated when a window''s @destroy@ method is -explicitly called; the automatic deletion of child windows when a frame -is destroyed does *not* trigger these events. </del><ins>+Note that if you specify your own evt_window_destroy handl...
2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...event, use the @evt_create@ event hook to +handle the event with a block. The block can optionally receive a +WindowCreateEvent argument. @id@ should be the id of the window whose +creation should be handled. It is possible to observe the creation of +any window by using the special identifier @Wx::ID_ANY@. If this +identifier is used, the newly created window can be obtained from the +event object; call the @get_event_object@ method of the event. </ins><span class="cx"> </span><ins>+|*evt_create(id)&nbsp;{&nbsp;&#124;&nbsp;event&nbsp;&#124;...
2010 Feb 24
3
Mouse wheel events in a grid cell editor?
I''m trying to do some advanced editing using Grids. I''ve created my own editors and updating view and model both works fine so far. Thanks to whoever made this possible. I like wxRuby more each day! Now I''d like to catch mousewheel events in order to increment/decrement a grid cell editor. I''ve tried installing a handler in begin_edit of my editor and removing
2007 Mar 23
0
[918] branches/wxruby2/wxwidgets_282/samples/aui/aui.rb: Fix a couple of little bugs and typos
...ss="lines">@@ -288,7 +289,7 @@ </span><span class="cx"> sz = Wx::BoxSizer.new(Wx::HORIZONTAL) </span><span class="cx"> sz.add(1, 1, 1, Wx::EXPAND) </span><span class="cx"> sz.add( Wx::StaticText.new(self, Wx::ID_ANY, caption) ) </span><del>- sz.add(@cap_grad) </del><ins>+ sz.add(bmp_butt) </ins><span class="cx"> sz.add(1, 1, 1, Wx::EXPAND) </span><span class="cx"> sz.set_item_min_size(1, 180, 20) </span><span class=&quot...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...evt_xxx to conveniently set + # up event handlers + EVENT_DEFINITIONS.each do | ev_type | + EVENT_TYPE_MAPPING[ev_type.const] = ev_type.evt_class + case ev_type.arity + when 0 # events without an id + class_eval %Q{ + def #{ev_type.name}(&block) + connect(Wx::ID_ANY, Wx::ID_ANY, #{ev_type.const}, &block) + end + } + when 1 # events with an id + class_eval %Q{ + def #{ev_type.name}(id, &block) + connect(id, Wx::ID_ANY, #{ev_type.const}, &block) + end + } + when 2 # events with id range + class_...
2007 Jun 26
0
[1082] trunk/wxruby2/doc/textile/hyperlinkctrl.txtl: Added HyperlinkCtrl and HyperlinkEvent documentation
...+ %(arg-type)Size% size = DEFAULT_SIZE, + %(arg-type)Integer% style, + %(arg-type)String% name = "hyperlink") + +Creates the hyperlink control. + +h4. Parameters + +* _parent_ Parent window. Must not be . +* _id_ Window identifier. A value of ID_ANY indicates a default value. +* _label_ The label of the hyperlink. +* _url_ The URL associated with the given label. +* _pos_ Window position. +* _size_ Window size. If the DefaultSize is specified then the window is sized +appropriately. +* _style_ Window style. See "HyperlinkCtrl":hyperl...
2007 Apr 14
0
[963] branches/wxruby2/wxwidgets_282/doc/textile/dialog.txtl: Added a few missing methods and cleaned up a bit.
...s dialog. When the button with this id is clicked, the dialog is closed. Also, when the user presses ESC key in the dialog or closes the dialog using the close button in the title bar, this is mapped to the click of the button with the specified id. + +By default, the escape id is the special value ID_ANY meaning that ID_CANCEL button is used if it''s present in the dialog and otherwise the button with "get_affirmative_id":dialog.html#Dialog_getaffirmativeid is used. Another special value for _id_ is ID_NONE meaning that ESC presses should be ignored. If any other value is given, i...
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...class="cx"> * _parent_ Pointer to a parent window. </span><del>-* _id_ Window identifier. If -1, will automatically create an identifier. -* _pos_ Window position. DefaultPosition is (-1, -1) which indicates that Widgets </del><ins>+* _id_ Window identifier. If ID_ANY, will automatically create an identifier. +* _pos_ Window position. DefaultPosition indicates that Widgets </ins><span class="cx"> should generate a default position for the window. If using the Window class directly, supply </span><span class="cx"> an ac...
2007 Apr 30
0
[996] branches/wxruby2/wxwidgets_282: TopLevelWindow: add some 2.8 methods; document; add missing CentreOnScreen
...ements are only significant under Motif or Xt. + + </ins><span class="cx"> h3(#TopLevelWindow_setrightmenu). TopLevelWindow#set_right_menu </span><span class="cx"> </span><span class="cx"> *set_right_menu*(%(arg-type)Integer% id = ID_ANY, %(arg-type)String% label = '''', </span><span class="lines">@@ -240,7 +367,7 @@ </span><span class="cx"> depicted by _region_. The system will not display or </span><span class="cx"> respond to any mouse event for...
2007 May 05
0
[1012] trunk/wxruby2/doc/textile: Added docs for AUI Advanced User Interface classes
...t;AuiNotebook#set_tab_ctrl_height":#AuiNotebook_settabctrlheight +* "AuiNotebook#set_uniform_bitmap_size":#AuiNotebook_setuniformbitmapsize + +</div> + + +h3(#AuiNotebook_wxauinotebook). AuiNotebook.new + + *AuiNotebook.new*(%(arg-type)Window% parent, %(arg-type)Integer% id = ID_ANY, + %(arg-type)Point% pos = DEFAULT_POSITION, + %(arg-type)Size% size = DEFAULT_SIZE, + %(arg-type)Integer% style = AUI_NB_DEFAULT_STYLE) + +Constructor. Creates a AuiNotebok control. + +h3(#AuiNotebook_addpage). AuiNotebook#add_page + + Boolean...