📄 wxsgridsizer.cpp
字号:
#include "../wxsheaders.h"
#include "wxsgridsizer.h"
wxString wxsGridSizer::GetProducingCode(wxsCodeParams& Params)
{
return wxString::Format(_T("%s = new wxGridSizer(%d,%d,%d,%d);"),
BaseParams.VarName.c_str(),
Rows, Cols, VGap, HGap );
}
bool wxsGridSizer::MyXmlLoad()
{
Rows = XmlGetInteger(_T("rows"));
Cols = XmlGetInteger(_T("cols"));
VGap = XmlGetInteger(_T("vgap"));
HGap = XmlGetInteger(_T("hgap"));
return true;
}
bool wxsGridSizer::MyXmlSave()
{
XmlSetInteger(_T("rows"),Rows);
XmlSetInteger(_T("cols"),Cols);
XmlSetInteger(_T("vgap"),VGap);
XmlSetInteger(_T("hgap"),HGap);
return true;
}
void wxsGridSizer::CreateObjectProperties()
{
wxsWidget::CreateObjectProperties();
PropertiesObject.Add2IProperty(_("Cols x rows:"),Cols,Rows,0);
PropertiesObject.Add2IProperty(_("VGap x HGap:"),VGap,HGap,1);
}
void wxsGridSizer::Init()
{
Rows = 0;
Cols = 0;
VGap = 0;
HGap = 0;
}
wxSizer* wxsGridSizer::ProduceSizer(wxWindow* Panel)
{
return new wxGridSizer(Rows,Cols,VGap,HGap);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -