📄 skindata.pas
字号:
procedure TspDataSkinComboBox.SaveToFile;
begin
inherited;
WriteRect(IniFile, IDName, 'activeskinrect', ActiveSkinRect);
WriteRect(IniFile, IDName, 'itemrect', SItemRect);
WriteRect(IniFile, IDName, 'activeitemrect', ActiveItemRect);
WriteRect(IniFile, IDName, 'focusitemrect', FocusItemRect);
IniFile.WriteInteger(IDName, 'itemleftoffset', ItemLeftOffset);
IniFile.WriteInteger(IDName, 'itemrightoffset', ItemRightOffset);
WriteRect(IniFile, IDName, 'itemtextrect', ItemTextRect);
IniFile.WriteString(IDName, 'fontname', FontName);
IniFile.WriteInteger(IDName, 'fontheight', FontHeight);
WriteFontStyles(IniFile, IDName, 'fontstyle', FontStyle);
IniFile.WriteInteger(IDName, 'fontcolor', FontColor);
IniFile.WriteInteger(IDName, 'focusfontcolor', FocusFontColor);
IniFile.WriteInteger(IDName, 'activefontcolor', ActiveFontColor);
//
WriteRect(IniFile, IDName, 'buttonrect', ButtonRect);
WriteRect(IniFile, IDName, 'activebuttonrect', ActiveButtonRect);
WriteRect(IniFile, IDName, 'downbuttonrect', DownButtonRect);
WriteRect(IniFile, IDName, 'unenabledbuttonrect', UnEnabledButtonRect);
//
IniFile.WriteString(IDName, 'listboxname', ListBoxName);
//
WriteBoolean(IniFile, IDName, 'itemstretcheffect', ItemStretchEffect);
WriteBoolean(IniFile, IDName, 'focusitemstretcheffect', FocusItemStretchEffect);
WriteBoolean(IniFile, IDName, 'showfocus', ShowFocus);
end;
constructor TspDataSkinControlBar.Create(AIDName: String);
begin
inherited;
BGPictureIndex := -1;
end;
procedure TspDataSkinControlBar.LoadFromFile;
begin
inherited;
ItemRect := ReadRect(IniFile, IDName, 'itemrect');
BGPictureIndex := IniFile.ReadInteger(IDName, 'bgpictureindex', -1);
HGripRect := ReadRect(IniFile, IDName, 'hgriprect');
VGripRect := ReadRect(IniFile, IDName, 'vgriprect');
GripOffset1 := IniFile.ReadInteger(IDName, 'gripoffset1', 0);
GripOffset2 := IniFile.ReadInteger(IDName, 'gripoffset2', 0);
ItemStretchEffect := ReadBoolean(IniFile, IDName, 'itemstretcheffect');
ItemOffset1 := IniFile.ReadInteger(IDName, 'itemoffset1', 3);
ItemOffset2 := IniFile.ReadInteger(IDName, 'itemoffset2', 3);
ItemTransparent := ReadBoolean(IniFile, IDName, 'itemtransparent');
ItemTransparentColor := IniFile.ReadInteger(IDName, 'itemtransparentcolor', 0);
GripTransparent := ReadBoolean(IniFile, IDName, 'griptransparent');
GripTransparentColor := IniFile.ReadInteger(IDName, 'griptransparentcolor', 0);
end;
procedure TspDataSkinControlBar.SaveToFile;
begin
inherited;
WriteRect(IniFile, IDName, 'itemrect', ItemRect);
IniFile.WriteInteger(IDName, 'bgpictureindex', BGPictureIndex);
WriteRect(IniFile, IDName, 'hgriprect', HGripRect);
WriteRect(IniFile, IDName, 'vgriprect', VGripRect);
IniFile.WriteInteger(IDName, 'gripoffset1', GripOffset1);
IniFile.WriteInteger(IDName, 'gripoffset2', GripOffset2);
IniFile.WriteInteger(IDName, 'itemoffset1', ItemOffset1);
IniFile.WriteInteger(IDName, 'itemoffset2', ItemOffset2);
WriteBoolean(IniFile, IDName, 'itemstretcheffect', ItemStretchEffect);
WriteBoolean(IniFile, IDName, 'itemtransparent', ItemTransparent);
IniFile.WriteInteger(IDName, 'itemtransparentcolor', ItemTransparentColor);
WriteBoolean(IniFile, IDName, 'griptransparent', GripTransparent);
IniFile.WriteInteger(IDName, 'griptransparentcolor', GripTransparentColor);
end;
constructor TspDataSkinTreeView.Create;
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 14;
FontColor := 0;
BGColor := clWhite;
end;
procedure TspDataSkinTreeView.LoadFromFile;
begin
inherited;
FontName := IniFile.ReadString(IDName, 'fontname', 'Arial');
FontHeight := IniFile.ReadInteger(IDName, 'fontheight', 14);
FontStyle := ReadFontStyles(IniFile, IDName, 'fontstyle');
FontColor := IniFile.ReadInteger(IDName, 'fontcolor', 0);
BGColor := IniFile.ReadInteger(IDName, 'bgcolor', 0);
end;
procedure TspDataSkinTreeView.SaveToFile;
begin
inherited;
IniFile.WriteString(IDName, 'fontname', FontName);
IniFile.WriteInteger(IDName, 'fontheight', FontHeight);
WriteFontStyles(IniFile, IDName, 'fontstyle', FontStyle);
IniFile.WriteInteger(IDName, 'fontcolor', FontColor);
IniFile.WriteInteger(IDName, 'bgcolor', BGColor);
end;
constructor TspDataSkinListView.Create;
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 14;
FontColor := 0;
BGColor := clWhite;
end;
procedure TspDataSkinListView.LoadFromFile;
begin
inherited;
FontName := IniFile.ReadString(IDName, 'fontname', 'Arial');
FontHeight := IniFile.ReadInteger(IDName, 'fontheight', 14);
FontStyle := ReadFontStyles(IniFile, IDName, 'fontstyle');
FontColor := IniFile.ReadInteger(IDName, 'fontcolor', 0);
BGColor := IniFile.ReadInteger(IDName, 'bgcolor', 0);
end;
procedure TspDataSkinListView.SaveToFile;
begin
inherited;
IniFile.WriteString(IDName, 'fontname', FontName);
IniFile.WriteInteger(IDName, 'fontheight', FontHeight);
WriteFontStyles(IniFile, IDName, 'fontstyle', FontStyle);
IniFile.WriteInteger(IDName, 'fontcolor', FontColor);
IniFile.WriteInteger(IDName, 'bgcolor', BGColor);
end;
constructor TspDataSkinRichEdit.Create;
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 14;
FontColor := 0;
BGColor := clWhite;
end;
procedure TspDataSkinRichEdit.LoadFromFile;
begin
inherited;
FontName := IniFile.ReadString(IDName, 'fontname', 'Arial');
FontHeight := IniFile.ReadInteger(IDName, 'fontheight', 14);
FontStyle := ReadFontStyles(IniFile, IDName, 'fontstyle');
FontColor := IniFile.ReadInteger(IDName, 'fontcolor', 0);
BGColor := IniFile.ReadInteger(IDName, 'bgcolor', 0);
end;
procedure TspDataSkinRichEdit.SaveToFile;
begin
inherited;
IniFile.WriteString(IDName, 'fontname', FontName);
IniFile.WriteInteger(IDName, 'fontheight', FontHeight);
WriteFontStyles(IniFile, IDName, 'fontstyle', FontStyle);
IniFile.WriteInteger(IDName, 'fontcolor', FontColor);
IniFile.WriteInteger(IDName, 'bgcolor', BGColor);
end;
constructor TspDataSkinSlider.Create;
begin
inherited;
BGColor := 0;
end;
procedure TspDataSkinSlider.LoadFromFile;
begin
inherited;
BGColor := IniFile.ReadInteger(IDName, 'bgcolor', 0);
HRulerRect := ReadRect(IniFile, IDName, 'hrulerrect');
HThumbRect := ReadRect(IniFile, IDName, 'hthumbrect');
VRulerRect := ReadRect(IniFile, IDName, 'vrulerrect');
VThumbRect := ReadRect(IniFile, IDName, 'vthumbrect');
EdgeSize := IniFile.ReadInteger(IDName, 'edgesize', 0);
PointsColor := IniFile.ReadInteger(IDName, 'pointscolor', 0);
end;
procedure TspDataSkinSlider.SaveToFile;
begin
inherited;
IniFile.WriteInteger(IDName, 'bgcolor', BGColor);
WriteRect(IniFile, IDName, 'hrulerrect', HRulerRect);
WriteRect(IniFile, IDName, 'hthumbrect', HThumbRect);
WriteRect(IniFile, IDName, 'vrulerrect', VRulerRect);
WriteRect(IniFile, IDName, 'vthumbrect', VThumbRect);
IniFile.WriteInteger(IDName, 'edgesize', EdgeSize);
IniFile.WriteInteger(IDName, 'pointscolor', PointsColor);
end;
constructor TspDataSkinBevel.Create;
begin
inherited;
LightColor := 0;
DarkColor := 0;
end;
procedure TspDataSkinBevel.LoadFromFile;
begin
inherited;
LightColor := IniFile.ReadInteger(IDName, 'lightcolor', 0);
DarkColor := IniFile.ReadInteger(IDName, 'darkcolor', 0);
end;
procedure TspDataSkinBevel.SaveToFile;
begin
inherited;
IniFile.WriteInteger(IDName, 'lightcolor', LightColor);
IniFile.WriteInteger(IDName, 'darkcolor', DarkColor);
end;
constructor TspDataSkinTabControl.Create(AIDName: String);
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 14;
FontColor := 0;
ActiveFontColor := 0;
FocusFontColor := 0;
UpDown := '';
BGPictureIndex := -1;
ShowFocus := False;
FocusOffsetX := 0;
FocusOffsetY := 0;
ButtonTransparent := False;
ButtonTransparentColor := clFuchsia;
end;
procedure TspDataSkinTabControl.LoadFromFile;
begin
inherited;
TabRect := ReadRect(IniFile, IDName, 'tabrect');
ActiveTabRect := ReadRect(IniFile, IDName, 'activetabrect');
FocusTabRect := ReadRect(IniFile, IDName, 'focustabrect');
MouseInTabRect := ReadRect(IniFile, IDName, 'mouseintabrect');
ClRect := ReadRect(IniFile, IDName, 'clientrect');
BGPictureIndex := IniFile.ReadInteger(IDName, 'bgpictureindex', -1);
LTPoint := ReadPoint(IniFile, IDName, 'lefttoppoint');
RTPoint := Readpoint(IniFile, IDName, 'righttoppoint');
LBPoint := ReadPoint(IniFile, IDName, 'leftbottompoint');
RBPoint := ReadPoint(IniFile, IDName, 'rightbottompoint');
TabLeftOffset := IniFile.ReadInteger(IDName, 'tableftoffset', 0);
TabRightOffset := IniFile.ReadInteger(IDName, 'tabrightoffset', 0);
TabsBGRect := ReadRect(IniFile, IDName, 'tabsbgrect');
TabStretchEffect := ReadBoolean(IniFile, IDName, 'tabstretcheffect');
LeftStretch := ReadBoolean(IniFile, IDName, 'leftstretch');
TopStretch := ReadBoolean(IniFile, IDName, 'topstretch');
RightStretch := ReadBoolean(IniFile, IDName, 'rightstretch');
BottomStretch := ReadBoolean(IniFile, IDName, 'bottomstretch');
StretchEffect := ReadBoolean(IniFile, IDName, 'stretcheffect');
StretchType := ReadStretchType(IniFile, IDName, 'stretchtype');
FontName := IniFile.ReadString(IDName, 'fontname', 'Arial');
FontHeight := IniFile.ReadInteger(IDName, 'fontheight', 14);
FontStyle := ReadFontStyles(IniFile, IDName, 'fontstyle');
FontColor := IniFile.ReadInteger(IDName, 'fontcolor', 0);
ActiveFontColor := IniFile.ReadInteger(IDName, 'activefontcolor', 0);
FocusFontColor := IniFile.ReadInteger(IDName, 'focusfontcolor', 0);
MouseInFontColor := IniFile.ReadInteger(IDName, 'mouseinfontcolor', 0);
UpDown := IniFile.ReadString(IDName, 'updown', '');
ShowFocus := ReadBoolean(IniFile, IDName, 'showfocus');
FocusOffsetX := IniFile.ReadInteger(IDName, 'focusoffsetx', 0);
FocusOffsetY := IniFile.ReadInteger(IDName, 'focusoffsety', 0);
CloseButtonRect := ReadRect(IniFile, IDName, 'closebuttonrect');
CloseButtonActiveRect := ReadRect(IniFile, IDName, 'closebuttonactiverect');
CloseButtonDownRect := ReadRect(IniFile, IDName, 'closebuttondownrect');
ButtonTransparent := ReadBoolean(IniFile, IDName, 'buttontransparent');
ButtonTransparentColor := IniFile.ReadInteger(IDName, 'buttontransparentcolor', 0);
end;
procedure TspDataSkinTabControl.SaveToFile;
begin
inherited;
WriteRect(IniFile, IDName, 'tabrect', TabRect);
WriteRect(IniFile, IDName, 'activetabrect', ActiveTabRect);
WriteRect(IniFile, IDName, 'focustabrect', FocusTabRect);
WriteRect(IniFile, IDName, 'mouseintabrect', MouseInTabRect);
WriteRect(IniFile, IDName, 'clientrect', ClRect);
IniFile.WriteInteger(IDName, 'bgpictureindex', BGPictureIndex);
WritePoint(IniFile, IDName, 'lefttoppoint', LTPoint);
writePoint(IniFile, IDName, 'righttoppoint', RTPoint);
WritePoint(IniFile, IDName, 'leftbottompoint', LBPoint);
WritePoint(IniFile, IDName, 'rightbottompoint', RBPoint);
IniFile.WriteInteger(IDName, 'tableftoffset', TabLeftOffset);
IniFile.WriteInteger(IDName, 'tabrightoffset', TabRightOffset);
WriteRect(IniFile, IDName, 'tabsbgrect', TabsBGRect);
WriteBoolean(IniFile, IDName, 'tabstretcheffect', TabStretchEffect);
WriteBoolean(IniFile, IDName, 'leftstretch', LeftStretch);
WriteBoolean(IniFile, IDName, 'topstretch', TopStretch);
WriteBoolean(IniFile, IDName, 'topstretch', RightStretch);
WriteBoolean(IniFile, IDName, 'bottomstretch', BottomStretch);
WriteBoolean(IniFile, IDName, 'stretcheffect', StretchEffect);
WriteStretchType(IniFile, IDName, 'stretchtype', StretchType);
IniFile.WriteString(IDName, 'fontname', FontName);
IniFile.WriteInteger(IDName, 'fontheight', FontHeight);
WriteFontStyles(IniFile, IDName, 'fontstyle', FontStyle);
IniFile.WriteInteger(IDName, 'fontcolor', FontColor);
IniFile.WriteInteger(IDName, 'activefontcolor', ActiveFontColor);
IniFile.WriteInteger(IDName, 'focusfontcolor', FocusFontColor);
IniFile.WriteInteger(IDName, 'mouseinfontcolor', MouseInFontColor);
IniFile.WriteString(IDName, 'updown', UpDown);
WriteBoolean(IniFile, IDName, 'showfocus', ShowFocus);
IniFile.WriteInteger(IDName, 'focusoffsetx', FocusOffsetX);
IniFile.WriteInteger(IDName, 'focusoffsety', FocusOffsetY);
WriteRect(IniFile, IDName, 'closebuttonrect', CloseButtonRect);
WriteRect(IniFile, IDName, 'closebuttonactiverect', CloseButtonActiveRect);
WriteRect(IniFile, IDName, 'closebuttondownrect', CloseButtonDownRect);
WriteBoolean(IniFile, IDName, 'buttontransparent', ButtonTransparent);
IniFile.WriteInteger(IDName, 'buttontransparentcolor', ButtonTransparentColor);
end;
constructor TspDataSkinGridControl.Create;
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 14;
FontColor := 0;
FixedFontName := 'Arial';
FixedFontStyle := [];
FixedFontHeight := 14;
FixedFontColor := 0;
BGPictureIndex := -1;
ShowFocus := False;
end;
procedure TspDataSkinGridControl.LoadFromFile(IniFile: TCustomIniFile);
begin
inherited;
FixedCellRect := ReadRect(IniFile, IDName, 'fixedcellrect');
SelectCellRect := ReadRect(IniFile, IDName, 'selectcellrect');
FocusCellRect := ReadRect(IniFile, IDName, 'focuscellrect');
//
FixedCellLeftOffset := IniFile.ReadInteger(IDName, 'fixedcellleftoffset', 0);
FixedCellRightOffset := IniFile.ReadInteger(IDName, 'fixedcellrightoffset', 0);
FixedCellTextRect := ReadRect(IniFile, IDName, 'fixedcelltextrect');
//
CellLeftOffset := IniFile.ReadInteger(IDName, 'cellleftoffset', 0);
CellRightOffset := IniFile.ReadInteger(IDName, 'cellrightoffset', 0);
CellTextRect := ReadRect(IniFile, IDName, 'celltextrect');
//
LinesColor := IniFile.ReadInteger(IDName, 'linescolor', 0);
BGColor := IniFile.ReadInteger(IDName, 'bgcolor', 0);
BGPictureIndex := IniFile.ReadInteger(IDName, 'bgpictureindex', -1);
FontName := IniFile.ReadString(IDName, 'fontname', 'Arial');
FontHeight := IniFile.ReadInteger(IDName, 'fontheight', 14);
FontStyle := ReadFontSt
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -