wxPanel
generated from ../src/mod_gui/control/panel.cppA 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.
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.
initDialog
initDialog()
Sends a wxInitDialogEvent, which in turn transfers data to the dialog via validators.
setFocusIgnoringChildren
setFocusIgnoringChildren()
In contrast to setFocus this will set the focus to the panel even of there are child windows in the panel. This is only rarely needed.
Events
| onSysColourChanged | To process a system colour changed event, use this property to set an event handler function. The function takes a wxSysColourChangedEvent argument. |
© 2002 - 2007 Franky Braem.