Widget List

Follow the widget list as it appears in the wxGlade main window.

Frame

This prompts for a wxFrame or a wxMDIChildFrame. A vertical wxBoxSizer is appended. In the properties window you can choose the styles and you can add an icon.

Dialog or Panel

This prompts for a wxDialog or a wxPanel in top level. In the properties window you can choose the styles and, for the dialog, you can add an icon.

Panel

This allows you to add a panel to a sizer.

In the properties window you can choose the styles.

Splitter Window

This produces a wxSplitterWindow and two associated panels as well. You can choose vertical or horizontal splitting.

In the properties window you can choose the styles and the sash position.

Be careful not to put too large a widget in a splitter panel, because while it might appear normal in the design window, when you run your program one of two panels will take all the available space and the other will shrink to the minimum size possible.

Notebook

This produces a wxNotebook and one panel for each tab.

In the properties window you can add and remove tabs, which appear in a list.

Don't forget to click on the Apply button to transfer changes that you have made in the list to the design window.

Buttons

Button

This produces a wxButton. You can enter a caption and the default flag. If you want to add an image you need a bitmap button (see the section called “Bitmap Button”).

Bitmap Button

This produces a wxBitmapButton. You can set the default flag on or off. You also can choose the bitmap for the button and, optionally, the bitmap for the disabled status. Refer to the section called “Specifying the path of bitmaps” for bitmap path specifications.

Radio Button

This produces a wxRadioButton. In the properties window you can enter the text, and the status, clicked or not, and the style.

Toggle Button

This produces a wxToggleButton. You can enter a caption and the status (clicked or not) of the button.

Gauge

This produces a wxGauge. In the properties window you can enter the range and set the style.

Hyperlink Control

This produces a wxHyperlinkCtrl. In the property window you can enter the label, the URL and also set the style.

Radio Box

This produces a wxRadioBox. In the properties window you can enter the dimension. The style determines whether the dimension is the number of rows or columns.

You also can set which button is selected with the Selection spin starting from 0. You can edit the list of choices, but remember to click on the Apply button to consolidate changes.

Spin Control

This produces a wxSpinCtrl. In the properties window you can enter the value, the range and also set the style.

Slider

This produces a wxSlider. In the properties window you can enter the value, the range and also set the style.

Static Text

This produces a wxStaticText. In the properties window you can enter the text, set the style and tell wxGlade whether to store the control as an attribute.

Text Control

This produces a wxTextCtrl. In the properties window you can enter the text and also set the style.

Check Box

This produces a wxCheckBox. In the properties window you can enter the text, and the status, checked or not, of the button.

Choice

This produces a wxChoice. In the properties window you can enter the position of the selected item starting from 0. You can edit the list of choices, but remember to click on the Apply button to consolidate changes.

Combo Box

This produces a wxComboBox. In the properties window you can enter the position of the selected item starting from 0. You can edit the list of choices, but remember to click on the Apply button to consolidate changes.

List Box

This produces a wxListBox. In the properties window you can enter the position of the selected item starting from 0. You can edit the list of choices, but remember to click on the Apply button to consolidate changes.

Static Line

This produces a vertical or horizontal wxStaticLine. In the properties window you can tell wxGlade whether to store the object as an attribute of the frame class.

Static Bitmap

This produces a wxStaticBitmap. You will be prompted for the bitmap path. Refer to the section called “Specifying the path of bitmaps” for bitmap path specifications. In the properties window you can set the style and you can tell wxGlade whether to store the object as an attribute of the frame class.

List Control

This produces a wxListCtrl. In the properties window you can set the style.

Tree Control

This produces a wxTreeCtrl. In the properties window you can set the style.

Grid

This produces a wxGrid. In the properties window you can set the style, the row number, the label size, the line and background color and the selection mode. You can edit the list of columns, but remember to click on the Apply button to consolidate changes. Also you can choose to let wxGlade to create the grid or leave it to the user code.

Custom Widget

When you put a custom widget in the design window you will be prompted for a class name. In the properties window you can set a number of custom attributes that will appear in the constructor call. These attributes have different effects in C++, Lisp, Perl, Python or XRC code generation. Four special attributes $id, $parent, $width and $height return the value you specify in the Common tab of the custom widget.

Spacer

When you put a spacer into a sizer slot in the design window you will be prompted for the size; wxGlade will generate the code to set an empty space in that slot of the sizer.