⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wxsspinbutton.cpp

📁 非常好用的可移植的多平台C/C++源代码编辑器
💻 CPP
字号:
#include "../wxsheaders.h"
#include "wxsspinbutton.h"

#include <wx/spinbutt.h>

WXS_ST_BEGIN(wxsSpinButtonStyles)
    WXS_ST_CATEGORY("wxSpinButton")
#ifndef __WXGTK__
    WXS_ST(wxSP_HORIZONTAL)
#endif
    WXS_ST(wxSP_VERTICAL)
    WXS_ST(wxSP_ARROW_KEYS)
    WXS_ST(wxSP_WRAP)
    WXS_ST_DEFAULTS()
WXS_ST_END(wxsSpinButtonStyles)

WXS_EV_BEGIN(wxsSpinButtonEvents)
    WXS_EVI(EVT_SPIN,wxSpinEvent,Change)
    WXS_EVI(EVT_SPIN_UP,wxSpinEvent,ChangeUp)
    WXS_EVI(EVT_SPIN_DOWN,wxSpinEvent,ChangeDown)
    WXS_EV_DEFAULTS()
WXS_EV_END(wxsSpinButtonEvents)


//wxSpinButton(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_HORIZONTAL, const wxString& name = "spinButton")

wxsDWDefineBegin(wxsSpinButton,wxSpinButton,
        ThisWidget = new wxSpinButton(parent,id,pos,size,style);
        ThisWidget->SetRange(min,max);
        ThisWidget->SetValue(value);
    )
    wxsDWDefInt(value,"Default:",0);
    wxsDWDefInt(min,"Min:",0)
    wxsDWDefInt(max,"Max:",100)

wxsDWDefineEnd()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -