Contents Up Previous Next

wxCollapsiblePane

A collapsable panel is a container with an embedded button-like control which can be used by the user to collapse or expand the pane's contents.

Derived from

wxControl
wxWindow
wxEvtHandler
wxObject

Include files

<wx/collpane.h>

Window styles

There are no specific styles for this window.

See also window styles overview.

See also

wxPanel

Members

wxCollapsiblePane::wxCollapsiblePane
wxCollapsiblePane::Create
wxCollapsiblePane::IsCollapsed
wxCollapsiblePane::IsExpanded
wxCollapsiblePane::Collapse
wxCollapsiblePane::Expand


wxCollapsiblePane::wxCollapsiblePane

wxCollapsiblePane(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "collapsiblePane")

Initializes the object and calls Create with all the parameters.


wxCollapsiblePane::Create

bool Create(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "colourpickerctrl")

Parameters

parent

id

label

pos

size

style

validator

name

Return value

true if the control was successfully created or false if creation failed.


wxCollapsiblePane::IsCollapsed

bool IsCollapsed() const

Returns true if the pane window is currently hidden.


wxCollapsiblePane::IsExpanded

bool IsExpanded() const

Returns true if the pane window is currently shown.


wxCollapsiblePane::Collapse

void Collapse(bool collapse = true)

Collapses or expands the pane window.


wxCollapsiblePane::Expand

void Expand()

Same as Collapse(false).