home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // Spin.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
- // From: Spin.pas
- //----------------------------------------------------------------------------
- #ifndef SpinHPP
- #define SpinHPP
- //----------------------------------------------------------------------------
- #ifndef ButtonsHPP
- #include <Buttons.hpp>
- #endif
-
- #ifndef MenusHPP
- #include <Menus.hpp>
- #endif
-
- #ifndef GraphicsHPP
- #include <Graphics.hpp>
- #endif
-
- #ifndef FormsHPP
- #include <Forms.hpp>
- #endif
-
- #ifndef SysUtilsHPP
- #include <SysUtils.hpp>
- #endif
-
- #ifndef MessagesHPP
- #include <Messages.hpp>
- #endif
-
- #ifndef ControlsHPP
- #include <Controls.hpp>
- #endif
-
- #ifndef ExtCtrlsHPP
- #include <ExtCtrls.hpp>
- #endif
-
- #ifndef StdCtrlsHPP
- #include <StdCtrls.hpp>
- #endif
-
- #ifndef ClassesHPP
- #include <Classes.hpp>
- #endif
-
- #ifndef WindowsHPP
- #include <Windows.hpp>
- #endif
-
- #ifndef SystemHPP
- #include <System.hpp>
- #endif
-
- namespace Spin
- {
- //-- type declarations -------------------------------------------------------
- class __declspec(delphiclass) TSpinButton;
- class __declspec(delphiclass) TTimerSpeedButton;
- enum Spin_3 { tbFocusRect, tbAllowTimer };
-
- typedef Set<Spin_3, tbFocusRect, tbAllowTimer> TTimeBtnState;
-
- class __declspec(pascalimplementation) TTimerSpeedButton : public Buttons::TSpeedButton
- {
- typedef TTimerSpeedButton ThisClass;
- typedef Buttons::TSpeedButton inherited;
-
- private:
- Extctrls::TTimer *FRepeatTimer;
- TTimeBtnState FTimeBtnState;
- void __fastcall TimerExpired(System::TObject *Sender);
-
- protected:
- virtual void __fastcall Paint(void);
- virtual void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, System::Integer
- X, System::Integer Y);
- virtual void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, System::Integer
- X, System::Integer Y);
-
- public:
- __fastcall virtual ~TTimerSpeedButton(void);
- __property TTimeBtnState TimeBtnState = {read=FTimeBtnState, write=FTimeBtnState, nodefault};
- public:
-
- /* !! TSpeedButton.Create */ __fastcall virtual TTimerSpeedButton(Classes::TComponent *AOwner) : Buttons::TSpeedButton(
- AOwner) { }
-
- };
-
- class __declspec(pascalimplementation) TSpinButton : public Controls::TWinControl
- {
- typedef TSpinButton ThisClass;
- 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);
- void __fastcall BtnClick(System::TObject *Sender);
- void __fastcall BtnMouseDown(System::TObject *Sender, Controls::TMouseButton Button, Classes::TShiftState
- Shift, System::Integer X, System::Integer Y);
- void __fastcall SetFocusBtn(TTimerSpeedButton *Btn);
- void __fastcall AdjustSize(System::Integer &W, System::Integer &H);
- MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
- MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
- MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
- MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
-
- protected:
- virtual void __fastcall Loaded(void);
- virtual void __fastcall KeyDown(System::Word &Key, Classes::TShiftState Shift);
-
- public:
- __fastcall virtual TSpinButton(Classes::TComponent *AOwner);
- virtual void __fastcall SetBounds(System::Integer ALeft, System::Integer ATop, System::Integer AWidth
- , System::Integer AHeight);
-
- __published:
- __property Align ;
- __property Ctl3D ;
- __property Graphics::TBitmap * DownGlyph = {read=GetDownGlyph, write=SetDownGlyph, nodefault};
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property Controls::TWinControl * FocusControl = {read=FFocusControl, write=FFocusControl, nodefault
- };
- __property ParentCtl3D ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property TabOrder ;
- __property TabStop ;
- __property Graphics::TBitmap * UpGlyph = {read=GetUpGlyph, write=SetUpGlyph, nodefault};
- __property Visible ;
- __property Classes::TNotifyEvent OnDownClick = {read=FOnDownClick, write=FOnDownClick};
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property Classes::TNotifyEvent OnUpClick = {read=FOnUpClick, write=FOnUpClick};
- public:
- /* !! TWinControl.Destroy */ __fastcall virtual ~TSpinButton(void) { }
-
- };
-
- class __declspec(delphiclass) TSpinEdit;
- class __declspec(pascalimplementation) TSpinEdit : public Stdctrls::TCustomEdit
- {
- typedef TSpinEdit ThisClass;
- typedef Stdctrls::TCustomEdit inherited;
-
- private:
- System::Longint FMinValue;
- System::Longint FMaxValue;
- Graphics::TCanvas *FCanvas;
- System::Longint FIncrement;
- TSpinButton *FButton;
- System::Boolean FEditorEnabled;
- System::Integer __fastcall GetMinHeight(void);
- System::Longint __fastcall GetValue(void);
- System::Longint __fastcall CheckValue(System::Longint NewValue);
- void __fastcall SetValue(System::Longint NewValue);
- void __fastcall SetEditRect(void);
- MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
- MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
- MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
- MESSAGE void __fastcall WMPaste(Messages::TWMNoParams &Message);
- MESSAGE void __fastcall WMCut(Messages::TWMNoParams &Message);
-
- protected:
- virtual void __fastcall GetChildren(Classes::TGetChildProc Proc);
- virtual System::Boolean __fastcall IsValidChar(System::Char Key);
- virtual void __fastcall UpClick(System::TObject *Sender);
- virtual void __fastcall DownClick(System::TObject *Sender);
- virtual void __fastcall KeyDown(System::Word &Key, Classes::TShiftState Shift);
- virtual void __fastcall KeyPress(System::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, nodefault};
-
- __published:
- __property AutoSelect ;
- __property AutoSize ;
- __property Color ;
- __property Ctl3D ;
- __property DragCursor ;
- __property DragMode ;
- __property System::Boolean EditorEnabled = {read=FEditorEnabled, write=FEditorEnabled, default=1};
- __property Enabled ;
- __property Font ;
- __property System::Longint Increment = {read=FIncrement, write=FIncrement, default=1};
- __property MaxLength ;
- __property System::Longint MaxValue = {read=FMaxValue, write=FMaxValue, nodefault};
- __property System::Longint MinValue = {read=FMinValue, write=FMinValue, nodefault};
- __property ParentColor ;
- __property ParentCtl3D ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ReadOnly ;
- __property ShowHint ;
- __property TabOrder ;
- __property TabStop ;
- __property System::Longint Value = {read=GetValue, write=SetValue, nodefault};
- __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 ;
- };
-
- //-- var, const, procedure ---------------------------------------------------
- #define InitRepeatPause System::Smallint(400)
- #define RepeatPause System::Byte(100)
- //-- template instantiations -------------------------------------------------
- template class TTimeBtnState ;
-
- } /* namespace Spin */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Spin;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // Spin
-