?? scurrencyedit.pas
字號:
unit sCurrencyEdit;
{$I sDefs.inc}
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, sUtils, sStyleUtil, sCurrEdit, ComCtrls,
ToolWin, ExtCtrls, sConst, sStyleEdits;
Type
TsCurrencyEdit = class(TsCustomNumEdit)
private
{ Private declarations }
protected
{ Protected declarations }
public
constructor Create(AOwner:TComponent); override;
{ Public declarations }
published
property Alignment;
property AutoSelect;
property AutoSize;
property BeepOnError;
property CheckOnExit;
property DecimalPlaces;
property DisplayFormat;
property DragCursor;
property DragMode;
property HideSelection;
property ImeMode;
property ImeName;
property MaxValue;
property MinValue;
property ParentShowHint;
property PopupMenu;
property ShowHint;
property TabOrder;
property TabStop;
property Text;
property Value;
property Visible;
property OnChange;
property OnClick;
property OnDblClick;
property OnDragDrop;
property OnDragOver;
property OnEndDrag;
property OnEnter;
property OnExit;
property OnKeyDown;
property OnKeyPress;
property OnKeyUp;
property OnMouseDown;
property OnMouseMove;
property OnMouseUp;
property OnContextPopup;
property HelpContext;
property OEMConvert;
property ReadOnly;
property Enabled;
property Font;
property Hint;
property MaxLength;
property ParentFont;
property CharCase;
property sStyle:TsStyle read FsStyle write FsStyle;
property Anchors;
property BiDiMode;
property Constraints;
property DragKind;
property ParentBiDiMode;
property OnEndDock;
property OnStartDock;
property OnStartDrag;
{ Published declarations }
end;
implementation
constructor TsCurrencyEdit.Create(AOwner:TComponent);
begin
inherited Create(AOwner);
sStyle.COC := COC_TsCurrencyEdit;
Width := 80;
ControlState := ControlState + [csCreating];
try
Button.Width := 0;
finally
ControlState := ControlState - [csCreating];
end;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -