⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dbctrlseh.hpp

📁 最新的 DBGRIDEH4.0
💻 HPP
📖 第 1 页 / 共 4 页
字号:
	__property ImeName ;
	__property Kind ;
	__property MRUList ;
	__property ParentBiDiMode  = {default=1};
	__property ParentColor  = {default=0};
	__property ParentCtl3D  = {default=1};
	__property ParentFont  = {default=1};
	__property ParentShowHint  = {default=1};
	__property PopupMenu ;
	__property ReadOnly  = {default=0};
	__property ShowHint  = {default=0};
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=1};
	__property Tooltips  = {default=0};
	__property Value ;
	__property Visible ;
	__property OnButtonClick ;
	__property OnButtonDown ;
	__property OnChange ;
	__property OnCheckDrawRequiredState ;
	__property OnClick ;
	__property OnCloseUp ;
	__property OnContextPopup ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnDropDown ;
	__property OnEndDock ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnGetImageIndex ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnUpdateData ;
	__property OnStartDock ;
	__property OnStartDrag ;
public:
	#pragma option push -w-inl
	/* TCustomDBDateTimeEditEh.Create */ inline __fastcall virtual TDBDateTimeEditEh(Classes::TComponent* AOwner) : TCustomDBDateTimeEditEh(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomDBDateTimeEditEh.Destroy */ inline __fastcall virtual ~TDBDateTimeEditEh(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TDBDateTimeEditEh(HWND ParentWindow) : TCustomDBDateTimeEditEh(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TDropDownBoxEh;
class PASCALIMPLEMENTATION TDropDownBoxEh : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	Dbctrls::TDropDownAlign FAlign;
	bool FAutoDrop;
	int FRows;
	bool FSizable;
	int FWidth;
	
public:
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	
__published:
	__property Dbctrls::TDropDownAlign Align = {read=FAlign, write=FAlign, default=0};
	__property bool AutoDrop = {read=FAutoDrop, write=FAutoDrop, default=0};
	__property int Rows = {read=FRows, write=FRows, default=7};
	__property bool Sizable = {read=FSizable, write=FSizable, default=0};
	__property int Width = {read=FWidth, write=FWidth, default=0};
public:
	#pragma option push -w-inl
	/* TPersistent.Destroy */ inline __fastcall virtual ~TDropDownBoxEh(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TDropDownBoxEh(void) : Classes::TPersistent() { }
	#pragma option pop
	
};


class DELPHICLASS TCustomDBComboBoxEh;
class PASCALIMPLEMENTATION TCustomDBComboBoxEh : public TCustomDBEditEh 
{
	typedef TCustomDBEditEh inherited;
	
private:
	TDropDownBoxEh* FDropDownBox;
	int FItemIndex;
	Classes::TStrings* FItems;
	Classes::TStrings* FKeyItems;
	bool FListVisible;
	Toolctrlseh::TNotInListEventEh FOnNotInList;
	Controls::TWinControl* FPopupListbox;
	Toolctrlseh::TCloseUpEventEh FOnCloseUp;
	Toolctrlseh::TAcceptEventEh FOnClosingUp;
	Classes::TNotifyEvent FOnDropDown;
	Toolctrlseh::TListGetImageIndexEventEh FOnGetItemImageIndex;
	Classes::TNotifyEvent FOnGetItemsList;
	TMetaClass* FPopupListboxClass;
	HIDESBASE Imglist::TCustomImageList* __fastcall GetImages(void);
	HIDESBASE MESSAGE void __fastcall CMCancelMode(Controls::TCMCancelMode &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseWheel(Controls::TCMMouseWheel &Message);
	HIDESBASE MESSAGE void __fastcall CMWantSpecialKey(Messages::TWMKey &Message);
	void __fastcall ItemsChanged(System::TObject* Sender);
	void __fastcall KeyItemsChanged(System::TObject* Sender);
	void __fastcall ListMouseUp(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	void __fastcall SetDropDownBox(const TDropDownBoxEh* Value);
	HIDESBASE void __fastcall SetImages(const Imglist::TCustomImageList* Value);
	void __fastcall SetItemIndex(const int Value);
	void __fastcall SetItems(const Classes::TStrings* Value);
	void __fastcall SetKeyItems(const Classes::TStrings* Value);
	HIDESBASE MESSAGE void __fastcall WMChar(Messages::TWMKey &Message);
	HIDESBASE MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
	HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
	HIDESBASE MESSAGE void __fastcall WMPaste(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall WMSetCursor(Messages::TWMSetCursor &Message);
	
protected:
	int FItemsCount;
	bool FKeyBased;
	Variant FVarValue;
	int FDefaultItemIndex;
	AnsiString __fastcall ConvertDataText(const AnsiString Value);
	virtual Toolctrlseh::TEditButtonEh* __fastcall CreateEditButton(void);
	virtual Classes::TAlignment __fastcall DefaultAlignment(void);
	virtual int __fastcall DefaultImageIndex(void);
	DYNAMIC bool __fastcall DoMouseWheelDown(Classes::TShiftState Shift, const Types::TPoint &MousePos);
	DYNAMIC bool __fastcall DoMouseWheelUp(Classes::TShiftState Shift, const Types::TPoint &MousePos);
	virtual AnsiString __fastcall GetDisplayTextForPaintCopy();
	Controls::TWinControl* __fastcall GetPopupListbox(void);
	virtual Variant __fastcall GetVariantValue();
	virtual bool __fastcall IsValidChar(char InputChar);
	virtual bool __fastcall LocateStr(AnsiString Str, bool PartialKey);
	virtual bool __fastcall ProcessSearchStr(AnsiString Str);
	bool __fastcall TextListIndepended(void);
	bool __fastcall TraceMouseMoveForPopupListbox(System::TObject* Sender, Classes::TShiftState Shift, int X, int Y);
	virtual void __fastcall ButtonDown(bool IsDownButton);
	DYNAMIC void __fastcall Change(void);
	DYNAMIC void __fastcall Click(void);
	virtual void __fastcall DataChanged(void);
	virtual void __fastcall EditButtonClick(System::TObject* Sender);
	virtual void __fastcall EditButtonMouseMove(System::TObject* Sender, Classes::TShiftState Shift, int X, int Y);
	virtual void __fastcall GetItemsList(void);
	virtual void __fastcall InternalSetItemIndex(const int Value);
	virtual void __fastcall InternalSetText(AnsiString AText);
	virtual void __fastcall InternalSetValue(const Variant &AValue);
	virtual void __fastcall InternalUpdatePostData(void);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyPress(char &Key);
	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);
	virtual void __fastcall ResetMaxLength(void);
	void __fastcall PopupListboxGetImageIndex(System::TObject* Sender, int ItemIndex, int &ImageIndex);
	virtual void __fastcall SetVariantValue(const Variant &VariantValue);
	virtual void __fastcall UpdateControlReadOnly(void);
	void __fastcall UpdateItemIndex(void);
	virtual void __fastcall UpdateImageIndex(void);
	void __fastcall UpdateItems(void);
	virtual void __fastcall WndProc(Messages::TMessage &Message);
	__property Controls::TWinControl* PopupListbox = {read=GetPopupListbox};
	
public:
	__fastcall virtual TCustomDBComboBoxEh(Classes::TComponent* AOwner);
	__fastcall virtual ~TCustomDBComboBoxEh(void);
	virtual void __fastcall Clear(void);
	virtual void __fastcall CloseUp(bool Accept);
	virtual void __fastcall DefaultHandler(void *Message);
	virtual void __fastcall DropDown(void);
	void __fastcall SelectNextValue(bool IsPrior);
	virtual void __fastcall UpdateData(void);
	__property TDropDownBoxEh* DropDownBox = {read=FDropDownBox, write=SetDropDownBox};
	__property HighlightRequired  = {default=0};
	__property Imglist::TCustomImageList* Images = {read=GetImages, write=SetImages};
	__property int ItemIndex = {read=FItemIndex, write=SetItemIndex, nodefault};
	__property Classes::TStrings* Items = {read=FItems, write=SetItems};
	__property Classes::TStrings* KeyItems = {read=FKeyItems, write=SetKeyItems};
	__property TMetaClass* PopupListboxClass = {read=FPopupListboxClass, write=FPopupListboxClass};
	__property bool ListVisible = {read=FListVisible, nodefault};
	__property Toolctrlseh::TCloseUpEventEh OnCloseUp = {read=FOnCloseUp, write=FOnCloseUp};
	__property Toolctrlseh::TAcceptEventEh OnClosingUp = {read=FOnClosingUp, write=FOnClosingUp};
	__property Classes::TNotifyEvent OnDropDown = {read=FOnDropDown, write=FOnDropDown};
	__property Classes::TNotifyEvent OnGetItemsList = {read=FOnGetItemsList, write=FOnGetItemsList};
	__property Toolctrlseh::TNotInListEventEh OnNotInList = {read=FOnNotInList, write=FOnNotInList};
	__property Toolctrlseh::TListGetImageIndexEventEh OnGetItemImageIndex = {read=FOnGetItemImageIndex, write=FOnGetItemImageIndex};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TCustomDBComboBoxEh(HWND ParentWindow) : TCustomDBEditEh(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TDBComboBoxEh;
class PASCALIMPLEMENTATION TDBComboBoxEh : public TCustomDBComboBoxEh 
{
	typedef TCustomDBComboBoxEh inherited;
	
__published:
	__property Alignment ;
	__property AlwaysShowBorder  = {default=0};
	__property Anchors  = {default=3};
	__property AutoSelect  = {default=1};
	__property AutoSize  = {default=1};
	__property BiDiMode ;
	__property BorderStyle  = {default=1};
	__property CharCase  = {default=0};
	__property Color  = {default=-16777211};
	__property Constraints ;
	__property Ctl3D ;
	__property DataField ;
	__property DataSource ;
	__property DragCursor  = {default=-12};
	__property DragKind  = {default=0};
	__property DragMode  = {default=0};
	__property DropDownBox ;
	__property Enabled  = {default=1};
	__property EditButton ;
	__property EditButtons ;
	__property EditMask ;
	__property Font ;
	__property Flat  = {default=0};
	__property HighlightRequired  = {default=0};
	__property Images ;
	__property ImeMode  = {default=3};
	__property ImeName ;
	__property Items ;
	__property KeyItems ;
	__property MaxLength  = {default=0};
	__property MRUList ;
	__property ParentBiDiMode  = {default=1};
	__property ParentColor  = {default=0};
	__property ParentCtl3D  = {default=1};
	__property ParentFont  = {default=1};
	__property ParentShowHint  = {default=1};
	__property PopupMenu ;
	__property ReadOnly  = {default=0};
	__property ShowHint  = {default=0};
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=1};
	__property Text ;
	__property Tooltips  = {default=0};
	__property Visible ;
	__property WordWrap  = {default=0};
	__property OnButtonClick ;
	__property OnButtonDown ;
	__property OnChange ;
	__property OnCheckDrawRequiredState ;
	__property OnClick ;
	__property OnCloseUp ;
	__property OnContextPopup ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnDropDown ;
	__property OnEndDock ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnGetImageIndex ;
	__property OnGetItemImageIndex ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnNotInList ;
	__property OnUpdateData ;
	__property OnStartDock ;
	__property OnStartDrag ;
public:
	#pragma option push -w-inl
	/* TCustomDBComboBoxEh.Create */ inline __fastcall virtual TDBComboBoxEh(Classes::TComponent* AOwner) : TCustomDBComboBoxEh(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomDBComboBoxEh.Destroy */ inline __fastcall virtual ~TDBComboBoxEh(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TDBComboBoxEh(HWND ParentWindow) : TCustomDBComboBoxEh(ParentWindow) { }
	#pragma option pop
	
};


#pragma option push -b-
enum TDBNumberValue { evDisplayFormatEh, evCurrencyEh, evMaxValueEh, evMinValueEh };
#pragma option pop

typedef Set<TDBNumberValue, evDisplayFormatEh, evMinValueEh>  TDBNumberValues;

class DELPHICLASS TCustomDBNumberEditEh;
class PASCALIMPLEMENTATION TCustomDBNumberEditEh : public TCustomDBEditEh 
{
	typedef TCustomDBEditEh inherited;
	
private:
	TDBNumberValues FAssignedValues;
	bool FCalculatorVisible;
	bool FCurrency;
	unsigned FDecimalPlaces;
	AnsiString FDisplayFormat;
	Controls::TWinControl* FDropDownCalculator;
	AnsiString FEditFormat;
	Extended FIncrement;
	bool FInternalTextSetting;
	Extended FMinValue;
	Extended FMaxValue;
	Toolctrlseh::TCloseUpEventEh FOnCloseUp;
	Classes::TNotifyEvent FOnDropDown;
	Variant FValue;
	Extended __fastcall CheckValue(Extended NewValue);
	AnsiString __fastcall DisplayFormatToEditFormat(const AnsiString AFormat);
	bool __fastcall GetCurrency(void);
	AnsiString __fastcall GetDisplayFormat();
	Extended __fastcall GetMaxValue(void);
	Extended __fastcall GetMinValue(void);
	bool __fastcall IsCurrencyStored(void);
	bool __fastcall IsDisplayFormatStored(void);
	bool __fastcall IsIncrementStored(void);
	bool __fastcall IsMaxValueStored(void);
	bool __fastcall IsMinValueStored(void);
	AnsiString __fastcall TextToValText(const AnsiString AValue);
	HIDESBASE MESSAGE void __fastcall CMCancelMode(Controls::TCMCancelMode &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseWheel(Controls::TCMMouseWheel &Message);
	HIDESBASE MESSAGE void __fastcall CMWantSpecialKey(Messages::TWMKey &Message);
	void __fastcall SetCurrency(const bool Value);
	void __fastcall SetDecimalPlaces(unsigned Value);
	void __fastcall SetDisplayFormat(const AnsiString Value);
	void __fastcall SetMaxValue(Extended AValue);
	void __fastcall SetMinValue(Extended AValue);
	HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
	HIDESBASE MESSAGE void __fastcall WMPaste(Messages::TMessage &Message);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -