Displaying 12 results from an estimated 12 matches for "evt_create".
Did you mean:
dht_create
2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...2. Event hooks
</ins><span class="cx">
</span><del>-To process a window creation event, use this event handler macro to direct input to a member
-function that takes a WindowCreateEvent argument.
</del><ins>+To process a window creation 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
+identifi...
2009 Sep 24
2
Running code after a modal dialog is shown
...estApp < Wx::App
def on_init
TestFrame.new(nil, -1, ''Test!'').show()
end
end
TestApp.new.main_loop
--------------------------
(incidentally, the RubyForge doc page here:
http://wxruby.rubyforge.org/doc/windowcreateevent.html
still refers to this event as ''evt_create'', which might be worth fixing,
but that''s a different issue.)
I don''t know if I''m misusing this event, or if there''s a bug here
somewhere, but at any rate I''m open to other approaches if this isn''t the
right way to go. My current s...
2007 May 10
0
wxRuby2 preview 0.0.40 released
...latform for ongoing development.
API CHANGES
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 sa...
2007 Jul 21
0
[1127] trunk/wxruby2: Move shared C++ GC functions into separate file included into wx.i
...ark( SWIG_RubyInstanceFor(menu) );
+        }
+
+}
+
+// Default mark routine for Windows - preserve the main sizer and caret
+// belong to this window
+void GC_mark_wxWindow(void *ptr)
+{
+ // can occasionally be NULL if called in an evt_create handler
+ if ( ! ptr ) return;
+ if ( GC_IsWindowDeleted(ptr) ) return;
+
+ wxWindow* wx_win = (wxWindow*)ptr;
+ wxSizer* wx_sizer = wx_win->GetSizer();
+ if ( wx_sizer )
+        {
+    &n...
2007 Apr 29
0
[995] branches/wxruby2/wxwidgets_282/swig/classes/include/events.rb: Fix argument signature for window_create/destroy events; use wxWidgets
...T_TASKBAR_MOVE", 1, "wxEVT_TASKBAR_MOVE"],
</span><span class="cx"> ["EVT_KILL_FOCUS", 1, "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"> ["...
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
...s="cx"> // Default mark routine for Windows - preserve sizers
</span><span class="cx"> void GC_mark_wxWindow(void *ptr)
</span><span class="cx"> {
</span><del>-
</del><ins>+ // can occasionally be NULL if called in an evt_create handler
+ if ( ! ptr ) return;
</ins><span class="cx"> if ( GC_IsWindowDeleted(ptr) ) return;
</span><span class="cx">
</span><span class="cx"> wxWindow* wx_win = (wxWindow*)ptr;
</span></span></pre>
</div...
2007 Jul 21
0
[1134] trunk/wxruby2/swig/mark_free_impl.i: When window is deleted, unhook ruby obj from DATA_PTR to avoid MSW crashes
...">@@ -92,8 +96,6 @@
</span><span class="cx"> // belong to this window
</span><span class="cx"> void GC_mark_wxWindow(void *ptr)
</span><span class="cx"> {
</span><del>- // can occasionally be NULL if called in an evt_create handler
- if ( ! ptr ) return;
</del><span class="cx"> if ( GC_IsWindowDeleted(ptr) ) return;
</span><span class="cx">
</span><span class="cx"> wxWindow* wx_win = (wxWindow*)ptr;
</span><span class="lines"&g...
2006 Dec 31
0
[814] trunk/wxruby2/swig/classes: Added ScrollEvent class plus event processing and handler methods
...uot;EVT_COMMAND_LEFT_CLICK", 2, "wxEVT_COMMAND_LEFT_CLICK"],
</span><span class="lines">@@ -209,6 +219,15 @@
</span><span class="cx"> ["EVT_TIMER", 2, "wxEVT_TIMER"],
</span><span class="cx"> ["EVT_CREATE", 2, "wxEVT_CREATE"],
</span><span class="cx"> ["EVT_DESTROY", 2, "wxEVT_DESTROY"],
</span><ins>+["EVT_SCROLL", 1, "0"],
+["EVT_SCROLL_TOP", 1, "wxEVT_SCROLL_TOP"],
+["EVT_SCROLL_BOTTOM...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...ollWinEvent,
- Wx::EVT_SCROLLWIN_PAGEDOWN => Wx::ScrollWinEvent,
- Wx::EVT_SCROLLWIN_THUMBTRACK => Wx::ScrollWinEvent,
- Wx::EVT_SCROLLWIN_THUMBRELEASE => Wx::ScrollWinEvent,
- Wx::EVT_ACTIVATE => Wx::ActivateEvent,
- Wx::EVT_ACTIVATE_APP => Wx::ActivateEvent,
- Wx::EVT_CREATE => Wx::WindowCreateEvent,
- Wx::EVT_DESTROY => Wx::WindowDestroyEvent,
- Wx::EVT_MENU_OPEN => Wx::MenuEvent,
- Wx::EVT_MENU_CLOSE => Wx::MenuEvent,
- Wx::EVT_MENU_HIGHLIGHT => Wx::MenuEvent,
- Wx::EVT_CONTEXT_MENU => Wx::ContextMenuEvent,
- Wx::EVT_AUI_PANE_BUTTO...
2007 Jul 04
0
[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
...tine for Windows - preserve the main sizer and caret
+// belong to this window
</ins><span class="cx"> void GC_mark_wxWindow(void *ptr)
</span><span class="cx"> {
</span><span class="cx"> // can occasionally be NULL if called in an evt_create handler
</span><span class="lines">@@ -38,9 +65,8 @@
</span><span class="cx"> wxWindow* wx_win = (wxWindow*)ptr;
</span><span class="cx"> wxSizer* wx_sizer = wx_win->GetSizer();
</span><span class="cx">...
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...ollWinEvent,
+ Wx::EVT_SCROLLWIN_PAGEDOWN => Wx::ScrollWinEvent,
+ Wx::EVT_SCROLLWIN_THUMBTRACK => Wx::ScrollWinEvent,
+ Wx::EVT_SCROLLWIN_THUMBRELEASE => Wx::ScrollWinEvent,
+ Wx::EVT_ACTIVATE => Wx::ActivateEvent,
+ Wx::EVT_ACTIVATE_APP => Wx::ActivateEvent,
+ Wx::EVT_CREATE => Wx::WindowCreateEvent,
+ Wx::EVT_DESTROY => Wx::WindowDestroyEvent,
+ Wx::EVT_MENU_OPEN => Wx::MenuEvent,
+ Wx::EVT_MENU_CLOSE => Wx::MenuEvent,
+ Wx::EVT_MENU_HIGHLIGHT => Wx::MenuEvent,
+ Wx::EVT_CONTEXT_MENU => Wx::ContextMenuEvent,
+ Wx::EVT_AUI_PANE_BUTTO...
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
...c, 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 *argv, VALUE self)
-{
- return internal_evt_no_parameters(argc, argv, self, wxEVT_KEY_DOWN);
-}
-
-static VA...