📄 skinbuild.pas
字号:
end;
procedure TSBForm.LoadGaugeControl;
var
P: TbsProperty;
begin
DefLoadResizeControl(Index);
with PE, TbsDataSkinGaugeControl(SkinData.CtrlList.Items[Index]) do
begin
P := GetProperty('rightbottompoint');
P.PropertyType := 'fixed';
AddRectProperty('progressarea', ProgressArea, 'rectctrl2');
AddRectProperty('progressrect', ProgressRect, 'rectctrl1');
AddIntProperty('beginoffset', BeginOffset, 'int');
AddIntProperty('endoffset', EndOffset, 'int');
AddBolProperty('vertical', Vertical, 'boolean');
AddProperty('fontname', FontName, 'string');
AddIntProperty('fontheight', FontHeight, 'int');
AddFSProperty('fontstyle', FontStyle, 'fontstyle');
AddIntProperty('fontcolor', FontColor, 'skincolor');
AddBolProperty('progresstransparent', ProgressTransparent, 'boolean');
AddIntProperty('progresstransparentcolor', ProgressTransparentColor, 'skincolor');
AddBolProperty('progressstretch', ProgressStretch, 'boolean');
AddRectProperty('animationskinrect', AnimationSkinRect, 'rectctrl1');
AddIntProperty('animationcountframes', AnimationCountFrames, 'int');
AddIntProperty('animationtimerinterval', AnimationTimerInterval, 'int');
AddIntProperty('animationbeginoffset', AnimationBeginOffset, 'int');
AddIntProperty('animationendoffset', AnimationEndOffset, 'int');
AddRectProperty('progressanimationskinrect', ProgressAnimationSkinRect, 'rectctrl1');
AddIntProperty('progressanimationcountframes', ProgressAnimationCountFrames, 'int');
AddIntProperty('progressanimationtimerinterval', ProgressAnimationTimerInterval, 'int');
end;
PE.Cells[0, 0] := '< gauge >';
end;
procedure TSBForm.LoadUpDownControl;
begin
with PE, TbsDataSkinUpDownControl(SkinData.CtrlList.Items[Index]) do
begin
AddRectProperty('upbuttonrect', UpButtonRect, 'rectctrl2');
AddRectProperty('activeupbuttonrect', ActiveUpButtonRect, 'rectctrl1');
AddRectProperty('downupbuttonrect', DownUpButtonRect, 'rectctrl1');
AddRectProperty('downbuttonrect', DownButtonRect, 'rectctrl2');
AddRectProperty('activedownbuttonrect', ActiveDownButtonRect, 'rectctrl1');
AddRectProperty('downdownbuttonrect', DownDownButtonRect, 'rectctrl1');
end;
PE.Cells[0, 0] := '< updown >';
end;
procedure TSBForm.LoadComboBoxControl;
begin
DefLoadResizeControl(Index);
with PE, TbsDataSkinComboBox(SkinData.CtrlList.Items[Index]) do
begin
AddRectProperty('activeskinrect', ActiveSkinRect, 'rectctrl1');
AddRectProperty('itemrect', SItemRect, 'rectctrl1');
AddRectProperty('activeitemrect', ActiveItemRect, 'rectctrl1');
AddRectProperty('focusitemrect', FocusItemRect, 'rectctrl1');
AddIntProperty('itemleftoffset', ItemLeftOffset, 'int');
AddIntProperty('itemrightoffset', ItemRightOffset, 'int');
AddRectProperty('itemtextrect', ItemTextRect, 'itemrect');
AddProperty('fontname', FontName, 'string');
AddIntProperty('fontheight', FontHeight, 'int');
AddFSProperty('fontstyle', FontStyle, 'fontstyle');
AddIntProperty('fontcolor', FontColor, 'skincolor');
AddIntProperty('focusfontcolor', FocusFontColor, 'skincolor');
AddIntProperty('activefontcolor', ActiveFontColor, 'skincolor');
//
AddRectProperty('buttonrect', ButtonRect, 'rectctrl2');
AddRectProperty('activebuttonrect', ActiveButtonRect, 'rectctrl1');
AddRectProperty('downbuttonrect', DownButtonRect, 'rectctrl1');
AddRectProperty('unenabledbuttonrect', UnEnabledButtonRect, 'rectctrl1');
//
AddBolProperty('itemstretcheffect', ItemStretchEffect, 'boolean');
AddBolProperty('focusitemstretcheffect', FocusItemStretchEffect, 'boolean');
//
AddProperty('listboxname', ListBoxName, 'string');
AddBolProperty('showfocus', ShowFocus, 'boolean');
end;
PE.Cells[0, 0] := '< combobox >';
end;
procedure TSBForm.LoadCheckListBoxControl;
begin
DefLoadResizeControl(Index);
with PE, TbsDataSkinCheckListBox(SkinData.CtrlList.Items[Index]) do
begin
AddRectProperty('itemrect', SItemRect, 'rectctrl1');
AddRectProperty('activeitemrect', ActiveItemRect, 'rectctrl1');
AddRectProperty('focusitemrect', FocusItemRect, 'rectctrl1');
AddIntProperty('itemleftoffset', ItemLeftOffset, 'int');
AddIntProperty('itemrightoffset', ItemRightOffset, 'int');
AddRectProperty('itemtextrect', ItemTextRect, 'itemrect');
AddRectProperty('itemcheckrect', ItemCheckRect, 'itemrect');
AddRectProperty('checkimagerect', CheckImageRect, 'rectctrl1');
AddRectProperty('uncheckimagerect', UnCheckImageRect, 'rectctrl1');
AddProperty('fontname', FontName, 'string');
AddIntProperty('fontheight', FontHeight, 'int');
AddFSProperty('fontstyle', FontStyle, 'fontstyle');
AddIntProperty('fontcolor', FontColor, 'skincolor');
AddIntProperty('activefontcolor', ActiveFontColor, 'skincolor');
AddIntProperty('focusfontcolor', FocusFontColor, 'skincolor');
//
AddRectProperty('captionrect', CaptionRect, 'rectctrl2');
AddProperty('captionfontname', CaptionFontName, 'string');
AddIntProperty('captionfontheight', CaptionFontHeight, 'int');
AddFSProperty('captionfontstyle', CaptionFontStyle, 'fontstyle');
AddIntProperty('captionfontcolor', CaptionFontColor, 'skincolor');
//
AddRectProperty('upbuttonrect', UpButtonRect, 'rectctrl2');
AddRectProperty('activeupbuttonrect', ActiveUpButtonRect, 'rectctrl1');
AddRectProperty('downupbuttonrect', DownUpButtonRect, 'rectctrl1');
AddRectProperty('downbuttonrect', DownButtonRect, 'rectctrl2');
AddRectProperty('activedownbuttonrect', ActiveDownButtonRect, 'rectctrl1');
AddRectProperty('downdownbuttonrect', DownDownButtonRect, 'rectctrl1');
AddRectProperty('checkbuttonrect', CheckButtonRect, 'rectctrl2');
AddRectProperty('activecheckbuttonrect', ActiveCheckButtonRect, 'rectctrl1');
AddRectProperty('downcheckbuttonrect', DownCheckButtonRect, 'rectctrl1');
//
AddProperty('vscrollbarname', VScrollBarName, 'string');
AddProperty('hscrollbarname', HScrollBarName, 'string');
AddProperty('bothhscrollbarname', BothScrollBarName, 'string');
AddBolProperty('showfocus', ShowFocus, 'boolean');
end;
PE.Cells[0, 0] := '< checklistbox >';
end;
procedure TSBForm.LoadScrollBoxControl(Index: Integer);
begin
DefLoadResizeControl(Index);
with PE, TbsDataSkinScrollBoxControl(SkinData.CtrlList.Items[Index]) do
begin
AddIntProperty('bgpictureindex', BGPictureIndex, 'pindex');
end;
PE.Cells[0, 0] := '< scrollbox >';
end;
procedure TSBForm.LoadListBoxControl;
begin
DefLoadResizeControl(Index);
with PE, TbsDataSkinListBox(SkinData.CtrlList.Items[Index]) do
begin
AddRectProperty('itemrect', SItemRect, 'rectctrl1');
AddRectProperty('activeitemrect', ActiveItemRect, 'rectctrl1');
AddRectProperty('focusitemrect', FocusItemRect, 'rectctrl1');
AddIntProperty('itemleftoffset', ItemLeftOffset, 'int');
AddIntProperty('itemrightoffset', ItemRightOffset, 'int');
AddRectProperty('itemtextrect', ItemTextRect, 'itemrect');
AddProperty('fontname', FontName, 'string');
AddIntProperty('fontheight', FontHeight, 'int');
AddFSProperty('fontstyle', FontStyle, 'fontstyle');
AddIntProperty('fontcolor', FontColor, 'skincolor');
AddIntProperty('activefontcolor', ActiveFontColor, 'skincolor');
AddIntProperty('focusfontcolor', FocusFontColor, 'skincolor');
//
AddRectProperty('captionrect', CaptionRect, 'rectctrl2');
AddProperty('captionfontname', CaptionFontName, 'string');
AddIntProperty('captionfontheight', CaptionFontHeight, 'int');
AddFSProperty('captionfontstyle', CaptionFontStyle, 'fontstyle');
AddIntProperty('captionfontcolor', CaptionFontColor, 'skincolor');
//
AddRectProperty('upbuttonrect', UpButtonRect, 'rectctrl2');
AddRectProperty('activeupbuttonrect', ActiveUpButtonRect, 'rectctrl1');
AddRectProperty('downupbuttonrect', DownUpButtonRect, 'rectctrl1');
AddRectProperty('downbuttonrect', DownButtonRect, 'rectctrl2');
AddRectProperty('activedownbuttonrect', ActiveDownButtonRect, 'rectctrl1');
AddRectProperty('downdownbuttonrect', DownDownButtonRect, 'rectctrl1');
AddRectProperty('checkbuttonrect', CheckButtonRect, 'rectctrl2');
AddRectProperty('activecheckbuttonrect', ActiveCheckButtonRect, 'rectctrl1');
AddRectProperty('downcheckbuttonrect', DownCheckButtonRect, 'rectctrl1');
//
AddProperty('vscrollbarname', VScrollBarName, 'string');
AddProperty('hscrollbarname', HScrollBarName, 'string');
AddProperty('bothhscrollbarname', BothScrollBarName, 'string');
AddBolProperty('showfocus', ShowFocus, 'boolean');
end;
PE.Cells[0, 0] := '< listbox >';
end;
procedure TSBForm.LoadMainMenuBar(Index: Integer);
begin
with PE, TbsDataSkinMainMenuBar(SkinData.CtrlList.Items[Index]) do
begin
AddRectProperty('itemsrect', ItemsRect, 'rectctrl2');
AddProperty('menubaritem', MenuBarItem, 'string');
AddProperty('closebutton', CloseButton, 'string');
AddProperty('maxbutton', MaxButton, 'string');
AddProperty('minbutton', MinButton, 'string');
AddProperty('sysmenubutton', SysMenuButton, 'string');
AddIntProperty('trackmarkcolor', TrackMarkColor, 'skincolor');
AddIntProperty('trackmarkactivecolor', TrackMarkActiveColor, 'skincolor');
AddBolProperty('stretcheffect', StretchEffect, 'boolean');
AddBolProperty('itemtransparent', ItemTransparent, 'boolean');
end;
PE.Cells[0, 0] := '< mainmenubar >';
end;
procedure TSBForm.LoadControlBar;
var
P: TbsProperty;
begin
DefLoadResizeControl(Index);
with PE, TbsDataSkinControlBar(SkinData.CtrlList.Items[Index]) do
begin
P := GetProperty('maskpictureindex');
P.PropertyType := 'fixed';
AddRectProperty('itemrect', ItemRect, 'rectctrl1');
AddIntProperty('bgpictureindex', BGPictureIndex, 'pindex');
AddIntProperty('gripoffset1', GripOffset1, 'int');
AddIntProperty('gripoffset2', GripOffset2, 'int');
AddRectProperty('hgriprect', HGripRect, 'rectctrl1');
AddRectProperty('vgriprect', VGripRect, 'rectctrl1');
AddIntProperty('itemoffset1', ItemOffset1, 'int');
AddIntProperty('itemoffset2', ItemOffset2, 'int');
AddBolProperty('itemstretcheffect', ItemStretchEffect, 'boolean');
AddBolProperty('griptransparent', GripTransparent, 'boolean');
AddIntProperty('griptransparentcolor', GripTransparentColor, 'skincolor');
AddBolProperty('itemtransparent', ItemTransparent, 'boolean');
AddIntProperty('itemtransparentcolor', ItemTransparentColor, 'skincolor');
end;
PE.Cells[0, 0] := '< controlbar >';
end;
procedure TSBForm.LoadBevelControl(Index: Integer);
var
P: TbsProperty;
begin
with PE, TbsDataSkinBevel(SkinData.CtrlList.Items[Index]) do
begin
P := GetProperty('maskpictureindex');
P.PropertyType := 'fixed';
P := GetProperty('pictureindex');
P.PropertyType := 'fixed';
AddIntProperty('lightcolor', LightColor, 'skincolor');
AddIntProperty('darkcolor', DarkColor, 'skincolor');
end;
PE.Cells[0, 0] := '< bevel >';
end;
procedure TSBForm.LoadTreeViewControl;
var
P: TbsProperty;
begin
with PE, TbsDataSkinTreeView(SkinData.CtrlList.Items[Index]) do
begin
P := GetProperty('maskpictureindex');
P.PropertyType := 'fixed';
P := GetProperty('pictureindex');
P.PropertyType := 'fixed';
AddProperty('fontname', FontName, 'string');
AddIntProperty('fontheight', FontHeight, 'int');
AddFSProperty('fontstyle', FontStyle, 'fontstyle');
AddIntProperty('fontcolor', FontColor, 'skincolor');
AddIntProperty('bgcolor', BGColor, 'skincolor');
end;
PE.Cells[0, 0] := '< treeview >';
end;
procedure TSBForm.LoadListViewControl;
var
P: TbsProperty;
begin
with PE, TbsDataSkinListView(SkinData.CtrlList.Items[Index]) do
begin
P := GetProperty('maskpictureindex');
P.PropertyType := 'fixed';
P := GetProperty('pictureindex');
P.PropertyType := 'fixed';
AddProperty('fontname', FontName, 'string');
AddIntProperty('fontheight', FontHeight, 'int');
AddFSProperty('fontstyle', FontStyle, 'fontstyle');
AddIntProperty('fontcolor', FontColor, 'skincolor');
AddIntProperty('bgcolor', BGColor, 'skincolor');
end;
PE.Cells[0, 0] := '< listview >';
end;
procedure TSBForm.LoadRichEditControl;
var
P: TbsProperty;
begin
with PE, TbsDataSkinRichEdit(SkinData.CtrlList.Items[Index]) do
begin
P := GetProperty('maskpictureindex');
P.PropertyType := 'fixed';
P := GetProperty('pictureindex');
P.PropertyType := 'fixed';
AddProperty('fontname', FontName, 'string');
AddIntProperty('fontheight', FontHeight, 'int');
AddFSProperty('fontstyle', FontStyle, 'fontstyle');
AddIntProperty('fontcolor', FontColor, 'skincolor');
AddIntProperty('bgcolor', BGColor, 'skincolor');
end;
PE.Cells[0, 0] := '< richedit >';
end;
procedure TSBForm.LoadTabControl;
var
P: TbsProperty;
begin
with PE, TbsDataSkinTabControl(SkinData.CtrlList.Items[Index]) do
begin
P := GetProperty('maskpictureindex');
P.PropertyType := 'fixed';
AddRectProperty('tabrect', TabRect, 'rectctrl1');
AddRectProperty('activetabrect', ActiveTabRect, 'rectctrl1');
AddRectProperty('focustabrect', FocusTabRect, 'rectctrl1');
AddRectProperty('mouseintabrect', MouseInTabRect, 'rectctrl1');
AddRectProperty('clientrect', ClRect, 'rectctrl2');
AddIntProperty('bgpictureindex', BGPictureIndex, 'pindex');
//
AddPointProperty('lefttoppoint', LTPoint, 'pointctrl2');
AddPointProperty('righttoppoint', RTPoint, 'pointctrl2');
AddPointProperty('leftbottompoint', LBPoint, 'pointctrl2');
AddPointProperty('rightbottompoint', RBPoint, 'pointctrl2');
AddIntProperty('tableftoffset', TabLeftOffset, 'int');
AddIntProperty('tabrightoffset', TabRightOffset, 'int');
AddRectProperty('tabsbgrect', TabsBGRect, 'rectctrl1');
AddBolProperty('tabstretcheffect', TabStretchEffect, 'boolean');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -