A Quick Guide to the Window Classes 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.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值