📄 bsskindata.pas
字号:
constructor TbsDataSkinSlider.Create;
begin
inherited;
BGColor := 0;
end;
procedure TbsDataSkinSlider.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 TbsDataSkinSlider.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 TbsDataSkinBevel.Create;
begin
inherited;
LightColor := 0;
DarkColor := 0;
end;
procedure TbsDataSkinBevel.LoadFromFile;
begin
inherited;
LightColor := IniFile.ReadInteger(IDName, 'lightcolor', 0);
DarkColor := IniFile.ReadInteger(IDName, 'darkcolor', 0);
end;
procedure TbsDataSkinBevel.SaveToFile;
begin
inherited;
IniFile.WriteInteger(IDName, 'lightcolor', LightColor);
IniFile.WriteInteger(IDName, 'darkcolor', DarkColor);
end;
constructor TbsDataSkinTreeView.Create;
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 14;
FontColor := 0;
BGColor := clWhite;
end;
procedure TbsDataSkinTreeView.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 TbsDataSkinTreeView.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 TbsDataSkinListView.Create;
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 14;
FontColor := 0;
BGColor := clWhite;
end;
procedure TbsDataSkinListView.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 TbsDataSkinListView.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 TbsDataSkinRichEdit.Create;
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 14;
FontColor := 0;
BGColor := clWhite;
end;
procedure TbsDataSkinRichEdit.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 TbsDataSkinRichEdit.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 TbsDataSkinTabControl.Create(AIDName: String);
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 14;
FontColor := 0;
ActiveFontColor := 0;
FocusFontColor := 0;
UpDown := '';
BGPictureIndex := -1;
end;
procedure TbsDataSkinTabControl.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');
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', '');
end;
procedure TbsDataSkinTabControl.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);
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);
end;
constructor TbsDataSkinGridControl.Create;
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 14;
FontColor := 0;
FixedFontName := 'Arial';
FixedFontStyle := [];
FixedFontHeight := 14;
FixedFontColor := 0;
end;
procedure TbsDataSkinGridControl.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);
FontName := IniFile.ReadString(IDName, 'fontname', 'Arial');
FontHeight := IniFile.ReadInteger(IDName, 'fontheight', 14);
FontStyle := ReadFontStyles(IniFile, IDName, 'fontstyle');
FontColor := IniFile.ReadInteger(IDName, 'fontcolor', 0);
SelectFontColor := IniFile.ReadInteger(IDName, 'selectfontcolor', 0);
FocusFontColor := IniFile.ReadInteger(IDName, 'focusfontcolor', 0);
//
FixedFontName := IniFile.ReadString(IDName, 'fixedfontname', 'Arial');
FixedFontHeight := IniFile.ReadInteger(IDName, 'fixedfontheight', 14);
FixedFontStyle := ReadFontStyles(IniFile, IDName, 'fixedfontstyle');
FixedFontColor := IniFile.ReadInteger(IDName, 'fixedfontcolor', 0);
end;
procedure TbsDataSkinGridControl.SaveToFile(IniFile: TCustomIniFile);
begin
inherited;
WriteRect(IniFile, IDName, 'fixedcellrect', FixedCellRect);
WriteRect(IniFile, IDName, 'selectcellrect', SelectCellRect);
WriteRect(IniFile, IDName, 'focuscellrect', FocusCellRect);
//
IniFile.WriteInteger(IDName, 'fixedcellleftoffset', FixedCellLeftOffset);
IniFile.WriteInteger(IDName, 'fixedcellrightoffset', FixedCellRightOffset);
WriteRect(IniFile, IDName, 'fixedcelltextrect', FixedCellTextRect);
//
IniFile.WriteInteger(IDName, 'cellleftoffset', CellLeftOffset);
IniFile.WriteInteger(IDName, 'cellrightoffset', CellRightOffset);
WriteRect(IniFile, IDName, 'celltextrect', CellTextRect);
//
IniFile.WriteInteger(IDName, 'linescolor', LinesColor);
IniFile.WriteInteger(IDName, 'bgcolor', BGColor);
IniFile.WriteString(IDName, 'fontname', FontName);
IniFile.WriteInteger(IDName, 'fontheight', FontHeight);
WriteFontStyles(IniFile, IDName, 'fontstyle', FontStyle);
IniFile.WriteInteger(IDName, 'fontcolor', FontColor);
IniFile.WriteInteger(IDName, 'selectfontcolor', SelectFontColor);
IniFile.WriteInteger(IDName, 'focusfontcolor', FocusFontColor);
//
IniFile.WriteString(IDName, 'fixedfontname', FixedFontName);
IniFile.WriteInteger(IDName, 'fixedfontheight', FixedFontHeight);
WriteFontStyles(IniFile, IDName, 'fixedfontstyle', FixedFontStyle);
IniFile.WriteInteger(IDName, 'fixedfontcolor', FixedFontColor);
end;
constructor TbsDataSkinCustomControl.Create;
begin
inherited;
LTPoint := Point(0, 0);
RBPoint := Point(0, 0);
LBPoint := Point(0, 0);
RTPoint := Point(0, 0);
ClRect := Rect(0, 0, 0, 0);
MaskPictureIndex := -1;
end;
procedure TbsDataSkinCustomControl.LoadFromFile;
begin
inherited;
LTPoint := ReadPoint(IniFile, IDName, 'lefttoppoint');
RTPoint := ReadPoint(IniFile, IDName, 'righttoppoint');
LBPoint := ReadPoint(IniFile, IDName, 'leftbottompoint');
RBPoint := ReadPoint(IniFile, IDName, 'rightbottompoint');
ClRect := ReadRect(IniFile, IDName, 'clientrect');
end;
procedure TbsDataSkinCustomControl.SaveToFile;
begin
inherited;
WritePoint(IniFile, IDName, 'lefttoppoint', LTPoint);
WritePoint(IniFile, IDName, 'righttoppoint', RTPoint);
WritePoint(IniFile, IDName, 'leftbottompoint', LBPoint);
WritePoint(IniFile, IDName, 'rightbottompoint', RBPoint);
WriteRect(IniFile, IDName, 'clientrect', ClRect);
end;
constructor TbsDataSkinSpinEditControl.Create;
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 12;
FontColor := 0;
DisabledFontColor := 0;
ActiveFontColor := 0;
end;
procedure TbsDataSkinSpinEditControl.LoadFromFile;
begin
inherited;
ActiveSkinRect := ReadRect(IniFile, IDName, 'activeskinrect');
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);
DisabledFontColor := IniFile.ReadInteger(IDName, 'disabledfontcolor', 0);
UpButtonRect := ReadRect(IniFile, IDName, 'upbuttonrect');
ActiveUpButtonRect := ReadRect(IniFile, IDName, 'activeupbuttonrect');
DownUpButtonRect := ReadRect(IniFile, IDName, 'downupbuttonrect');
DownButtonRect := ReadRect(IniFile, IDName, 'downbuttonrect');
ActiveDownButtonRect := ReadRect(IniFile, IDName, 'activedownbuttonrect');
DownDownButtonRect := ReadRect(IniFile, IDName, 'downdownbuttonrect');
end;
procedure TbsDataSkinSpinEditControl.SaveToFile;
begin
inherited;
WriteRect(IniFile, IDName, 'activeskinrect', ActiveSkinRect);
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, 'disabledfontcolor', DisabledFontColor);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -