📄 bsskindata.pas
字号:
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);
//
CellStretchEffect := ReadBoolean(IniFile, IDName, 'cellstretcheffect');
FixedCellStretchEffect := ReadBoolean(IniFile, IDName, 'fixedcellstretcheffect');
ShowFocus := ReadBoolean(IniFile, IDName, 'showfocus');
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);
//
WriteBoolean(IniFile, IDName, 'cellstretcheffect', CellStretchEffect);
WriteBoolean(IniFile, IDName, 'fixedcellstretcheffect', FixedCellStretchEffect);
WriteBoolean(IniFile, IDName, 'showfocus', ShowFocus);
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;
StretchEffect := False;
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');
StretchEffect := ReadBoolean(IniFile, IDName, 'stretcheffect');
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);
WriteBoolean(IniFile, IDName, 'stretcheffect', StretchEffect);
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);
WriteRect(IniFile, IDName, 'upbuttonrect', UpButtonRect);
WriteRect(IniFile, IDName, 'activeupbuttonrect', ActiveUpButtonRect);
WriteRect(IniFile, IDName, 'downupbuttonrect', DownUpButtonRect);
WriteRect(IniFile, IDName, 'downbuttonrect', DownButtonRect);
WriteRect(IniFile, IDName, 'activedownbuttonrect', ActiveDownButtonRect);
WriteRect(IniFile, IDName, 'downdownbuttonrect', DownDownButtonRect);
end;
constructor TbsDataSkinEditControl.Create;
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 12;
FontColor := 0;
ActiveFontColor := 0;
end;
procedure TbsDataSkinEditControl.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);
DisabledFontColor := IniFile.ReadInteger(IDName, 'disabledfontcolor', 0);
ActiveFontColor := IniFile.ReadInteger(IDName, 'activefontcolor', 0);
ButtonRect := ReadRect(IniFile, IDName, 'buttonrect');
ActiveButtonRect := ReadRect(IniFile, IDName, 'activebuttonrect');
DownButtonRect := ReadRect(IniFile, IDName, 'downbuttonrect');
UnEnabledButtonRect := ReadRect(IniFile, IDName, 'unenabledbuttonrect');
end;
procedure TbsDataSkinEditControl.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, 'disabledfontcolor', DisabledFontColor);
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);
end;
constructor TbsDataSkinMemoControl.Create(AIDName: String);
begin
inherited;
end;
procedure TbsDataSkinMemoControl.LoadFromFile;
begin
inherited;
BGColor := IniFile.ReadInteger(IDName, 'bgcolor', 0);
ActiveBGColor := IniFile.ReadInteger(IDName, 'activebgcolor', 0);
end;
procedure TbsDataSkinMemoControl.SaveToFile;
begin
inherited;
IniFile.WriteInteger(IDName, 'bgcolor', BGColor);
IniFile.WriteInteger(IDName, 'activebgcolor', ActiveBGColor);
end;
constructor TbsDataSkinStdLabelControl.Create;
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 12;
FontColor := 0;
ActiveFontColor := clBlue;
end;
procedure TbsDataSkinStdLabelControl.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);
ActiveFontColor := IniFile.ReadInteger(IDName, 'activefontcolor', clBlue);
end;
procedure TbsDataSkinStdLabelControl.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, 'activefontcolor', ActiveFontColor);
end;
constructor TbsDataSkinLabelControl.Create;
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 12;
FontColor := 0;
end;
procedure TbsDataSkinLabelControl.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);
end;
procedure TbsDataSkinLabelControl.SaveToFile;
begin
inherited;
IniFile.WriteString(IDName, 'fontname', FontName);
IniFile.WriteInteger(IDName, 'fontheight', FontHeight);
WriteFontStyles(IniFile, IDName, 'fontstyle', FontStyle);
IniFile.WriteInteger(IDName, 'fontcolor', FontColor);
end;
constructor TbsDataSkinScrollBarControl.Create;
begin
inherited;
ThumbOffset1 := 0;
ThumbOffset2 := 0;
ThumbTransparent := False;
ThumbTransparentColor := clFuchsia;
end;
procedure TbsDataSkinScrollBarControl.LoadFromFile;
begin
inherited;
TrackArea := ReadRect(IniFile, IDName, 'trackarea');
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');
ThumbRect := ReadRect(IniFile, IDName, 'thumbrect');
ActiveThumbRect := ReadRect(IniFile, IDName, 'activethumbrect');
DownThumbRect := ReadRect(IniFile, IDName, 'downthumbrect');
ThumbOffset1 := IniFile.ReadInteger(IDName, 'thumboffset1', 0);
ThumbOffset2 := IniFile.ReadInteger(IDName, 'thumboffset2', 0);
ThumbTransparent := ReadBoolean(IniFile, IDName, 'thumbtransparent');
ThumbTransparentColor := IniFile.ReadInteger(IDName, 'thumbtransparentcolor', 0);
GlyphRect := ReadRect(IniFile, IDName, 'glyphrect');
ActiveGlyphRect := ReadRect(IniFile, IDName, 'activeglyphrect');
DownGlyphRect := ReadRect(IniFile, IDName, 'downglyphrect');
end;
procedure TbsDataSkinScrollBarControl.SaveToFile;
begin
inherited;
WriteRect(IniFile, IDName, 'trackarea', TrackArea);
WriteRect(IniFile, IDName, 'upbuttonrect', UpButtonRect);
WriteRect(IniFile, IDName, 'activeupbuttonrect', ActiveUpButtonRect);
WriteRect(IniFile, IDName, 'downupbuttonrect', DownUpButtonRect);
WriteRect(IniFile, IDName, 'downbuttonrect', DownButtonRect);
WriteRect(IniFile, IDName, 'activedownbuttonrect', ActiveDownButtonRect);
WriteRect(IniFile, IDName, 'downdownbuttonrect', DownDownButtonRect);
WriteRect(IniFile, IDName, 'thumbrect', ThumbRect);
WriteRect(IniFile, IDName, 'activethumbrect', ActiveThumbRect);
WriteRect(IniFile, IDName, 'downthumbrect', DownThumbRect);
IniFile.WriteInteger(IDName, 'thumboffset1', ThumbOffset1);
IniFile.WriteInteger(IDName, 'thumboffset2', ThumbOffset2);
WriteBoolean(IniFile, IDName, 'thumbtransparent', ThumbTransparent);
IniFile.WriteInteger(IDName, 'thumbtransparentcolor', ThumbTransparentColor);
WriteRect(IniFile, IDName, 'glyphrect', GlyphRect);
WriteRect(IniFile, IDName, 'activeglyphrect', ActiveGlyphRect);
WriteRect(IniFile, IDName, 'downglyphrect', DownGlyphRect);
end;
constructor TbsDataSkinTrackBarControl.Create;
begin
inherited;
TrackArea := NullRect;
ButtonRect := NullRect;
ActiveButtonRect := NullRect;
Vertical := False;
ButtonTransparent := False;
ButtonTransparentColor := clFuchsia;
end;
procedure TbsDataSkinTrackBarControl.LoadFromFile;
begin
inherited;
TrackArea := ReadRect(IniFile, IDName, 'trackarea');
ButtonRect := ReadRect(IniFile, IDName, 'buttonrect');
ActiveButtonRect := ReadRect(IniFile, IDName, 'activebuttonrect');
Vertical := ReadBoolean(IniFile, IDName, 'vertical');
ButtonTransparent := ReadBoolean(IniFile, IDName, 'buttontransparent');
ButtonTransparentColor := IniFile.ReadInteger(IDName, 'buttontransparentcolor', 0);
end;
procedure TbsDataSkinTrackBarControl.SaveToFile;
begin
inherited;
WriteRect(IniFile, IDName, 'trackarea', TrackArea);
WriteRect(IniFile, IDName, 'buttonrect', ButtonRect);
WriteRect(IniFile, IDName, 'activebuttonrect', ActiveButtonRect);
WriteBoolean(IniFile, IDName, 'vertical', Vertical);
WriteBoolean(IniFile, IDName, 'buttontransparent', ButtonTransparent);
IniFile.WriteInteger(IDName, 'buttontransparentcolor', ButtonTransparentColor);
end;
constructor TbsDataSkinSplitterControl.Create(AIDName: String);
begin
inherited;
GripperRect := NullRect;
GripperTransparent := False;
GripperTransparentColor := clFuchsia;
end;
procedure TbsDataSkinSplitterControl.LoadFromFile(IniFile: TCustomIniFile);
begin
inherited;
GripperRect := ReadRect(IniFile, IDName, 'gripperrect');
GripperTransparent := ReadBoolean(IniFile, IDName, 'grippertransparent')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -