search for: evt_window_create

Displaying 10 results from an estimated 10 matches for "evt_window_create".

2007 Jun 27
0
[1090] trunk/wxruby2/swig/wx.i: Fix a rare crasher if GC runs mid-way thru window creation via an evt_window_create handler
...: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>[1090] trunk/wxruby2/swig/wx.i: Fix a rare crasher if GC runs mid-way thru window creation via an evt_window_create handler</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1090</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-06-27 19:10:03 -0400 (Wed, 27 Jun 2007)</dd>...
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 very simple (non-modal) example, which fails to print ''Created!'' as I''d (perhaps naively) expect it to: -------------------------- require "wx" cl...
2006 Sep 17
11
ShapedWindow.rbw
These patches implement wxRegion and the ShapedWindow sample. I stole the ruby image from ruby-lang.org. Shamelessly. Maybe someone has a better image we can use for the shaped window. It didn''t seem to make sense to use the Python image. I''d like something even bigger than what I stol^h^h^h^hmade, preferably. Image goes in icons. I had to %ignore one function in wxRegion.
2006 Sep 18
1
EvtHanler.i / Events.i
I decided to take a look at the way we set up event handlers as part of adding two missing events (EVT_WINDOW_CREATE and EVT_WINDOW_DESTROY) and I must say I completely don''t understand how the passed block becomes a function that gets called during the callback. Anyone able to point me in the right direction here? Roy
2007 May 10
0
wxRuby2 preview 0.0.40 released
...GES There are a small number of incompatible API changes. - ClientDC.new and PaintDC.new cannot now be called directly - always use the paint() method to get a DC for drawing on a window - A number of deprecated methods have been removed - evt_destroy and evt_create are now evt_window_destroy and evt_window_create, and accept zero arguments - ComboBox#get_selection_range is now ComboBox#get_text_selection_range CREDITS Many thanks to Sean Long for providing binary builds for OS X/i686 and Windows, as well as many code patches, and improvements for docs and samples, and to Artur Kuptel whose major patch kick...
2007 Apr 29
0
[995] branches/wxruby2/wxwidgets_282/swig/classes/include/events.rb: Fix argument signature for window_create/destroy events; use wxWidgets
..."wxEVT_KILL_FOCUS"], </span><span class="cx"> ["EVT_TIMER", 2, "wxEVT_TIMER"], </span><del>-["EVT_CREATE", 2, "wxEVT_CREATE"], -["EVT_DESTROY", 2, "wxEVT_DESTROY"], </del><ins>+["EVT_WINDOW_CREATE", 1, "wxEVT_CREATE"], +["EVT_WINDOW_DESTROY", 1, "wxEVT_DESTROY"], </ins><span class="cx"> ["EVT_SCROLL", 1, "0"], </span><span class="cx"> ["EVT_SCROLL_TOP", 1, "wxEVT_SCROLL_TOP"...
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
...NDOW); -} - -static VALUE evt_idle(int argc, VALUE *argv, VALUE self) -{ - return internal_evt_no_parameters(argc, argv, self, wxEVT_IDLE); -} - -static VALUE evt_show(int argc, VALUE *argv, VALUE self) -{ - return internal_evt_no_parameters(argc, argv, self, wxEVT_SHOW); -} - -static VALUE evt_window_create(int argc, VALUE *argv, VALUE self) -{ - return internal_evt_no_parameters(argc, argv, self, wxEVT_CREATE); -} - -static VALUE evt_size(int argc, VALUE *argv, VALUE self) -{ - return internal_evt_no_parameters(argc, argv, self, wxEVT_SIZE); -} - -static VALUE evt_key_down(int argc, VALUE *ar...
2007 May 07
0
[1017] trunk/wxruby2/Changelog: Update changelog with 0.0.40 changes
...d Image documentation (SL) +- Added IMAGE_QUALITY constants (SL) +- Require wxWidgets 2.8.3 (AF) +- Additional VERSION constants from Wx, fix hardcoded WXWIDGETS_VERSION +- Default arguments for Pen constructor (AF) +- More 2.8 methods for TopLevelWindow, Window (AF) +- fixed evt_window_destroy and evt_window_create (AF) +- fixed samples to use paint method rather than DC directly (AF) +- Fixes for memory errors and windows crashes with PaintDC, doc (AF/Artur Kuptel) +- Prevent direct instantiation of ClientDC and PaintDC (AF) +- Make Window#paint work consistently inside and outside evt_paint (AF) +- Fix for...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...Wx::TreeEvent], + EventType[''evt_update_ui'', 1, + Wx::EVT_UPDATE_UI, + Wx::UpdateUIEvent], + EventType[''evt_update_ui_range'', 2, + Wx::EVT_UPDATE_UI, + Wx::UpdateUIEvent], + EventType[''evt_window_create'', 0, + Wx::EVT_CREATE, + Wx::WindowCreateEvent], + EventType[''evt_window_destroy'', 0, + Wx::EVT_DESTROY, + Wx::WindowDestroyEvent], + EventType[''evt_wizard_cancel'', 1, + Wx::EVT_WIZ...
2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...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>- -|*evt_window_create()&nbsp;{&nbsp;&#124;&nbsp;event&nbsp;&#124;&nbsp;...&nbsp;}*|Process a EVT_CREATE event.| - </del><span class="cx"> h2. See also </span><span class="cx"> </span><span class="cx"> "Event handling...