back to gui
wxPanel
generated from ../src/mod_gui/control/panel.cpp
A panel is a window on which controls are placed. It is usually placed within a frame.
Its main purpose is to be similar in appearance and functionality to a dialog,
but with the flexibility of having any window as a parent.
See wxDialog and wxFrame
Constants
Constructor
wxPanel
wxPanel()
wxPanel(Parent,
Id,
Position = wxDefaultPosition,
Size = wxDefaultSize,
Style = 0)
| Name |
Type |
Default |
Description |
| Parent |
wxWindow |
|
The parent of wxPanel.
|
| Id |
Integer |
|
A window identifier. Use -1 when you don't need it.
|
| Position |
wxPoint |
wxDefaultPosition |
The position of the Panel control on the given parent.
|
| Size |
wxSize |
wxDefaultSize |
The size of the Panel control.
|
| Style |
Integer |
0 |
The wxPanel style.
|
Constructs a new wxPanel object.
Properties
| Name |
Type |
Description |
| defaultItem |
wxButton |
Get/Set the default button.
|
Methods
create
create(Parent,
Id,
Position = wxDefaultPosition,
Size = wxDefaultSize,
Style = 0) : Boolean
| Name |
Type |
Default |
Description |
| Parent |
wxWindow |
|
The parent of wxPanel.
|
| Id |
Integer |
|
A window identifier. Use -1 when you don't need it.
|
| Position |
wxPoint |
wxDefaultPosition |
The position of the Panel control on the given parent.
|
| Size |
wxSize |
wxDefaultSize |
The size of the Panel control.
|
| Style |
Integer |
0 |
The wxPanel style.
|
Constructs a new wxPanel object.
Events
| onSysColourChanged |
To process a system colour changed event, use this property to set
an event handler function. The function takes a wxSysColourChangedEvent argument.
|