📄 wxslistbox.cpp
字号:
#include "../wxsheaders.h"
#include "wxslistbox.h"
#include <wx/listbox.h>
WXS_ST_BEGIN(wxsListBoxStyles)
WXS_ST_CATEGORY("wxListBox")
#ifdef __WIN32__
WXS_ST(wxLB_HSCROLL) // Windows ONLY
#endif
WXS_ST(wxLB_SINGLE)
WXS_ST(wxLB_MULTIPLE)
WXS_ST(wxLB_EXTENDED)
WXS_ST(wxLB_ALWAYS_SB)
WXS_ST(wxLB_NEEDED_SB)
WXS_ST(wxLB_SORT)
WXS_ST_DEFAULTS()
WXS_ST_END(wxsListBoxStyles)
WXS_EV_BEGIN(wxsListBoxEvents)
WXS_EVI(EVT_LISTBOX,wxCommandEvent,Select)
WXS_EVI(EVT_LISTBOX_DCLICK,wxCommandEvent,DClick)
WXS_EV_DEFAULTS()
WXS_EV_END(wxsListBoxEvents)
// default constructor for wxListBox
//wxListBox(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n, const wxString choices[] = NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "listBox")
//wxListBox(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "listBox")
wxsDWDefineBegin(wxsListBox,wxListBox,
ThisWidget = new wxListBox(parent,id,pos,size,0,0,style);
wxsDWAddStrings(arrayChoices,ThisWidget);
wxsDWSelectString(arrayChoices,defaultChoice,ThisWidget);
)
#ifdef __NO_PROPGRID
wxsDWDefIntX(defaultChoice,"selection","Default:",-1)
#else
wxsDWDefIntX(defaultChoice,"selection","",-1)
#endif
wxsDWDefStrArrayX(arrayChoices,"content","item","Choices:",defaultChoice,wxLB_SORT)
wxsDWDefineEnd()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -