📄 skindata.pas
字号:
{*******************************************************************}
{ }
{ Almediadev Visual Component Library }
{ DynamicSkinForm }
{ Version 9.15 }
{ }
{ Copyright (c) 2000-2008 Almediadev }
{ ALL RIGHTS RESERVED }
{ }
{ Home: http://www.almdev.com }
{ Support: support@almdev.com }
{ }
{*******************************************************************}
unit SkinData;
{$P+,S-,W-,R-}
{$WARNINGS OFF}
{$HINTS OFF}
interface
uses Windows, Messages, SysUtils, Classes, Graphics, Controls, SPUtils, Forms,
IniFiles, Dialogs;
type
TStdCommand = (cmClose, cmMaximize, cmMinimize, cmSysMenu, cmDefault, cmRollUp,
cmMinimizeToTray);
TMorphKind = (mkDefault, mkGradient, mkLeftGradient, mkRightGradient,
mkLeftSlide, mkRightSlide, mkPush);
TFramesPlacement = (fpHorizontal, fpVertical);
TRegulatorKind = (rkRound, rkHorizontal, rkVertical);
TspInActiveEffect = (ieBrightness, ieDarkness, ieGrayScale,
ieNoise, ieSplitBlur, ieInvert);
TspDataSkinControl = class(TObject)
public
IDName: String;
PictureIndex: Integer;
MaskPictureIndex: Integer;
SkinRect: TRect;
CursorIndex: Integer;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); virtual;
procedure SaveToFile(IniFile: TCustomIniFile); virtual;
end;
TspDataSkinBevel = class(TspDataSkinControl)
public
LightColor: TColor;
DarkColor: TColor;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinSlider = class(TspDataSkinControl)
public
HRulerRect: TRect;
HThumbRect: TRect;
VRulerRect: TRect;
VThumbRect: TRect;
EdgeSize: Integer;
BGColor: TColor;
PointsColor: TColor;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinTreeView = class(TspDataSkinControl)
public
FontName: String;
FontStyle: TFontStyles;
FontHeight: Integer;
FontColor: TColor;
BGColor: TColor;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinRichEdit = class(TspDataSkinControl)
public
FontName: String;
FontStyle: TFontStyles;
FontHeight: Integer;
FontColor: TColor;
BGColor: TColor;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinListView = class(TspDataSkinControl)
public
FontName: String;
FontStyle: TFontStyles;
FontHeight: Integer;
FontColor: TColor;
BGColor: TColor;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinMainMenuBar = class(TspDataSkinControl)
public
ItemsRect: TRect;
MenuBarItem: String;
CloseButton: String;
MaxButton: String;
MinButton: String;
SysMenuButton: String;
TrackMarkColor, TrackMarkActiveColor: Integer;
StretchEffect: Boolean;
ItemTransparent: Boolean;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinTabControl = class(TspDataSkinControl)
public
TabRect, ActiveTabRect, FocusTabRect, MouseInTabRect: TRect;
ClRect: TRect;
TabsBGRect: TRect;
LTPoint, RTPoint, LBPoint, RBPoint: TPoint;
TabLeftOffset, TabRightOffset: Integer;
FontName: String;
FontStyle: TFontStyles;
FontHeight: Integer;
FontColor, ActiveFontColor, FocusFontColor, MouseInFontColor: TColor;
UpDown: String;
BGPictureIndex: Integer;
TabStretchEffect: Boolean;
LeftStretch, TopStretch, RightStretch, BottomStretch: Boolean;
ShowFocus: Boolean;
FocusOffsetX, FocusOffsetY: Integer;
StretchEffect: Boolean;
StretchType: TspStretchType;
CloseButtonRect, CloseButtonActiveRect, CloseButtonDownRect: TRect;
ButtonTransparent: Boolean;
ButtonTransparentColor: TColor;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinGridControl = class(TspDataSkinControl)
public
FixedCellRect, SelectCellRect, FocusCellRect: TRect;
//
FixedCellLeftOffset, FixedCellRightOffset: Integer;
FixedCellTextRect: TRect;
//
CellLeftOffset, CellRightOffset: Integer;
CellTextRect: TRect;
//
LinesColor, BGColor: TColor;
BGPictureIndex: Integer;
FontName: String;
FontStyle: TFontStyles;
FontHeight: Integer;
FontColor, SelectFontColor, FocusFontColor: TColor;
FixedFontName: String;
FixedFontStyle: TFontStyles;
FixedFontHeight: Integer;
FixedFontColor: TColor;
FixedCellStretchEffect: Boolean;
CellStretchEffect: Boolean;
ShowFocus: Boolean;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinFrameControl = class(TspDataSkinControl)
public
FramesCount: Integer;
FramesPlacement: TFramesPlacement;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinAnimateControl = class(TspDataSkinFrameControl);
TspDataSkinSwitchControl = class(TspDataSkinFrameControl);
TspDataSkinFrameGauge = class(TspDataSkinFrameControl);
TspDataSkinFrameRegulator = class(TspDataSkinFrameControl)
public
Kind: TRegulatorKind;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinCustomControl = class(TspDataSkinControl)
public
LTPoint, RTPoint, LBPoint, RBPoint: TPoint;
ClRect: TRect;
StretchEffect: Boolean;
LeftStretch, TopStretch, RightStretch, BottomStretch: Boolean;
StretchType: TspStretchType;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinControlBar = class(TspDataSkinCustomControl)
public
ItemRect: TRect;
BGPictureIndex: Integer;
HGripRect, VGripRect: TRect;
GripOffset1, GripOffset2: Integer;
ItemStretchEffect: Boolean;
ItemOffset1, ItemOffset2: Integer;
ItemTransparent: Boolean;
ItemTransparentColor: TColor;
GripTransparent: Boolean;
GripTransparentColor: TColor;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinUpDownControl = class(TspDataSkinCustomControl)
public
UpButtonRect, ActiveUpButtonRect, DownUpButtonRect: TRect;
DownButtonRect, ActiveDownButtonRect, DownDownButtonRect: TRect;
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinComboBox = class(TspDataSkinCustomControl)
public
SItemRect, ActiveItemRect, FocusItemRect: TRect;
ItemLeftOffset, ItemRightOffset: Integer;
ItemTextRect: TRect;
FontName: String;
FontStyle: TFontStyles;
FontHeight: Integer;
FontColor, FocusFontColor, ActiveFontColor: TColor;
ButtonRect,
ActiveButtonRect,
DownButtonRect,
UnEnabledButtonRect: TRect;
ItemStretchEffect: Boolean;
FocusItemStretchEffect: Boolean;
//
ActiveSkinRect: TRect;
//
ShowFocus: Boolean;
ListBoxName: String;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinListBox = class(TspDataSkinCustomControl)
public
//
SItemRect, ActiveItemRect, FocusItemRect: TRect;
ItemLeftOffset, ItemRightOffset: Integer;
ItemTextRect: TRect;
FontName: String;
FontStyle: TFontStyles;
FontHeight: Integer;
FontColor, ActiveFontColor, FocusFontColor: TColor;
//
CaptionRect: TRect;
CaptionFontName: String;
CaptionFontStyle: TFontStyles;
CaptionFontHeight: Integer;
CaptionFontColor: TColor;
//
UpButtonRect, ActiveUpButtonRect, DownUpButtonRect: TRect;
DownButtonRect, ActiveDownButtonRect, DownDownButtonRect: TRect;
CheckButtonRect, ActiveCheckButtonRect, DownCheckButtonRect: TRect;
//
HScrollBarName: String;
VScrollBarName: String;
BothScrollBarName: String;
ShowFocus: Boolean;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinCheckListBox = class(TspDataSkinListBox)
public
UnCheckImageRect, CheckImageRect: TRect;
ItemCheckRect: TRect;
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinScrollBarControl = class(TspDataSkinCustomControl)
public
TrackArea: TRect;
UpButtonRect, ActiveUpButtonRect, DownUpButtonRect: TRect;
DownButtonRect, ActiveDownButtonRect, DownDownButtonRect: TRect;
ThumbRect, ActiveThumbRect, DownThumbRect: TRect;
ThumbOffset1, ThumbOffset2: Integer;
GlyphRect, ActiveGlyphRect, DownGlyphRect: TRect;
GlyphTransparent: Boolean;
GlyphTransparentColor: TColor;
ThumbTransparent: Boolean;
ThumbTransparentColor: TColor;
ThumbStretchEffect: Boolean;
ThumbMinSize: Integer;
ThumbMinPageSize: Integer;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinSpinEditControl = class(TspDataSkinCustomControl)
public
ActiveSkinRect: TRect;
FontName: String;
FontStyle: TFontStyles;
FontHeight: Integer;
FontColor, ActiveFontColor, DisabledFontColor: TColor;
UpButtonRect, ActiveUpButtonRect, DownUpButtonRect: TRect;
DownButtonRect, ActiveDownButtonRect, DownDownButtonRect: TRect;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinEditControl = class(TspDataSkinCustomControl)
public
ActiveSkinRect: TRect;
FontName: String;
FontStyle: TFontStyles;
FontHeight: Integer;
FontColor, DisabledFontColor: TColor;
ActiveFontColor: TColor;
ButtonRect: TRect;
ActiveButtonRect: TRect;
DownButtonRect: TRect;
UnEnabledButtonRect: TRect;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinMemoControl = class(TspDataSkinEditControl)
public
BGColor: TColor;
ActiveBGColor: TColor;
constructor Create(AIDName: String);
procedure LoadFromFile(IniFile: TCustomIniFile); override;
procedure SaveToFile(IniFile: TCustomIniFile); override;
end;
TspDataSkinStdLabelControl = class(TspDataSkinControl)
public
FontName: String;
FontStyle: TFontStyles;
FontHeight: Integer;
FontColor: TColor;
ActiveFontColor: TColor;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -