wxslistbox.cpp
来自「非常好用的可移植的多平台C/C++源代码编辑器」· C++ 代码 · 共 46 行
CPP
46 行
#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 + =
减小字号Ctrl + -
显示快捷键?