📄 bsskinctrls.pas
字号:
procedure SetRange(AMin, AMax, APosition, APageSize: Integer);
published
property Enabled;
property Both: Boolean read FBoth write SetBoth;
property BothMarkerWidth: Integer
read FBothMarkerWidth write SetBothMarkerWidth;
property BothSkinDataName: String
read FBothSkinDataName write FBothSkinDataName;
property TabStop;
property TabOrder;
property CanFocused: Boolean read FCanFocused write SetCanFocused;
property Align;
property Kind: TScrollBarKind read FKind write SetKind;
property PageSize: Integer read FPageSize write SetPageSize;
property Min: Integer read FMin write SetMin;
property Max: Integer read FMax write SetMax;
property Position: Integer read FPosition write SetPosition;
property SmallChange: Integer read FSmallChange write SetSmallChange;
property LargeChange: Integer read FLargeChange write SetLargeChange;
property OnChange: TNotifyEvent read FOnChange write FOnChange;
property OnLastChange: TNotifyEvent read FOnLastChange write FOnLastChange;
property OnUpButtonClick: TNotifyEvent read FOnUpButtonClick write FOnUpButtonClick;
property OnDownButtonClick: TNotifyEvent read FOnDownButtonClick write FOnDownButtonClick;
property OnPageUp: TNotifyEvent read FOnPageUp write FOnPageUp;
property OnPageDown: TNotifyEvent read FOnPageDown write FOnPageDown;
property OnKeyDown;
property OnKeyPress;
property OnKeyUp;
property OnMouseDown;
property OnMouseMove;
property OnMouseUp;
property OnResize;
end;
TbsSkinControlBar = class(TCustomControlBar)
protected
FSkinBevel: Boolean;
FIndex: Integer;
FSD: TbsSkinData;
FSkinDataName: String;
procedure PaintNCSkin;
procedure SetSkinBevel(Value: Boolean);
procedure SetSkinData(Value: TbsSkinData);
procedure WMEraseBkgnd(var Message: TWMEraseBkgnd); message WM_ERASEBKGND;
procedure CreateParams(var Params: TCreateParams); override;
procedure WMNCCALCSIZE(var Message: TWMNCCalcSize); message WM_NCCALCSIZE;
procedure WMSIZE(var Message: TWMSIZE); message WM_SIZE;
procedure WMNCPAINT(var Message: TMessage); message WM_NCPAINT;
procedure Notification(AComponent: TComponent;
Operation: TOperation); override;
procedure PaintControlFrame(Canvas: TCanvas; AControl: TControl;
var ARect: TRect); override;
public
LTPt, RTPt, LBPt, RBPt: TPoint;
SkinRect, ClRect, NewClRect, ItemRect: TRect;
NewLTPoint, NewRTPoint, NewLBPoint, NewRBPoint: TPoint;
FSkinPicture: TBitMap;
BGPictureIndex: Integer;
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure Paint; override;
property Canvas;
procedure GetSkinData;
procedure ChangeSkinData;
published
property SkinDataName: String read FSkinDataName write FSkinDataName;
property SkinData: TbsSkinData read FSD write SetSkinData;
property SkinBevel: Boolean read FSkinBevel write SetSkinBevel;
property Align;
property Anchors;
property AutoDrag;
property AutoSize;
property BevelEdges;
property BevelInner;
property BevelOuter;
property BevelKind;
property BevelWidth;
property BorderWidth;
property Color;
property Constraints;
property DockSite;
property DragCursor;
property DragKind;
property DragMode;
property Enabled;
property ParentColor;
property ParentCtl3D;
property ParentFont;
property ParentShowHint;
property Picture;
property PopupMenu;
property RowSize;
property RowSnap;
property ShowHint;
property TabOrder;
property TabStop;
property Visible;
property OnBandDrag;
property OnBandInfo;
property OnBandMove;
property OnBandPaint;
property OnCanResize;
property OnClick;
property OnConstrainedResize;
property OnDockDrop;
property OnDockOver;
property OnDblClick;
property OnDragDrop;
property OnDragOver;
property OnEndDock;
property OnEndDrag;
property OnEnter;
property OnExit;
property OnGetSiteInfo;
property OnMouseDown;
property OnMouseMove;
property OnMouseUp;
property OnPaint;
property OnResize;
property OnStartDock;
property OnStartDrag;
property OnUnDock;
end;
TbsSkinSplitter = class(TSPlitter)
protected
FDefaultSize: Integer;
FIndex: Integer;
FSD: TbsSkinData;
FSkinDataName: String;
procedure SetSkinData(Value: TbsSkinData);
procedure Notification(AComponent: TComponent;
Operation: TOperation); override;
public
LTPt, RTPt, LBPt: TPoint;
SkinRect: TRect;
FSkinPicture: TBitMap;
StretchEffect: Boolean;
procedure GetSkinData;
procedure ChangeSkinData;
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure Paint; override;
published
property DefaultSize: Integer read FDefaultSize write FDefaultSize;
property SkinDataName: String read FSkinDataName write FSkinDataName;
property SkinData: TbsSkinData read FSD write SetSkinData;
property OnClick;
property OnDblClick;
end;
TbsSkinCustomRadioGroup = class(TbsSkinGroupBox)
private
FImages: TCustomImageList;
FButtonSkinDataName: String;
FButtons: TList;
FItems: TStrings;
FItemIndex: Integer;
FColumns: Integer;
FReading: Boolean;
FUpdating: Boolean;
FButtonDefaultFont: TFont;
procedure SetImages(Value: TCustomImageList);
procedure SetButtonDefaultFont(Value: TFont);
procedure SetButtonSkinDataName(Value: String);
procedure ArrangeButtons;
procedure ButtonClick(Sender: TObject);
procedure ItemsChange(Sender: TObject);
procedure SetButtonCount(Value: Integer);
procedure SetColumns(Value: Integer);
procedure SetItemIndex(Value: Integer);
procedure SetItems(Value: TStrings);
procedure UpdateButtons;
procedure CMEnabledChanged(var Message: TMessage); message CM_ENABLEDCHANGED;
procedure CMFontChanged(var Message: TMessage); message CM_FONTCHANGED;
procedure WMSize(var Message: TWMSize); message WM_SIZE;
protected
procedure SetSkinData(Value: TbsSkinData); override;
procedure Loaded; override;
procedure ReadState(Reader: TReader); override;
function CanModify: Boolean; virtual;
procedure GetChildren(Proc: TGetChildProc; Root: TComponent); override;
property Columns: Integer read FColumns write SetColumns default 1;
property ItemIndex: Integer read FItemIndex write SetItemIndex default -1;
property Items: TStrings read FItems write SetItems;
procedure Notification(AComponent: TComponent;
Operation: TOperation); override;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure ChangeSkinData; override;
procedure FlipChildren(AllLevels: Boolean); override;
property ButtonDefaultFont: TFont
read FButtonDefaultFont write SetButtonDefaultFont;
property ButtonSkinDataName: String
read FButtonSkinDataName write SetButtonSkinDataName;
property Images: TCustomImageList read FImages write SetImages;
end;
TbsSkinCustomCheckGroup = class(TbsSkinGroupBox)
private
FImages: TCustomImageList;
FItemIndex: Integer;
FButtonSkinDataName: String;
FButtons: TList;
FItems: TStrings;
FColumns: Integer;
FReading: Boolean;
FUpdating: Boolean;
FButtonDefaultFont: TFont;
procedure SetButtonDefaultFont(Value: TFont);
procedure SetButtonSkinDataName(Value: String);
procedure ArrangeButtons;
procedure ButtonClick(Sender: TObject);
procedure ItemsChange(Sender: TObject);
procedure SetButtonCount(Value: Integer);
procedure SetColumns(Value: Integer);
procedure SetItems(Value: TStrings);
procedure CMEnabledChanged(var Message: TMessage); message CM_ENABLEDCHANGED;
procedure CMFontChanged(var Message: TMessage); message CM_FONTCHANGED;
procedure WMSize(var Message: TWMSize); message WM_SIZE;
procedure SetImages(Value: TCustomImageList);
protected
procedure UpdateButtons;
procedure SetSkinData(Value: TbsSkinData); override;
procedure Loaded; override;
procedure ReadState(Reader: TReader); override;
function CanModify: Boolean; virtual;
procedure GetChildren(Proc: TGetChildProc; Root: TComponent); override;
function GetCheckedStatus(Index: Integer): Boolean;
procedure SetCheckedStatus(Index: Integer; Value: Boolean);
property Columns: Integer read FColumns write SetColumns default 1;
property Items: TStrings read FItems write SetItems;
procedure Notification(AComponent: TComponent;
Operation: TOperation); override;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure ChangeSkinData; override;
procedure FlipChildren(AllLevels: Boolean); override;
property ButtonDefaultFont: TFont
read FButtonDefaultFont write SetButtonDefaultFont;
property ButtonSkinDataName: String
read FButtonSkinDataName write SetButtonSkinDataName;
property ItemChecked[Index: Integer]: Boolean read GetCheckedStatus write SetCheckedStatus;
property ItemIndex: Integer read FItemIndex;
property Images: TCustomImageList read FImages write SetImages;
end;
TbsSkinCheckGroup = class(TbsSkinCustomCheckGroup)
published
property Images;
property ButtonSkinDataName;
property ButtonDefaultFont;
property Align;
property Anchors;
property BiDiMode;
property Caption;
property Color;
property Columns;
property Ctl3D;
property DragCursor;
property DragKind;
property DragMode;
property Enabled;
property Font;
property Items;
property ItemIndex;
property Constraints;
property ParentBiDiMode;
property ParentColor;
property ParentCtl3D;
property ParentFont;
property ParentShowHint;
property PopupMenu;
property ShowHint;
property TabOrder;
property TabStop;
property Visible;
property OnClick;
property OnContextPopup;
property OnDragDrop;
property OnDragOver;
property OnEndDock;
property OnEndDrag;
property OnEnter;
property OnExit;
property OnStartDock;
property OnStartDrag;
end;
TbsSkinRadioGroup = class(TbsSkinCustomRadioGroup)
published
property Images;
property ButtonSkinDataName;
property ButtonDefaultFont;
property Align;
property Anchors;
property BiDiMode;
property Caption;
property Color;
property Columns;
property Ctl3D;
property DragCursor;
property DragKind;
property DragMode;
property Enabled;
property Font;
property ItemIndex;
property Items;
property Constraints;
property ParentBiDiMode;
property ParentColor;
property ParentCtl3D;
property ParentFont;
property ParentShowHint;
property PopupMenu;
property ShowHint;
property TabOrder;
property TabStop;
property Visible;
property OnClick;
property OnContextPopup;
property OnDragDrop;
property OnDragOver;
property OnEndDock;
property OnEndDrag;
property OnEnter;
property OnExit;
property OnStartDock;
property OnStartDrag;
end;
TbsSkinCustomTreeView = class(TCustomTreeView)
protected
FInCheckScrollBars: Boolean;
FSD: TbsSkinData;
FSkinDataName: String;
FIndex: Integer;
FDefaultFont: TFont;
FUseSkinFont: Boolean;
FDefaultColor: TColor;
FVScrollBar: TbsSkinScrollBar;
FHScrollBar: TbsSkinScrollBar;
procedure Notification(AComponent: TComponent;
Ope
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -