wxWidgets控件课件.ppt

  1. 1、本文档共29页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
wxWidgets控件课件

wxWidgets控件;1 菜单(menu);menubar = new wxMenuBar; menu = new wxMenu; menu-Append(id,name); menubar-Append(menu, name); SetMenuBar(menubar); 加速键和快捷键的定义。 ;1.2 submenu;1.3 RadioMenu and CheckMenu;1.4 Enable/Disable ;Without update UI events, an application has to work hard to check/uncheck, enable/disable, show/hide, and set the text for elements such as menu items and toolbar buttons. The code for doing this has to be mixed up with the code that is invoked when an action is invoked for a menu item or button. ;With update UI events, you define an event handler to look at the state of the application and change UI elements accordingly. wxWidgets will call your member functions in idle time, so you dont have to worry where to call this code. In addition to being a clearer and more declarative method, it also means you dont have to worry whether youre updating a toolbar or menubar identifier. The same handler can update a menu item and toolbar button, if the identifier is the same. ;1.5 Popup Menu;2 工具栏 (ToolBar);3 静态控件;3.2 wxCheckBox ;wxCheckBox (wxWindow *parent, wxWindowID id, const wxString label, const wxPoint pos=wxDefaultPosition, const wxSize size=wxDefaultSize, long style=0, const wxValidator validator=wxDefaultValidator, const wxString name=wxCheckBoxNameStr) EVT_CHECKBOX(id, func):Process a wxEVT_CHECKBOX event, when the checkbox is clicked ;3.3 wxRadioBox;3.4 wxComboBox;EVT_COMBOBOX(id, func):Process a wxEVT_COMBOBOX event, when an item on the list is selected. Note that calling GetValue() returns the new value of selection. EVT_TEXT(id, func):Process a wxEVT_TEXT event, when the combobox text changes. ;3.5 wxChoice ;3.6 wxListBox;EVT_LISTBOX(id, func): Process a wxEVT_LISTBOX event, when an item on the list is selected or the selection changes. EVT_LISTBOX_DCLICK(id, func): Process a wxEVT_LISTBOX_DCLICK event, when the listbox is double-clicked. ;3.7 wxTextCtrl;C-Style;C++ Style-1;C++ Style-2;Wx Style;3.8 others;4 静态控件;4.2

文档评论(0)

dmdt5055 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档