// Overridden to grab the input on some plaforms
virtual bool Show( bool show = true );
+ // Override to implement delayed destruction of this window.
+ virtual bool Destroy();
+
protected:
// common part of all ctors
void Init();
// get alerted when child gets deleted from under us
void OnDestroy(wxWindowDestroyEvent& event);
-#if defined( __WXMSW__ ) || defined( __WXMAC__)
+ // wxOSX/Carbon doesn't generate mouse capture loss events currently so
+ // poll for the capture loss ourselves.
+#if defined(__WXMAC__) && wxOSX_USE_CARBON
// check if the mouse needs captured or released
void OnIdle(wxIdleEvent& event);
#endif