A Quick Guide to the Window Classes

team bbl


The rest of this chapter provides you with enough detailed information about the most commonly used window classes for you to apply them to your own applications. However, if you are reading this book for the first time, you may want to skip ahead to Chapter 5 and browse the window descriptions later.

Here's a summary of the classes we cover, to help you navigate this chapter. For other window classes, see Chapter 12, "Advanced Window Classes," and Appendix E, "Third-Party Tools for wxWidgets."

Base Window Classes

These base classes implement functionality for derived concrete classes.

  • wxWindow. The base class for all windows.

  • wxControl. The base class for controls, such as wxButton.

  • wxControlWithItems. The base class for multi-item controls.

Top-Level Windows

Top-level windows usually exist independently on the desktop.

  • wxFrame. A resizable window containing other windows.

  • wxMDIParentFrame. A frame that manages other frames.

  • wxMDIChildFrame. A frame managed by a parent frame.

  • wxDialog. A resizable window for presenting choices.

  • wxPopupWindow. A transient window with minimal decoration.

Container Windows

Container windows manage child windows.

  • wxPanel. A window for laying out controls.

  • wxNotebook. A window for switching pages using tabs.

  • wxScrolledWindow. A window that scrolls children and graphics.

  • wxSplitterWindow. A window that manages two child windows.

Non-Static Controls

These controls can be edited by the user.

  • wxButton. A push-button control with a text label.

  • wxBitmapButton. A push-button control with a bitmap label.

  • wxChoice. A drop-down list of choices.

  • wxComboBox. An editable field with a list of choices.

  • wxCheckBox. A control representing a check box, on or off.

  • wxListBox. A list of selectable string items.

  • wxRadioBox. A grid of radio buttons.

  • wxRadioButton. A control resembling a radio button, on or off.

  • wxScrollBar. A scrollbar control.

  • wxSpinButton. Arrows for incrementing/decrementing values.

  • wxSpinCtrl. A text field and spin button for editing integers.

  • wxSlider. A control for changing a value within a given range.

  • wxTextCtrl. A single- or multiple-line text entry field.

  • wxToggleButton. A button that can be toggled on and off.

Static Controls

These controls present information and cannot be edited by the user.

  • wxGauge. A control showing a quantity.

  • wxStaticText. A control that shows a text label.

  • wxStaticBitmap. A control that shows a bitmap label.

  • wxStaticLine. A control displaying a line.

  • wxStaticBox. A control displaying a box around other controls.

Menus

Menus are transient windows containing lists of commands.

  • wxMenu. A menu that can be used as a popup or in a menu bar.

Control Bars

Control bars present concise access to commands and information, usually within a wxFrame.

  • wxMenuBar. A menu bar that presents commands in a wxFrame.

  • wxToolBar. A toolbar that provides quick access to commands.

  • wxStatusBar. A status bar that shows information in multiple fields.

    team bbl



    Cross-Platform GUI Programming with wxWidgets
    Cross-Platform GUI Programming with wxWidgets
    ISBN: 0131473816
    EAN: 2147483647
    Year: 2005
    Pages: 262

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net