📄 wxsstaticline.cpp
字号:
#include "../wxsheaders.h"
#include "wxsstaticline.h"
#include "wx/statline.h"
WXS_ST_BEGIN(wxsStaticLineStyles)
WXS_ST_CATEGORY("wxStaticLine")
WXS_ST(wxLI_HORIZONTAL)
WXS_ST(wxLI_VERTICAL)
WXS_ST_END(wxsStaticLineStyles)
WXS_EV_BEGIN(wxsStaticLineEvents)
WXS_EV_DEFAULTS()
WXS_EV_END(wxsStaticLineEvents)
wxsDWDefineBegin(wxsStaticLineBase,wxStaticLine,
ThisWidget = new wxStaticLine(parent,id,pos,size,style);
)
wxsDWDefineEnd()
wxsStaticLine::wxsStaticLine(wxsWidgetManager* Man,wxsWindowRes* Res):
wxsStaticLineBase(Man,Res)
{
wxsWidgetBaseParams& Params = GetBaseParams();
Params.DefaultSize = false;
Params.SizeX = 10;
Params.SizeY = -1;
}
bool wxsStaticLine::PropertiesUpdated(bool Validate,bool Correct)
{
// Need to additionally check size params
wxsWidgetBaseParams& Params = GetBaseParams();
if ( Params.Style & wxLI_VERTICAL )
{
if ( Params.SizeY == -1 )
{
Params.SizeY = Params.SizeX;
}
Params.SizeX = -1;
}
else
{
if ( Params.SizeX == -1 )
{
Params.SizeX = Params.SizeY;
}
Params.SizeY = -1;
}
return wxsWidget::PropertiesUpdated(Validate,Correct);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -