📄 bsskindata.pas
字号:
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;
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);
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);
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;
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');
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);
end;
constructor TbsDataSkinGaugeControl.Create;
begin
inherited;
ProgressArea := NullRect;
ProgressRect := NullRect;
Vertical := False;
BeginOffset := 0;
EndOffset := 0;
FontName := 'Arial';
FontStyle := [];
FontHeight := 14;
FontColor := 0;
end;
procedure TbsDataSkinGaugeControl.LoadFromFile;
begin
inherited;
ProgressArea := ReadRect(IniFile, IDName, 'progressarea');
ProgressRect := ReadRect(IniFile, IDName, 'progressrect');
BeginOffset := IniFile.ReadInteger(IDName, 'beginoffset', 0);
EndOffset := IniFile.ReadInteger(IDName, 'endoffset', 0);
Vertical := ReadBoolean(IniFile, IDName, 'vertical');
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 TbsDataSkinGaugeControl.SaveToFile;
begin
inherited;
WriteRect(IniFile, IDName, 'progressarea', ProgressArea);
WriteRect(IniFile, IDName, 'progressrect', ProgressRect);
IniFile.WriteInteger(IDName, 'beginoffset', BeginOffset);
IniFile.WriteInteger(IDName, 'endoffset', EndOffset);
WriteBoolean(IniFile, IDName, 'vertical', Vertical);
IniFile.WriteString(IDName, 'fontname', FontName);
IniFile.WriteInteger(IDName, 'fontheight', FontHeight);
WriteFontStyles(IniFile, IDName, 'fontstyle', FontStyle);
IniFile.WriteInteger(IDName, 'fontcolor', FontColor);
end;
constructor TbsDataSkinScrollBoxControl.Create(AIDName: String);
begin
inherited;
BGPictureIndex := -1;
end;
procedure TbsDataSkinScrollBoxControl.LoadFromFile(IniFile: TCustomIniFile);
begin
inherited;
BGPictureIndex := IniFile.ReadInteger(IDName, 'bgpictureindex', -1);
end;
procedure TbsDataSkinScrollBoxControl.SaveToFile(IniFile: TCustomIniFile);
begin
inherited;
IniFile.WriteInteger(IDName, 'bgpictureindex', BGPictureIndex);
end;
constructor TbsDataSkinExPanelControl.Create(AIDName: String);
begin
inherited;
FontName := 'Arial';
FontStyle := [];
FontHeight := 12;
FontColor := 0;
end;
procedure TbsDataSkinExPanelControl.LoadFromFile(IniFile: TCustomIniFile);
begin
inherited;
RollHSkinRect := ReadRect(IniFile, IDName, 'rollhskinrect');
RollVSkinRect := ReadRect(IniFile, IDName, 'rollvskinrect');
RollLeftOffset := IniFile.ReadInteger(IDName, 'rollleftoffset', 0);
RollRightOffset := IniFile.ReadInteger(IDName, 'rollrightoffset', 0);
RollTopOffset := IniFile.ReadInteger(IDName, 'rolltopoffset', 0);
RollBottomOffset := IniFile.ReadInteger(IDName, 'rollbottomoffset', 0);
RollVCaptionRect := ReadRect(IniFile, IDName, 'rollvcaptionrect');
RollHCaptionRect := ReadRect(IniFile, IDName, 'rollhcaptionrect');
//
CloseButtonRect := ReadRect(IniFile, IDName, 'closebuttonrect');
CloseButtonActiveRect := ReadRect(IniFile, IDName, 'closebuttonactiverect');
CloseButtonDownRect := ReadRect(IniFile, IDName, 'closebuttondownrect');
HRollButtonRect := ReadRect(IniFile, IDName, 'hrollbuttonrect');
HRollButtonActiveRect := ReadRect(IniFile, IDName, 'hrollbuttonactiverect');
HRollButtonDownRect := ReadRect(IniFile, IDName, 'hrollbuttondownrect');
HRestoreButtonRect := ReadRect(IniFile, IDName, 'hrestorebuttonrect');
HRestoreButtonActiveRect := ReadRect(IniFile, IDName, 'hrestorebuttonactiverect');
HRestoreButtonDownRect := ReadRect(IniFile, IDName, 'hrestorebuttondownrect');
VRollButtonRect := ReadRect(IniFile, IDName, 'vrollbuttonrect');
VRollButtonActiveRect := ReadRect(IniFile, IDName, 'vrollbuttonactiverect');
VRollButtonDownRect := ReadRect(IniFile, IDName, 'vrollbuttondownrect');
VRestoreButtonRect := ReadRect(IniFile, IDName, 'vrestorebuttonrect');
VRestoreButtonActiveRect := ReadRect(IniFile, IDName, 'vrestorebuttonactiverect');
VRestoreButtonDownRect := ReadRect(IniFile, IDName, 'vrestorebuttondownrect');
//
CaptionRect := ReadRect(IniFile, IDName, 'captionrect');
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 TbsDataSkinExPanelControl.SaveToFile(IniFile: TCustomIniFile);
begin
inherited;
WriteRect(IniFile, IDName, 'rollhskinrect', RollHSkinRect);
WriteRect(IniFile, IDName, 'rollvskinrect', RollVSkinRect);
IniFile.WriteInteger(IDName, 'rollleftoffset', RollLeftOffset);
IniFile.WriteInteger(IDName, 'rollrightoffset', RollRightOffset);
IniFile.WriteInteger(IDName, 'rolltopoffset', RollTopOffset);
IniFile.WriteInteger(IDName, 'rollbottomoffset', RollBottomOffset);
WriteRect(IniFile, IDName, 'rollvcaptionrect', RollVCaptionRect);
WriteRect(IniFile, IDName, 'rollhcaptionrect', RollHCaptionRect);
//
WriteRect(IniFile, IDName, 'closebuttonrect', CloseButtonRect);
WriteRect(IniFile, IDName, 'closebuttonactiverect', CloseButtonActiveRect);
WriteRect(IniFile, IDName, 'closebuttondownrect', CloseButtonDownRect);
WriteRect(IniFile, IDName, 'hrollbuttonrect', HRollButtonRect);
WriteRect(IniFile, IDName, 'hrollbuttonactiverect', HRollButtonActiveRect);
WriteRect(IniFile, IDName, 'hrollbuttondownrect', HRollButtonDownRect);
WriteRect(IniFile, IDName, 'hrestorebuttonrect', HRestoreButtonRect);
WriteRect(IniFile, IDName, 'hrestorebuttonactiverect', HRestoreButtonActiveRect);
WriteRect(IniFile, IDName, 'hrestorebuttondownrect', HRestoreButtonDownRect);
WriteRect(IniFile, IDName, 'vrollbuttonrect', VRollButtonRect);
WriteRect(IniFile, IDName, 'vrollbuttonactiverect', VRollButtonActiveRect);
WriteRect(IniFile, IDName, 'vrollbuttondownrect', VRollButtonDownRect);
WriteRect(IniFile, IDName, 'vrestorebuttonrect', VRestoreButtonRect);
WriteRect(IniFile, IDName, 'vrestorebuttonactiverect', VRestoreButtonActiveRect);
WriteRect(IniFile, IDName, 'vrestorebuttondownrect', VRestoreButtonDownRect);
//
WriteRect(IniFile, IDName, 'captionrect', CaptionRect);
IniFile.WriteString(IDName, 'fontname', FontName);
IniFile.WriteInteger(IDName, 'fontheight', FontHeight);
WriteFontStyles(IniFile, IDName, 'fontstyle', FontStyle);
IniFile.WriteInteger(IDName, 'fontcolor', FontColor);
end;
constructor TbsDataSkinPanelControl.Create;
begin
inherited;
CaptionRect := NullRect;
FontName := 'Arial';
FontStyle := [];
FontHeight := 12;
F
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -