search for: get_event_object

Displaying 11 results from an estimated 11 matches for "get_event_object".

2006 Sep 24
2
Patch to fix get_event_object
This patch will fix the files so that SWIG returns the correct object when get_event_object is called. I think I had submitted part of this before but it looks like I either forgot to sync or it hasn''t been applied yet. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2008 Jan 19
10
lose focus event?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I''m new to wxruby, and I haven''t found any answer with google: Is there a way to capture a lose focus event on controls, such as a combo box? All my experiments show events when changing the text, but not when leaving the box. I want to make a combobox that autocompletes if I press tab (or down arrow or something), but if I
2006 Nov 23
0
[754] trunk/wxruby2/samples/bigdemo: Rubified samples and added in missing client data sample code
...class="cx"> end </span><span class="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"&...
2007 Mar 30
0
[932] branches/wxruby2/wxwidgets_282/doc/textile/event.txtl: 2.8 updates and corrections to Event doc
...gt;<span class="cx"> Event *Clone(void) const { return new MyEvent(*this); } </span><span class="cx"> </span><span class="cx"> </span><ins>+ </ins><span class="cx"> h3(#Event_geteventobject). Event#get_event_object </span><span class="cx"> </span><span class="cx"> "Object":object.html *get_event_object*() </span><span class="lines">@@ -94,31 +77,39 @@ </span><span class="cx"> Returns the object (usually a windo...
2004 Jun 01
2
New wxRuby code is in CVS
...they are really only necessary in a static language like C++. I was able to remove the few uses of them from our samples pretty easily. If you have an app that uses them, I can help you figure out a workaround. I plan to support them in the upcoming swig version of wxRuby. I also removed Event#get_event_object. This one was also easy to remove from the sample code, but I am less sure that it won''t be needed in real applications. Again, I can help you find a workaround, and it will be supported in the swig version. The other crash fixes (in TreeCtrl and ListCtrl) turned out to be much easier...
2007 Jan 03
0
[820] trunk/wxruby2/lib/wx/classes/texturlevent.rb: Added get_url convenience method to TextUrlEvent
...p;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-01-03 00:51:20 UTC (rev 820) </span><span class="lines">@@ -0,0 +1,6 @@ </span><ins>+class Wx::TextUrlEvent + # Returns the string URL that is being interacted with in this event + def get_url + get_event_object.get_value[get_url_start .. get_url_end] + end +end </ins></span></pre> </div> </div> </body> </html>
2007 Jan 03
0
[821] trunk/wxruby2/doc/textile/texturlevent.txtl: Added info on undocumented TextUrlEVent class
....html *get_mouse_event*() + +Returns the "MouseEvent":mousevent.html associated with this interaction. + +h3(#TextUrlEvent_geturl). TextUrlEvent#get_url + + String *get_url*() + +Returns the text of the URL that is being interacted with. + +This is a convenience method for calling: + + get_event_object.get_value[get_url_start .. get_url_end] + +h3(#TextUrlEvent_geturlstart). TextUrlEvent#get_url_start + + Integer *get_url_start*() + +Returns the first character position of the URL string within the containing +TextCtrl''s contents. + +h3(#TextUrlEvent_geturlend). TextUrlEvent#get_url_end...
2004 Apr 20
4
wxRuby 0.3.0 has been released!
wxRuby 0.3.0 has been released and is now available for download from RubyForge at: http://wxruby.rubyforge.org/ This release includes binary builds for Max OS X Panther and MS Windows. Hopefully, within a couple weeks I will release RubyGems for the source, and RubyGem binaries for Mac, Windows, and Linux. Please report any bugs or feature requests here:
2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...dowCreateEvent 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;&nbsp;...&nbsp;}*|Process a EVT_CREATE event.| </ins><span class="cx"> </span><del&...
2004 Aug 26
18
wxRuby 0.5.0 has been released!
...p://rubyforge.org/tracker/?group_id=35 Changes in this release include: * Added XRC (Xml Resource File) support. * Added totally awesome HTML widget from Tobi Gruetzmacher. * Fix crash in ListCtrl#on_get_item_xxx * Fix crash in TreeCtrl#on_compare_items * Remove all get/set_client_data and get_event_object methods (they were broken anyway) * Patched problem with MSVC.NET that caused build problems -------------- What is wxRuby? wxRuby is an open source GUI toolkit for the Ruby programming language. It provides a Ruby interface to the cross-platform wxWidgets C++ GUI framework (formerly known...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...end + + def on_copy_perspective_code + Kernel.raise NotImplementedError + end + + def on_restore_perspective(event) + perspective = @perspectives[ event.get_id - ID_FirstPerspective] + @mgr.load_perspective(perspective) + end + + def on_notebook_page_close(event) + notebook = event.get_event_object + if notebook.get_page(event.get_selection).kind_of?(Wx::HtmlWindow) + msg = "Are you sure you want to close/hide this notebook page?" + dlg = Wx::MessageDialog.new(self, msg, "Wx::AUI", Wx::YES_NO) + if dlg.show_modal != Wx::YES + event.veto + else...