search for: evt_xxx

Displaying 19 results from an estimated 19 matches for "evt_xxx".

2007 Jun 23
0
[1063] trunk/wxruby2/swig/classes/EvtHandler.i: Add a public ''connect'' method for handling arbitary user-defined events
...t; %import "include/wxObject.h" </span><del>- </del><span class="cx"> %include "include/wxEvtHandler.h" </span><span class="cx"> </span><del>-%{ </del><ins>+// The EvtHandler instance event methods (evt_xxx) are not defined +// here. Instead, they are defined by Events.cpp, generated from +// swig/Event.i and modified by swig/fixevents.rb </ins><span class="cx"> </span><ins>+// This provides the public Ruby ''connect'' method +%extend wxEvtHandler { +...
2007 Nov 07
1
3 wxSugar questions
...uestions regarding wxSugar: 1. I only find one sample application for wxSugar, but as I understand from the docs, wsSugar is the preferred approach. Are there any more wxSugar samples available somewhere? 2. When I run sugar-sample.rb, I get a couple of warnings: "listen is deprecated, use evt_xxx directly". Just wanted to check: Is this sample outdated or is there some version mismatch? 3. Again when using sugar-sample.rb, the bottom part of the list box is covered by the panel with the buttons/dropdown/edit controls. I have to stretch the window quite much to get all the list box...
2007 Jun 23
0
[1064] trunk/wxruby2/swig/Events.i: Removed unused func, updated comments
...## </del><span class="cx"> </span><del>- - </del><span class="cx"> %{ </span><ins>+ +// TODO - there is considerable duplication between the public ruby +// ''connect'' method and internal_connect - in fact all the evt_xxx +// methods could now be implemented in ruby via ''connect'' +// Internal method that links a ruby Proc (the block passed to evt_xxx) +// to the WxWidgets C++ event handler method. </ins><span class="cx"> extern swig_class cWxEvtHandler; </span><ins&gt...
2007 Sep 10
2
syntax II
...d 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 compatibility, and isn''t "magic". 2) ''each'' for list-like classes This one I''m less bothered about, but I fairly often want to loop over a control with multiple items (eg Choi...
2004 Jun 11
9
Handling Events that don''t take an ID
Hey Kevin, Am I correct in assuming that if I want a particular widget to respond to an event which doesn''t take an ID as an argument (like evt_size or evt_left_down), that I have to inherit a new widget and define the event handler within the inherited class? Here''s a little contrived code example to illustrate what I mean: class MyCtrl < Wx::TextCtrl def
2007 Jun 25
0
[1066] trunk/wxruby2/swig: Move EVT constants in swig/classes/Event.i; add a few missing ones
...ense -%include "common.i" - -%module wxEvents; - -// This module defines all the EVT_ constants that uniquely identify -// each type of GUI event that WxWidgets can generate. -// -// SWIG''s output of this file is post-processed by swig/fixevents.rb in -// order to define a set of evt_xxx methods that all classes inheriting -// from EvtHandler should hae, in order to define event handlers in -// Ruby. -// -// To wrap a type of wx event that is missing: -// 1) Create a .i file to wrap the Event class -// 2) Add the appropriate EVT constants to this file -// 3) Add the mappings from...
2004 Jan 19
1
self.get_id
Hi! Is it possible to somehow eliminate the use of the self.get_id''s in most situations? When you set up an event, you always must type sg. like evt_tree_key_down(self.get_id) {|e| where self.get_id can be the default or something... Gergo -- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz
2007 Jan 09
6
help w/push_event_handler plus doc update request
Hi, 1) Can the online api docs get updated? Specifically can the overview pages get added in to the main http://wxruby.rubyforge.org/doc/ index.html page? I happened upon the link to the Event Overview page while browsing some class and wished that it had been listed in the Event section of the index page.I don''t know how many other "overview" pages there are but it
2006 Jul 25
6
Wizards
Hi Please find attached a set of patches and swig files to implement Wizards for wxruby. Also a brief sample. Quick q - the C declarations of evt_xxx_xxx methods and their attaching to Ruby classes seems to be duplicated across Events.i and EvtHandler.i - is one of these the right place to be adding them? or both? Thanks alex _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://r...
2007 Jul 29
5
wxruby2 beta 1.9.0 released
Hi I''m pleased to announce the release of wxruby2 version 1.9.0. This is a significant milestone for wxruby as this is the first release that we consider near to production quality. We hope that this 1.9.x series of releases will soon lead to a stable wxruby 2.0. = INSTALLATION The easiest way to install is using a ready-to-use binary gem for your platform: gem install wxruby Or
2007 Jun 25
0
[1068] trunk/wxruby2/lib/wx.rb: Ensure evthandler.rb is loaded before other classes which might modify
...d>1068</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-06-25 14:37:07 -0400 (Mon, 25 Jun 2007)</dd> </dl> <h3>Log Message</h3> <pre>Ensure evthandler.rb is loaded before other classes which might modify evt_xxx methods</pre> <h3>Modified Paths</h3> <ul> <li><a href="#trunkwxruby2libwxrb">trunk/wxruby2/lib/wx.rb</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="trunkwxruby2libwxrb">...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...<span class="cx"> </span><span class="cx"> class Wx::EvtHandler </span><del>- </del><ins>+ # Given a Wx EventType id (eg Wx::EVT_MENU), returns a WxRuby Event + # class which should be passed to event handler blocks. The actual + # EVT_XXX constants themselves are in the compiled library, defined in + # swig/classes/Event.i </ins><span class="cx"> def self.event_class_for_type(id) </span><span class="cx"> if evt_klass = EVENT_TYPE_MAPPING[id] </span><span class="cx&quot...
2006 Dec 12
0
[786] trunk/wxruby2/TODO: Refer ppl to tracker for up-to-date list of bugs etc, not sure how much
...hat returns an object (rather </span><span class="cx"> than an object reference or pointer) is currently </span><span class="cx"> being removed by swig. ARGH! </span><span class="cx"> </span><del>-- Add support for evt_xxx(:method) as an alternative - -- Remove debugging output for director constructors/destructors - </del><span class="cx"> - Add aliases like label and label= for get_label and set_label. Patch </span><span class="cx"> submitted, decide later whether to a...
2004 Nov 18
17
Wx::Grid Questions ...
I am trying to use a grid widget in my application, but run into a number of issues: -- Can they be placed in a panel? Or better yet, placed in sizer with other controls? I have only been able to place a grid inside a frame. -- Can you designate multiple rows (or columns) as being used for labels? -- Can you create cells that span cols (or rows)? -- What events are available to trigger on? How
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...- VALUE m_func; </del><ins>+ + VALUE m_func; </ins><span class="cx"> }; </span><span class="cx"> </span><del>- </del><ins>+// Internal method that links a ruby Proc (the block passed to evt_xxx) +// to the WxWidgets C++ event handler method. </ins><span class="cx"> void internal_connect(VALUE self, int firstId, int lastId, </span><span class="cx"> wxEventType eventType) </span><span class="cx"> { </span&...
2007 May 31
0
[1040] trunk/wxruby2/swig/Events.i: Add List and Splitter constants, also EVT_SIZING and EVT_MOVING
...<span class="cx"> </span><ins>+// This module defines all the EVT_ constants that uniquely identify +// each type of GUI event that WxWidgets can generate. +// +// SWIG''s output of this file is post-processed by swig/fixevents.rb in +// order to define a set of evt_xxx methods that all classes inheriting +// from EvtHandler should hae, in order to define event handlers in +// Ruby. +// +// To wrap a type of wx event that is missing: +// 1) Create a .i file to wrap the Event class +// 2) Add the appropriate EVT constants to this file +// 3) Add the mappings from...
2006 Dec 31
0
[814] trunk/wxruby2/swig/classes: Added ScrollEvent class plus event processing and handler methods
...p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-12-31 04:04:00 UTC (rev 814) </span><span class="lines">@@ -1,3 +1,13 @@ </span><ins>+# This describes the event types known to wxRuby. It is used by +# swig/fixevents.rb to automatically generate a set of evt_xxx methods +# for binding events +# +# In each array: +# * the first item is the name of the method that will be created +# * the second item is the number of parameters the method expects +# * the third item is the mapping to an wx event type constant +# (see RubyEventTypes.i) + </ins><sp...
2007 May 31
0
[1036] trunk/wxruby2: Merge RubyEventTypes into Events.i, add missing EVT_ constants for
...> </span><span class="cx"> %} </span><span class="cx"> </span><del>-%init %{ -extern void Init_wxRubyEventTypes(); - -Init_wxRubyEventTypes(); -%} - - </del><span class="cx"> // The EvtHandler instance event methods (evt_xxx) are not defined </span><span class="cx"> // here. Instead, they are defined by Events.cpp, generated from </span><span class="cx"> // swig/Event.i and modified by swig/fixevents.rb </span></span></pre></div> <a id="trunkwx...
2007 May 29
0
[1035] trunk/wxruby2/swig/classes/EvtHandler.i: Removed a heap of redundant stuff that''s been #if 0''d for a while
...ivate", VALUEFUNC(evt_activate), -1); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsprb_define_method(cWxEvtHandler.klass, "evt_activate_app", VALUEFUNC(evt_activate_app), -1); - -%} - -#endif </del><ins>+// The EvtHandler instance event methods (evt_xxx) are not defined +// here. Instead, they are defined by Events.cpp, generated from +// swig/Event.i and modified by swig/fixevents.rb </ins></span></pre> </div> </div> </body> </html>