📄 aaspin.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'AASpin.pas' rev: 6.00
#ifndef AASpinHPP
#define AASpinHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Buttons.hpp> // Pascal unit
#include <Menus.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <ExtCtrls.hpp> // Pascal unit
#include <StdCtrls.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Aaspin
{
//-- type declarations -------------------------------------------------------
typedef Buttons::TNumGlyphs TNumGlyphs;
class DELPHICLASS TSpinButton;
class DELPHICLASS TTimerSpeedButton;
#pragma option push -b-
enum AASpin__3 { tbFocusRect, tbAllowTimer };
#pragma option pop
typedef Set<AASpin__3, tbFocusRect, tbAllowTimer> TTimeBtnState;
class PASCALIMPLEMENTATION TTimerSpeedButton : public Buttons::TSpeedButton
{
typedef Buttons::TSpeedButton inherited;
private:
Extctrls::TTimer* FRepeatTimer;
TTimeBtnState FTimeBtnState;
void __fastcall TimerExpired(System::TObject* Sender);
protected:
virtual void __fastcall Paint(void);
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
public:
__fastcall virtual ~TTimerSpeedButton(void);
__property TTimeBtnState TimeBtnState = {read=FTimeBtnState, write=FTimeBtnState, nodefault};
public:
#pragma option push -w-inl
/* TSpeedButton.Create */ inline __fastcall virtual TTimerSpeedButton(Classes::TComponent* AOwner) : Buttons::TSpeedButton(AOwner) { }
#pragma option pop
};
class PASCALIMPLEMENTATION TSpinButton : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
TTimerSpeedButton* FUpButton;
TTimerSpeedButton* FDownButton;
TTimerSpeedButton* FFocusedButton;
Controls::TWinControl* FFocusControl;
Classes::TNotifyEvent FOnUpClick;
Classes::TNotifyEvent FOnDownClick;
TTimerSpeedButton* __fastcall CreateButton(void);
Graphics::TBitmap* __fastcall GetUpGlyph(void);
Graphics::TBitmap* __fastcall GetDownGlyph(void);
void __fastcall SetUpGlyph(Graphics::TBitmap* Value);
void __fastcall SetDownGlyph(Graphics::TBitmap* Value);
Buttons::TNumGlyphs __fastcall GetUpNumGlyphs(void);
Buttons::TNumGlyphs __fastcall GetDownNumGlyphs(void);
void __fastcall SetUpNumGlyphs(Buttons::TNumGlyphs Value);
void __fastcall SetDownNumGlyphs(Buttons::TNumGlyphs Value);
void __fastcall BtnClick(System::TObject* Sender);
void __fastcall BtnMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
void __fastcall SetFocusBtn(TTimerSpeedButton* Btn);
HIDESBASE void __fastcall AdjustSize(int &W, int &H);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
protected:
virtual void __fastcall Loaded(void);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
public:
__fastcall virtual TSpinButton(Classes::TComponent* AOwner);
virtual void __fastcall SetBounds(int ALeft, int ATop, int AWidth, int AHeight);
__published:
__property Align = {default=0};
__property Anchors = {default=3};
__property Constraints ;
__property Ctl3D ;
__property Graphics::TBitmap* DownGlyph = {read=GetDownGlyph, write=SetDownGlyph};
__property Buttons::TNumGlyphs DownNumGlyphs = {read=GetDownNumGlyphs, write=SetDownNumGlyphs, default=1};
__property DragCursor = {default=-12};
__property DragKind = {default=0};
__property DragMode = {default=0};
__property Enabled = {default=1};
__property Controls::TWinControl* FocusControl = {read=FFocusControl, write=FFocusControl};
__property ParentCtl3D = {default=1};
__property ParentShowHint = {default=1};
__property PopupMenu ;
__property ShowHint ;
__property TabOrder = {default=-1};
__property TabStop = {default=0};
__property Graphics::TBitmap* UpGlyph = {read=GetUpGlyph, write=SetUpGlyph};
__property Buttons::TNumGlyphs UpNumGlyphs = {read=GetUpNumGlyphs, write=SetUpNumGlyphs, default=1};
__property Visible = {default=1};
__property Classes::TNotifyEvent OnDownClick = {read=FOnDownClick, write=FOnDownClick};
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnStartDock ;
__property OnStartDrag ;
__property Classes::TNotifyEvent OnUpClick = {read=FOnUpClick, write=FOnUpClick};
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TSpinButton(HWND ParentWindow) : Controls::TWinControl(ParentWindow) { }
#pragma option pop
#pragma option push -w-inl
/* TWinControl.Destroy */ inline __fastcall virtual ~TSpinButton(void) { }
#pragma option pop
};
class DELPHICLASS TSpinEdit;
class PASCALIMPLEMENTATION TSpinEdit : public Stdctrls::TCustomEdit
{
typedef Stdctrls::TCustomEdit inherited;
private:
int FMinValue;
int FMaxValue;
int FIncrement;
TSpinButton* FButton;
bool FEditorEnabled;
int __fastcall GetMinHeight(void);
int __fastcall GetValue(void);
int __fastcall CheckValue(int NewValue);
void __fastcall SetValue(int NewValue);
void __fastcall SetEditRect(void);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
MESSAGE void __fastcall WMPaste(Messages::TWMNoParams &Message);
MESSAGE void __fastcall WMCut(Messages::TWMNoParams &Message);
protected:
DYNAMIC void __fastcall GetChildren(Classes::TGetChildProc Proc, Classes::TComponent* Root);
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);
public:
__fastcall virtual TSpinEdit(Classes::TComponent* AOwner);
__fastcall virtual ~TSpinEdit(void);
__property TSpinButton* Button = {read=FButton};
__published:
__property Anchors = {default=3};
__property AutoSelect = {default=1};
__property AutoSize = {default=1};
__property Color = {default=-2147483643};
__property Constraints ;
__property Ctl3D ;
__property DragCursor = {default=-12};
__property DragMode = {default=0};
__property bool EditorEnabled = {read=FEditorEnabled, write=FEditorEnabled, default=1};
__property Enabled = {default=1};
__property Font ;
__property int Increment = {read=FIncrement, write=FIncrement, default=1};
__property MaxLength = {default=0};
__property int MaxValue = {read=FMaxValue, write=FMaxValue, nodefault};
__property int MinValue = {read=FMinValue, write=FMinValue, nodefault};
__property ParentColor = {default=0};
__property ParentCtl3D = {default=1};
__property ParentFont = {default=1};
__property ParentShowHint = {default=1};
__property PopupMenu ;
__property ReadOnly = {default=0};
__property ShowHint ;
__property TabOrder = {default=-1};
__property TabStop = {default=1};
__property int Value = {read=GetValue, write=SetValue, nodefault};
__property Visible = {default=1};
__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 ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TSpinEdit(HWND ParentWindow) : Stdctrls::TCustomEdit(ParentWindow) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
static const Word InitRepeatPause = 0x190;
static const Shortint RepeatPause = 0x64;
extern PACKAGE void __fastcall Register(void);
} /* namespace Aaspin */
using namespace Aaspin;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // AASpin
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -