X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e59b88579c7a1e8b4da0827be75dc5d2a84ec73..36a0190ebd5bd9a7302f60f6dcd608b80574e21c:/interface/wx/collpane.h?ds=inline diff --git a/interface/wx/collpane.h b/interface/wx/collpane.h index f7205fe55e..714df38795 100644 --- a/interface/wx/collpane.h +++ b/interface/wx/collpane.h @@ -2,10 +2,12 @@ // Name: collpane.h // Purpose: interface of wxCollapsiblePane // Author: wxWidgets team -// RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#define wxCP_DEFAULT_STYLE (wxTAB_TRAVERSAL | wxNO_BORDER) +#define wxCP_NO_TLW_RESIZE (0x0002) + /** @class wxCollapsiblePaneEvent @@ -41,7 +43,7 @@ public: void SetCollapsed(bool collapsed); }; - +wxEventType wxEVT_COLLAPSIBLEPANE_CHANGED; /** @class wxCollapsiblePane @@ -65,7 +67,7 @@ public: Usage sample: @code - wxCollapsiblePane *collpane = new wxCollapsiblePane(this, wxID_ANY, wxT("Details:")); + wxCollapsiblePane *collpane = new wxCollapsiblePane(this, wxID_ANY, "Details:"); // add the pane with a zero proportion value to the 'sz' sizer which contains it sz->Add(collpane, 0, wxGROW|wxALL, 5); @@ -73,7 +75,7 @@ public: // now add a test label in the collapsible pane using a sizer to layout it: wxWindow *win = collpane->GetPane(); wxSizer *paneSz = new wxBoxSizer(wxVERTICAL); - paneSz->Add(new wxStaticText(win, wxID_ANY, wxT("test!")), 1, wxGROW|wxALL, 2); + paneSz->Add(new wxStaticText(win, wxID_ANY, "test!"), 1, wxGROW|wxALL, 2); win->SetSizer(paneSz); paneSz->SetSizeHints(win); @endcode @@ -91,14 +93,16 @@ public: flag to disable this automatic parent resizing then. @endStyleTable - @beginEventTable{wxCollapsiblePaneEvent} + @beginEventEmissionTable{wxCollapsiblePaneEvent,wxNavigationKeyEvent} @event{EVT_COLLAPSIBLEPANE_CHANGED(id, func)} - The user expanded or collapsed the collapsible pane. + The user expanded or collapsed the collapsible pane. + @event{EVT_NAVIGATION_KEY(func)} + Process a navigation key event. @endEventTable @library{wxcore} @category{ctrl} - @appearance{collapsiblepane.png} + @appearance{collapsiblepane} @see wxPanel, wxCollapsiblePaneEvent */ @@ -177,4 +181,3 @@ public: */ bool IsExpanded() const; }; -