X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..b5fe7ca67bf3121959a0b5a59afd00c1708f2f03:/interface/wx/panel.h diff --git a/interface/wx/panel.h b/interface/wx/panel.h index 6e6e8b3d68..4bf26f3f07 100644 --- a/interface/wx/panel.h +++ b/interface/wx/panel.h @@ -8,7 +8,6 @@ /** @class wxPanel - @wxheader{panel.h} A panel is a window on which controls are placed. It is usually placed within a frame. Its main feature over its parent class wxWindow is code for handling @@ -27,6 +26,11 @@ @remarks By default, a panel has the same colouring as a dialog. + @beginEventEmissionTable{wxNavigationKeyEvent} + @event{EVT_NAVIGATION_KEY(func)} + Process a navigation key event. + @endEventTable + @library{wxbase} @category{miscwnd} @@ -65,12 +69,12 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, - const wxString& name = "panel"); + const wxString& name = wxPanelNameStr); /** Destructor. Deletes any child windows before deleting the physical window. */ - ~wxPanel(); + virtual ~wxPanel(); /** This method is overridden from wxWindow::AcceptsFocus() @@ -87,7 +91,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, - const wxString& name = "panel"); + const wxString& name = wxPanelNameStr); /** Sends a wxInitDialogEvent, which in turn transfers data to the dialog via @@ -95,7 +99,13 @@ public: @see wxInitDialogEvent */ - void InitDialog(); + virtual void InitDialog(); + + /** + See wxWindow::SetAutoLayout(): when auto layout is on, this function gets + called automatically when the window is resized. + */ + virtual bool Layout(); /** The default handler for wxEVT_SYS_COLOUR_CHANGED. @@ -131,6 +141,6 @@ public: In contrast to SetFocus() (see above) this will set the focus to the panel even if there are child windows in the panel. This is only rarely needed. */ - virtual void SetFocusIgnoringChildren(); + void SetFocusIgnoringChildren(); };