search for: commandevent

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

2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...t; Wx::CalendarEvent, - Wx::EVT_CALENDAR_YEAR_CHANGED => Wx::CalendarEvent, - Wx::EVT_CALENDAR_DOUBLECLICKED => Wx::CalendarEvent, - Wx::EVT_CALENDAR_WEEKDAY_CLICKED => Wx::CalendarEvent, - Wx::EVT_CLOSE_WINDOW => Wx::CloseEvent, - Wx::EVT_COMMAND_BUTTON_CLICKED => Wx::CommandEvent, - Wx::EVT_COMMAND_CHECKBOX_CLICKED => Wx::CommandEvent, - Wx::EVT_COMMAND_CHOICE_SELECTED => Wx::CommandEvent, - Wx::EVT_COMMAND_LISTBOX_SELECTED => Wx::CommandEvent, - Wx::EVT_COMMAND_LISTBOX_DOUBLECLICKED => Wx::CommandEvent, - Wx::EVT_COMMAND_CHECKLISTBOX_TOGGLED =&gt...
2007 Dec 27
0
[ wxruby-Bugs-16622 ] Calling skip() on CommandEvent causes segfault on OS X 10.5
...ou can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=16622&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: Calling skip() on CommandEvent causes segfault on OS X 10.5 Initial Comment: If skip is called on the handler for a CommandEvent for the "About" menu item in the minimal sample, there is a segfault with the following backtrace: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_F...
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...t; Wx::CalendarEvent, + Wx::EVT_CALENDAR_YEAR_CHANGED => Wx::CalendarEvent, + Wx::EVT_CALENDAR_DOUBLECLICKED => Wx::CalendarEvent, + Wx::EVT_CALENDAR_WEEKDAY_CLICKED => Wx::CalendarEvent, + Wx::EVT_CLOSE_WINDOW => Wx::CloseEvent, + Wx::EVT_COMMAND_BUTTON_CLICKED => Wx::CommandEvent, + Wx::EVT_COMMAND_CHECKBOX_CLICKED => Wx::CommandEvent, + Wx::EVT_COMMAND_CHOICE_SELECTED => Wx::CommandEvent, + Wx::EVT_COMMAND_LISTBOX_SELECTED => Wx::CommandEvent, + Wx::EVT_COMMAND_LISTBOX_DOUBLECLICKED => Wx::CommandEvent, + Wx::EVT_COMMAND_CHECKLISTBOX_TOGGLED =&gt...
2006 Oct 17
0
[678] trunk/wxruby2/doc/textile/commandevent.txtl: Fixed a few event macros that did not get fixed by the parser.
...d #ccc;margin:10px 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>[678] trunk/wxruby2/doc/textile/commandevent.txtl: Fixed a few event macros that did not get fixed by the parser.</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>678</dd> <dt>Author</dt> <dd>seanlong</dd> <dt>Date</dt> <dd&...
2007 Jun 26
0
[1078] trunk/wxruby2: Map evt_spinctrl to SpinEvent instead of CommandEvent; add example to bigdemo
...ns {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>[1078] trunk/wxruby2: Map evt_spinctrl to SpinEvent instead of CommandEvent; add example to bigdemo</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1078</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-06-26 04:55:43 -0400 (Tue, 26 Jun 2...
2007 Sep 20
7
Troubles with ListBox and CheckListBox events
...the text (through 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 documen...
2007 Jan 03
0
[822] trunk/wxruby2/doc/textile: Links to the documentation on TextUrlEvent
...ocessed automatically, when the control has the </span><span class="cx"> focus. </span><span class="cx"> </span><del>-To process input from a text control, use these event handler macros to -direct input to member functions that take a -"CommandEvent":commandevent.html argument. </del><ins>+To process input from a text control, use these event handler methods to +direct the events to a block that takes a "CommandEvent":commandevent.html +argument. </ins><span class="cx"> </span><span cl...
2007 Jun 28
0
[1093] trunk/wxruby2: Added ChildFocusEvent class, mapping and documentation
...he focus back to its corresponding child +if it loses it now and regains later. + +Notice that child window is the direct child of the window receiving event. +Use "find_focus":#ChildFocusEvent_findfocus to retreive the window which is actually getting focus. + +h2. Derived from + +"CommandEvent":commandevent.html + +"Event":event.html + +"Object":object.html + +h2. Event table macros + +To process a child focus event, use this event handler macro to direct input to a member +function that takes a ChildFocusEvent argument. + + + +|*evt_child_focus()&nbsp;{&...
2007 Jun 28
0
[1091] trunk/wxruby2/lib/wx/classes/evthandler.rb: Add interim event type mappings for a few obscure oddities
...nes">@@ -111,6 +111,9 @@ </span><span class="cx"> EventType[''evt_checklistbox'', 1, </span><span class="cx"> Wx::EVT_COMMAND_CHECKLISTBOX_TOGGLED, </span><span class="cx"> Wx::CommandEvent], </span><ins>+ EventType[''evt_child_focus'', 0, + Wx::EVT_CHILD_FOCUS, + Wx::Event], </ins><span class="cx"> EventType[''evt_choice'', 1, </span><span class="cx">...
2007 Jan 03
0
[821] trunk/wxruby2/doc/textile/texturlevent.txtl: Added info on undocumented TextUrlEVent class
...</span><ins>+h1(#wxtexturlevent). Wx::TextUrlEvent + +This event contains information about an interaction with a highlighted +URL in a "TextCtrl":textctrl.html that has been initialised with the +style @TE_AUTO_URL@. + +h2. Derived from + +"Event":event.html, "CommandEvent":commandevent.html + +h2. Event handlers + +To process a TextUrlEvent, use the @evt_text_url@ event handler to +direct the event to a block that takes a CommandEvent argument. Pass the +id of the TextCtrl to the event handler. + +|*evt_text_url(id)&nbsp;{&nbsp;&#124;&nbsp;even...
2006 Dec 18
13
unit testing wxruby GUIs
...) f = Wx::Frame.new(nil, -1, ''test_app'') b = Wx::Button.new(f, -1, ''click'') evt_button(b.get_id) { | e | Kernel.raise ''I was clicked'' } # I got this 10003 id by calling get_event_type on a real button event test_event = Wx::CommandEvent.new(10003, b.get_id) # simulated event processsing - call the event handler above process_event(test_event) I would be interested in developing a neater API to this. The event type constants (eg 10003 for EVT_TYPE_BUTTON) may be exposed already somewhere in wxruby but I don''t kn...
2007 Jun 26
0
[1083] trunk/wxruby2/doc/textile/hyperlinkevent.txtl: Added HyperlinkCtrl and HyperlinkEvent documentation
...2007-06-26 18:38:49 UTC (rev 1083) </span><span class="lines">@@ -0,0 +1,57 @@ </span><ins>+h1(#wxhyperlinkevent). Wx::HyperlinkEvent + +This event class is used for the events generated by +"HyperlinkCtrl":hyperlinkctrl.html. + +h2. Derived from + +"CommandEvent":commandevent.html + +"Event":event.html + +"Object":object.html + +h2. Event handling + +To process input from a HyperlinkCtrl, use one of these event handler macros to +direct input to member function that take a +"HyperlinkEvent":hyperlinkevent.html argument: +...
2006 Dec 18
3
getting url from evt_text_url event
...this not supported or am > I just not asking the right question of it? It seems there is a class specifically for this in WxWidgets, called TextUrlEvent, which includes methods for retrieving the URL. Unfortunately, it seems completely undocumented in the 2.6.3 docs for either TextCtrl or CommandEvent, so we''ve missed it. I''ve had a look at the WxWidgets include files, and I think it should be straightforward to add. I''ve added it to the tracker and should be able to do this for our next release (0.0.39) Thanks for the report alex
2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...uot;lines">@@ -2,7 +2,8 @@ </span><span class="cx"> </span><span class="cx"> This event is sent just after the actual window associated with a Window object </span><span class="cx"> has been created. Since it is derived from CommandEvent, the event propagates up </span><del>-the window hierarchy. </del><ins>+the window hierarchy. This means that a frame can observe the creation +of child windows within it. </ins><span class="cx"> </span><span class="cx"> h2. Deriv...
2007 Sep 10
2
syntax II
...dler should call that method in self. Whether or not to pass the event handling method an Event argument can be determined by looking at the method''s event signature. If an event handler requires a wx window id to identify which widget''s events are being listened for (as with CommandEvents like evt_button), it''s assumed that if a Wx::Window is passed, we want its id. Code that does this is already in wxSugar - event_connector, but I think it would be better to build on the existing evt_xxx syntax than introduce a new syntax. This doesn''t break backward compatib...
2009 Sep 24
2
Running code after a modal dialog is shown
Hi all, I''m looking for a way to get a block of code to execute once a modal dialog has been displayed (via a call to show_modal.) I was hoping to find some event that would fire when the window was shown, but the only one that seemed vaguely promising (evt_window_create) seems to do nothing at all, at least in my environment (Ruby 1.9.1 on Win32, wxruby 2.0.1.) Here''s a
2007 Aug 02
3
wxSocket..... or wxRubySocket....
Hey Alex, I was looking into figuring out a way to create a truely Asynchronis Socket type for Ruby, and thought I''d go down to the bare minimal implementation of it, to start creating a socket, and then I got to thinking. Looking at the wxWidgets C/C++ Code, it doesn''t do much different then what I''m doing, only in Ruby, so I thought maybe, as a way to avoid
2006 Aug 16
10
all I wanted was a class reference...
And I got this lousy LatexParser. Ah well... A new cut of the automatic WxRuby documentation is now viewable online at http://www.pressure.to/wxruby/. There''s also a pdf version http://www.pressure.to/wxruby/wxruby.pdf [3MB, 751 pages!] and a tarball http://www.pressure.to/wxruby/wxruby2.tar.gz [1.3MB] In terms of output, it''s no advance on what Sean has already done.
2007 Mar 23
0
[ wxruby-Bugs-9501 ] evt_spinctrl should yield an event of type SpinEvent
...correct behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: evt_spinctrl should yield an event of type SpinEvent Initial Comment: At the moment on branches/wxwidgets_28 it seems to yield an event of type CommandEvent. This class is missing the get_/set_position methods. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=9501&group_id=35
2006 Dec 18
0
[ wxruby-Feature Requests-7343 ] Add TextUrlEvent
....org/tracker/?func=detail&atid=221&aid=7343&group_id=35 Category: Missing class(es) Group: None Status: Open Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: Add TextUrlEvent Initial Comment: The undocumented TextUrlEvent is a subclass of CommandEvent which contains additional info about the URL clicked in a TextCtrl created with the AUTO_URL style. It''s currently missing from wxruby2 so there''s no way to retrieve the clicked URL. The class is described in the wxWidgets headers in wx/textctrl.h -------------------------------...