📄 rm_ctrls.hpp
字号:
typedef Set<RM_Ctrls__31, csButtonPressed, csMouseCaptured> TComboState97;
class DELPHICLASS TRMCustomComboBox97;
class PASCALIMPLEMENTATION TRMCustomComboBox97 : public Stdctrls::TCustomComboBox
{
typedef Stdctrls::TCustomComboBox inherited;
private:
bool FFlat;
Graphics::TColor FOldColor;
bool FOldParentColor;
int FButtonWidth;
TComboState97 FEditState;
bool FMouseInControl;
void __fastcall SetFlat(const bool Value);
void __fastcall DrawButtonBorder(HDC DC);
void __fastcall DrawControlBorder(HDC DC);
void __fastcall DrawBorders(void);
bool __fastcall NeedDraw3DBorder(void);
HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Msg);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
protected:
void __fastcall TrackButtonPressed(int X, int Y);
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
HIDESBASE MESSAGE void __fastcall CMMouseWheel(Controls::TCMMouseWheel &Message);
__property bool Flat = {read=FFlat, write=SetFlat, default=1};
public:
__fastcall virtual TRMCustomComboBox97(Classes::TComponent* AOwner);
public:
#pragma option push -w-inl
/* TCustomComboBox.Destroy */ inline __fastcall virtual ~TRMCustomComboBox97(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TRMCustomComboBox97(HWND ParentWindow) : Stdctrls::TCustomComboBox(ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TRMComboBox97;
class PASCALIMPLEMENTATION TRMComboBox97 : public TRMCustomComboBox97
{
typedef TRMCustomComboBox97 inherited;
__published:
__property Style = {default=0};
__property Flat = {default=1};
__property Color = {default=-16777211};
__property Ctl3D ;
__property DragCursor = {default=-12};
__property DragMode = {default=0};
__property DropDownCount = {default=8};
__property Enabled = {default=1};
__property Font ;
__property ItemHeight ;
__property Items ;
__property MaxLength = {default=0};
__property ParentColor = {default=0};
__property ParentCtl3D = {default=1};
__property ParentFont = {default=1};
__property ParentShowHint = {default=1};
__property PopupMenu ;
__property ShowHint ;
__property Sorted = {default=0};
__property TabOrder = {default=-1};
__property TabStop = {default=1};
__property Text ;
__property Visible = {default=1};
__property OnChange ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnDrawItem ;
__property OnDropDown ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMeasureItem ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TRMCustomComboBox97.Create */ inline __fastcall virtual TRMComboBox97(Classes::TComponent* AOwner) : TRMCustomComboBox97(AOwner) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TCustomComboBox.Destroy */ inline __fastcall virtual ~TRMComboBox97(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TRMComboBox97(HWND ParentWindow) : TRMCustomComboBox97(ParentWindow) { }
#pragma option pop
};
#pragma option push -b-
enum TRMSpinButtonState { rmsbNotDown, rmsbTopDown, rmsbBottomDown };
#pragma option pop
class DELPHICLASS TRMSpinButton;
class PASCALIMPLEMENTATION TRMSpinButton : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
TRMSpinButtonState FDown;
Graphics::TBitmap* FUpBitmap;
Graphics::TBitmap* FDownBitmap;
bool FDragging;
bool FInvalidate;
Graphics::TBitmap* FTopDownBtn;
Graphics::TBitmap* FBottomDownBtn;
Extctrls::TTimer* FRepeatTimer;
Graphics::TBitmap* FNotDownBtn;
TRMSpinButtonState FLastDown;
Controls::TWinControl* FFocusControl;
Classes::TNotifyEvent FOnTopClick;
Classes::TNotifyEvent FOnBottomClick;
void __fastcall TopClick(void);
void __fastcall BottomClick(void);
void __fastcall GlyphChanged(System::TObject* Sender);
void __fastcall SetDown(TRMSpinButtonState Value);
void __fastcall DrawAllBitmap(void);
void __fastcall DrawBitmap(Graphics::TBitmap* ABitmap, TRMSpinButtonState ADownState);
void __fastcall TimerExpired(System::TObject* Sender);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
protected:
virtual void __fastcall Paint(void);
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
public:
__fastcall virtual TRMSpinButton(Classes::TComponent* AOwner);
__fastcall virtual ~TRMSpinButton(void);
__property TRMSpinButtonState Down = {read=FDown, write=SetDown, default=0};
};
#pragma option push -b-
enum TRMValueType { rmvtInteger, rmvtFloat };
#pragma option pop
class DELPHICLASS TRMSpinEdit;
class PASCALIMPLEMENTATION TRMSpinEdit : public Stdctrls::TCustomEdit
{
typedef Stdctrls::TCustomEdit inherited;
private:
Classes::TAlignment FAlignment;
Extended FMinValue;
Extended FMaxValue;
Extended FIncrement;
Byte FDecimal;
bool FChanging;
bool FEditorEnabled;
TRMValueType FValueType;
TRMSpinButton* FButton;
Controls::TWinControl* FBtnWindow;
bool FArrowKeys;
Classes::TNotifyEvent FOnTopClick;
Classes::TNotifyEvent FOnBottomClick;
Comctrls::TCustomUpDown* FUpDown;
void __fastcall UpDownClick(System::TObject* Sender, Comctrls::TUDBtnType Button);
int __fastcall GetMinHeight(void);
void __fastcall GetTextHeight(int &SysHeight, int &Height);
Extended __fastcall GetValue(void);
Extended __fastcall CheckValue(Extended NewValue);
int __fastcall GetAsInteger(void);
bool __fastcall IsIncrementStored(void);
bool __fastcall IsValueStored(void);
void __fastcall SetArrowKeys(bool Value);
void __fastcall SetAsInteger(int NewValue);
void __fastcall SetValue(Extended NewValue);
void __fastcall SetValueType(TRMValueType NewType);
void __fastcall SetDecimal(Byte NewValue);
int __fastcall GetButtonWidth(void);
void __fastcall RecreateButton(void);
void __fastcall ResizeButton(void);
void __fastcall SetEditRect(void);
void __fastcall SetAlignment(Classes::TAlignment Value);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
MESSAGE void __fastcall WMPaste(Messages::TWMNoParams &Message);
MESSAGE void __fastcall WMCut(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMBiDiModeChanged(Messages::TMessage &Message);
protected:
DYNAMIC void __fastcall Change(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);
public:
__fastcall virtual TRMSpinEdit(Classes::TComponent* AOwner);
__fastcall virtual ~TRMSpinEdit(void);
__property int AsInteger = {read=GetAsInteger, write=SetAsInteger, default=0};
__property Text ;
__published:
__property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=0};
__property bool ArrowKeys = {read=FArrowKeys, write=SetArrowKeys, default=1};
__property Byte Decimal = {read=FDecimal, write=SetDecimal, default=2};
__property bool EditorEnabled = {read=FEditorEnabled, write=FEditorEnabled, default=1};
__property Extended Increment = {read=FIncrement, write=FIncrement, stored=IsIncrementStored};
__property Extended MaxValue = {read=FMaxValue, write=FMaxValue};
__property Extended MinValue = {read=FMinValue, write=FMinValue};
__property TRMValueType ValueType = {read=FValueType, write=SetValueType, nodefault};
__property Extended Value = {read=GetValue, write=SetValue, stored=IsValueStored};
__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 Enabled = {default=1};
__property Font ;
__property MaxLength = {default=0};
__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 Visible = {default=1};
__property Classes::TNotifyEvent OnBottomClick = {read=FOnBottomClick, write=FOnBottomClick};
__property Classes::TNotifyEvent OnTopClick = {read=FOnTopClick, write=FOnTopClick};
__property OnChange ;
__property OnClick ;
__property OnDblClick ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TRMSpinEdit(HWND ParentWindow) : Stdctrls::TCustomEdit(ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TRMPopupWindow;
class PASCALIMPLEMENTATION TRMPopupWindow : public Forms::TForm
{
typedef Forms::TForm inherited;
private:
HWND FSave;
Forms::TCustomForm* FForm;
Controls::TControl* FCaller;
int FWidth;
Classes::TNotifyEvent FOnClose;
Classes::TNotifyEvent FOnPopup;
void __fastcall DoClosePopupWindow(void);
HIDESBASE MESSAGE void __fastcall WMKILLFOCUS(Messages::TWMKillFocus &message);
void __fastcall PopupWindow(Controls::TControl* ACaller);
protected:
virtual void __fastcall DestroyWnd(void);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall AdjustClientRect(Types::TRect &Rect);
virtual void __fastcall AlignControls(Controls::TControl* AControl, Types::TRect &Rect);
public:
__fastcall virtual TRMPopupWindow(Classes::TComponent* AOwner, int Dummy);
HIDESBASE void __fastcall Close(System::TObject* Sender = (System::TObject*)(0x0));
void __fastcall Popup(Controls::TControl* ACaller);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -