A panel is a subwindow of a frame in which panel items can be placed to allow the user to view and set controls. Panel items include messages, text items, list items, and check boxes. Use Fit to fit the panel around its items.
wxPanel::wxPanel
voidwxPanelwxFrame *parent, int x = -1, int y = -1, int width = -1, int height = -1,
int style = 0
Constructor. Set style to wxBORDER to draw a thin border in Windows 3.
wxPanel::wxPanel
voidwxPanel
Destructor. Deletes any panel items before deleting the physical window.
wxPanel::GetCursor
voidGetCursorint *x, int *y
Gets the current panel `cursor' position, i.e. where the next panel item will be placed.
wxPanel::GetHorizontalSpacing
intGetHorizontalSpacing
Gets the horizontal spacing for placing items on a panel.
wxPanel::GetVerticalSpacing
intGetVerticalSpacing
Gets the vertical spacing for placing items on a panel.
wxPanel::NewLine
voidNewLine
Cause the next item to be positioned at the beginning of the next line, using the current vertical spacing. More than one new line in succession causes extra vertical spacing to be inserted.
wxPanel::SetHorizontalSpacing
voidSetHorizontalSpacingint sp
Sets the horizontal spacing for placing items on a panel.
wxPanel::SetLabelPosition
voidSetLabelPositionint position
Determines the current method of placing labels on panel items: if position is wxHORIZONTAL, labels are placed to the left of the item value. If position is wxVERTICAL, the label is placed above the item value. The default behaviour is to have horizontal label placing.
Under Windows 3, this function words for wxText, wxChoice and wxListBox. Under XView, absolute positioning must be used for the wxVERTICAL position to work in some cases. This is because of some strange behaviour in XView where setting a horizontal layout orientation but a vertical label position causes items after list box to appear too low on the panel. So, where it is necessary to have vertical labels, use absolute positioning where results are not as expected.
wxPanel::SetVerticalSpacing
voidSetVerticalSpacingint sp
Sets the vertical spacing for placing items on a panel.
wxPanel::Tab
voidTabint pixels
Tabs by the given number of pixels.