X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..36a0190ebd5bd9a7302f60f6dcd608b80574e21c:/interface/wx/panel.h diff --git a/interface/wx/panel.h b/interface/wx/panel.h index da65a95e3c..d0a5bbbfd0 100644 --- a/interface/wx/panel.h +++ b/interface/wx/panel.h @@ -2,8 +2,7 @@ // Name: panel.h // Purpose: interface of wxPanel // Author: wxWidgets team -// RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -26,7 +25,12 @@ @remarks By default, a panel has the same colouring as a dialog. - @library{wxbase} + @beginEventEmissionTable{wxNavigationKeyEvent} + @event{EVT_NAVIGATION_KEY(func)} + Process a navigation key event. + @endEventTable + + @library{wxcore} @category{miscwnd} @see wxDialog @@ -48,10 +52,10 @@ public: @param id An identifier for the panel. @c wxID_ANY is taken to mean a default. @param pos - The panel position. The value @c wxDefaultPosition indicates a default position, + The panel position. The value ::wxDefaultPosition indicates a default position, chosen by either the windowing system or wxWidgets, depending on platform. @param size - The panel size. The value @c wxDefaultSize indicates a default size, chosen by + The panel size. The value ::wxDefaultSize indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform. @param style The window style. See wxPanel. @@ -64,12 +68,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() @@ -86,7 +90,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 @@ -94,10 +98,16 @@ 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. + The default handler for @c wxEVT_SYS_COLOUR_CHANGED. @param event The colour change event. @@ -130,6 +140,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(); };