{ m_show = event.m_show; }
void SetShow(bool show) { m_show = show; }
- bool GetShow() const { return m_show; }
+
+ // return true if the window was shown, false if hidden
+ bool IsShown() const { return m_show; }
+
+#ifdef WXWIN_COMPATIBILITY_2_8
+ wxDEPRECATED( bool GetShow() const { return IsShown(); } )
+#endif
virtual wxEvent *Clone() const { return new wxShowEvent(*this); }
: wxEvent(event)
{ m_iconized = event.m_iconized; }
+#ifdef WXWIN_COMPATIBILITY_2_8
+ wxDEPRECATED( bool Iconized() const { return IsIconized(); } )
+#endif
// return true if the frame was iconized, false if restored
- bool Iconized() const { return m_iconized; }
+ bool IsIconized() const { return m_iconized; }
virtual wxEvent *Clone() const { return new wxIconizeEvent(*this); }
bool IsPopup() const;
};
+/**
+ @class wxShowEvent
+ @wxheader{event.h}
+
+ An event being sent when the window is shown or hidden.
+
+ Currently only wxMSW, wxGTK and wxOS2 generate such events.
+
+ @onlyfor{wxmsw,wxgtk,wxos2}
+
+ @beginEventTable{wxShowEvent}
+ @event{EVT_SHOW(func)}
+ Process a wxEVT_SHOW event.
+ @endEventTable
+
+ @library{wxcore}
+ @category{events}
+
+ @see @ref overview_eventhandling, wxWindow::Show,
+ wxWindow::IsShown
+*/
+
+class wxShowEvent : public wxEvent
+{
+public:
+ /**
+ Constructor.
+ */
+ wxShowEvent(int winid = 0, bool show = false);
+
+ /**
+ Set whether the windows was shown or hidden.
+ */
+ void SetShow(bool show);
+
+ /**
+ Return @true if the window has been shown, @false if it has been
+ hidden.
+ */
+ bool IsShown() const;
+
+ /**
+ @deprecated This function is deprecated in favour of IsShown().
+ */
+ bool GetShow() const;
+};
+
+
/**
@class wxIconizeEvent
Returns @true if the frame has been iconized, @false if it has been
restored.
*/
+ bool IsIconized() const;
+
+ /**
+ @deprecated This function is deprecated in favour of IsIconized().
+ */
bool Iconized() const;
};
@param iconize
If @true, iconizes the window; if @false, shows and restores it.
- @see IsIconized(), Maximize().
+ @see IsIconized(), Maximize(), wxIconizeEvent.
*/
void Iconize(bool iconize);
@return @true if the window has been shown or hidden or @false if nothing
was done because it already was in the requested state.
- @see IsShown(), Hide(), wxRadioBox::Show
+ @see IsShown(), Hide(), wxRadioBox::Show, wxShowEvent.
*/
virtual bool Show(bool show = true);