📄 advspin.hpp
字号:
Graphics::TColor FNormalColor;
bool FUSDates;
bool FSpinFlat;
bool FSpinTransparent;
bool FTransparent;
bool FAutoFocus;
int FIncrementHours;
int FIncrementMinutes;
bool FShowSeconds;
bool FSigned;
bool FLabelAlwaysEnabled;
TEditAlign FEditAlign;
Graphics::TColor FFocusBorderColor;
Graphics::TColor FFocusColor;
Classes::TNotifyEvent FOnUpClick;
Classes::TNotifyEvent FOnDownClick;
int __fastcall GetMinHeight(void);
int __fastcall GetValue(void);
int __fastcall CheckValue(int NewValue);
void __fastcall SetValue(int NewValue);
double __fastcall GetFloatValue(void);
double __fastcall CheckFloatValue(double NewValue);
System::TDateTime __fastcall CheckDateValue(System::TDateTime NewValue);
void __fastcall SetFloatValue(double NewValue);
void __fastcall SetEditRect(void);
void __fastcall SetEditorEnabled(bool NewValue);
void __fastcall SetDirection(const TSpinDirection Value);
void __fastcall SetPrecision(const int Value);
void __fastcall SetSpinType(const TAdvSpinType Value);
System::TDateTime __fastcall GetTimeValue(void);
void __fastcall SetTimeValue(const System::TDateTime Value);
System::TDateTime __fastcall GetDateValue(void);
void __fastcall SetDateValue(const System::TDateTime Value);
int __fastcall GetHexValue(void);
void __fastcall SetHexValue(const int Value);
void __fastcall SetSpinFlat(const bool Value);
void __fastcall SetSpinTransparent(const bool value);
HIDESBASE MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
MESSAGE void __fastcall CNCtlColorEdit(Messages::TWMCtlColor &Message);
MESSAGE void __fastcall CNCtlColorStatic(Messages::TWMCtlColor &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMEraseBkGnd(Messages::TWMEraseBkgnd &Message);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Msg);
HIDESBASE MESSAGE void __fastcall CMWantSpecialKey(Messages::TWMKey &Msg);
HIDESBASE MESSAGE void __fastcall WMPaste(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMCut(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMChar(Messages::TWMKey &Msg);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Msg);
HIDESBASE MESSAGE void __fastcall WMNCPaint(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMKeyDown(Messages::TWMKey &Msg);
HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
AnsiString __fastcall GetLabelCaption();
void __fastcall SetLabelCaption(const AnsiString Value);
void __fastcall SetLabelMargin(const int Value);
void __fastcall SetLabelPosition(const TLabelPosition Value);
void __fastcall SetLabelTransparent(const bool Value);
bool __fastcall GetVisible(void);
HIDESBASE void __fastcall SetVisible(const bool Value);
void __fastcall LabelFontChange(System::TObject* Sender);
void __fastcall SetLabelFont(const Graphics::TFont* Value);
void __fastcall SetTransparent(const bool Value);
void __fastcall SetFlat(const bool Value);
void __fastcall SetFlatRect(const bool Value);
void __fastcall SetFlatLineColor(const Graphics::TColor Value);
void __fastcall SetShowSeconds(const bool Value);
void __fastcall SetLabelAlwaysEnabled(const bool Value);
bool __fastcall GetEnabledEx(void);
void __fastcall SetEnabledEx(const bool Value);
void __fastcall SetEditAign(const TEditAlign Value);
AnsiString __fastcall GetVersion();
void __fastcall SetVersion(const AnsiString Value);
void __fastcall DrawBorder(void);
void __fastcall DrawControlBorder(HDC DC);
protected:
virtual int __fastcall GetVersionNr(void);
virtual bool __fastcall IsValidChar(char &Key);
virtual void __fastcall UpClick(System::TObject* Sender);
virtual void __fastcall DownClick(System::TObject* Sender);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
DYNAMIC void __fastcall KeyPress(char &Key);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall Loaded(void);
void __fastcall UpdateLabel(void);
Stdctrls::TLabel* __fastcall CreateLabel(void);
void __fastcall PaintEdit(void);
public:
DYNAMIC void __fastcall GetChildren(Classes::TGetChildProc Proc, Classes::TComponent* Root);
__fastcall virtual TAdvSpinEdit(Classes::TComponent* AOwner);
__fastcall virtual ~TAdvSpinEdit(void);
__property TAdvSpinButton* Button = {read=FButton};
void __fastcall IncSmart(void);
void __fastcall DecSmart(void);
virtual void __fastcall SetBounds(int ALeft, int ATop, int AWidth, int AHeight);
void __fastcall Init(void);
__property Stdctrls::TLabel* SpinLabel = {read=FLabel};
__published:
__property bool AutoFocus = {read=FAutoFocus, write=FAutoFocus, default=0};
__property TSpinDirection Direction = {read=FDirection, write=SetDirection, default=0};
__property bool ReturnIsTab = {read=FReturnIsTab, write=FReturnIsTab, default=0};
__property int Precision = {read=FPrecision, write=SetPrecision, default=0};
__property TAdvSpinType SpinType = {read=FSpinType, write=SetSpinType, default=0};
__property int Value = {read=GetValue, write=SetValue, nodefault};
__property double FloatValue = {read=GetFloatValue, write=SetFloatValue};
__property System::TDateTime TimeValue = {read=GetTimeValue, write=SetTimeValue};
__property System::TDateTime DateValue = {read=GetDateValue, write=SetDateValue};
__property int HexValue = {read=GetHexValue, write=SetHexValue, nodefault};
__property bool Flat = {read=FFlat, write=SetFlat, default=0};
__property Graphics::TColor FlatLineColor = {read=FFlatLineColor, write=SetFlatLineColor, default=0};
__property bool SpinFlat = {read=FSpinFlat, write=SetSpinFlat, default=0};
__property bool SpinTransparent = {read=FSpinTransparent, write=SetSpinTransparent, default=0};
__property Anchors = {default=3};
__property Constraints ;
__property AutoSelect = {default=1};
__property AutoSize = {default=1};
__property BorderStyle = {default=1};
__property Color = {default=-16777211};
__property Ctl3D ;
__property DragCursor = {default=-12};
__property DragMode = {default=0};
__property TEditAlign EditAlign = {read=FEditAlign, write=SetEditAign, default=0};
__property bool EditorEnabled = {read=FEditorEnabled, write=SetEditorEnabled, default=1};
__property bool Enabled = {read=GetEnabledEx, write=SetEnabledEx, nodefault};
__property Graphics::TColor FocusBorderColor = {read=FFocusBorderColor, write=FFocusBorderColor, default=536870911};
__property Graphics::TColor FocusColor = {read=FFocusColor, write=FFocusColor, default=-16777211};
__property Font ;
__property int Increment = {read=FIncrement, write=FIncrement, default=1};
__property double IncrementFloat = {read=FIncrementFloat, write=FIncrementFloat};
__property int IncrementPage = {read=FIncrementPage, write=FIncrementPage, default=10};
__property double IncrementFloatPage = {read=FIncrementFloatPage, write=FIncrementFloatPage};
__property bool IncrementSmart = {read=FIncrementSmart, write=FIncrementSmart, default=0};
__property int IncrementMinutes = {read=FIncrementMinutes, write=FIncrementMinutes, default=1};
__property int IncrementHours = {read=FIncrementHours, write=FIncrementHours, default=1};
__property bool LabelAlwaysEnabled = {read=FLabelAlwaysEnabled, write=SetLabelAlwaysEnabled, default=0};
__property AnsiString LabelCaption = {read=GetLabelCaption, write=SetLabelCaption};
__property TLabelPosition LabelPosition = {read=FLabelPosition, write=SetLabelPosition, default=0};
__property int LabelMargin = {read=FLabelMargin, write=SetLabelMargin, default=4};
__property bool LabelTransparent = {read=FLabelTransparent, write=SetLabelTransparent, default=0};
__property Graphics::TFont* LabelFont = {read=FLabelFont, write=SetLabelFont};
__property MaxLength = {default=0};
__property int MaxValue = {read=FMaxValue, write=FMaxValue, default=0};
__property int MinValue = {read=FMinValue, write=FMinValue, default=0};
__property double MinFloatValue = {read=FMinFloatValue, write=FMinFloatValue};
__property double MaxFloatValue = {read=FMaxFloatValue, write=FMaxFloatValue};
__property System::TDateTime MinDateValue = {read=FMinDateValue, write=FMinDateValue};
__property System::TDateTime MaxDateValue = {read=FMaxDateValue, write=FMaxDateValue};
__property ParentColor = {default=0};
__property ParentCtl3D = {default=1};
__property ParentFont = {default=1};
__property ParentShowHint = {default=1};
__property PopupMenu ;
__property ReadOnly = {default=0};
__property bool Signed = {read=FSigned, write=FSigned, default=0};
__property ShowHint ;
__property bool ShowSeconds = {read=FShowSeconds, write=SetShowSeconds, default=1};
__property TabOrder = {default=-1};
__property TabStop = {default=1};
__property bool Transparent = {read=FTransparent, write=SetTransparent, default=0};
__property bool Visible = {read=GetVisible, write=SetVisible, nodefault};
__property AnsiString Version = {read=GetVersion, write=SetVersion};
__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 OnStartDrag ;
__property Classes::TNotifyEvent OnUpClick = {read=FOnUpClick, write=FOnUpClick};
__property Classes::TNotifyEvent OnDownClick = {read=FOnDownClick, write=FOnDownClick};
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TAdvSpinEdit(HWND ParentWindow) : Mask::TCustomMaskEdit(ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TAdvMaskSpinEdit;
class PASCALIMPLEMENTATION TAdvMaskSpinEdit : public TAdvSpinEdit
{
typedef TAdvSpinEdit inherited;
__published:
__property EditMask ;
public:
#pragma option push -w-inl
/* TAdvSpinEdit.Create */ inline __fastcall virtual TAdvMaskSpinEdit(Classes::TComponent* AOwner) : TAdvSpinEdit(AOwner) { }
#pragma option pop
#pragma option push -w-inl
/* TAdvSpinEdit.Destroy */ inline __fastcall virtual ~TAdvMaskSpinEdit(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TAdvMaskSpinEdit(HWND ParentWindow) : TAdvSpinEdit(ParentWindow) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
static const Shortint MAJ_VER = 0x1;
static const Shortint MIN_VER = 0x4;
static const Shortint REL_VER = 0x1;
static const Shortint BLD_VER = 0x0;
} /* namespace Advspin */
using namespace Advspin;
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // Advspin
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -