📄 dbctrlseh.hpp
字号:
// CodeGear C++ Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Dbctrlseh.pas' rev: 11.00
#ifndef DbctrlsehHPP
#define DbctrlsehHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp> // Pascal unit
#include <Sysinit.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <Sysutils.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Menus.hpp> // Pascal unit
#include <Contnrs.hpp> // Pascal unit
#include <Variants.hpp> // Pascal unit
#include <Strutils.hpp> // Pascal unit
#include <Ehlibvcl.hpp> // Pascal unit
#include <Stdctrls.hpp> // Pascal unit
#include <Extctrls.hpp> // Pascal unit
#include <Mask.hpp> // Pascal unit
#include <Buttons.hpp> // Pascal unit
#include <Comctrls.hpp> // Pascal unit
#include <Db.hpp> // Pascal unit
#include <Dbctrls.hpp> // Pascal unit
#include <Imglist.hpp> // Pascal unit
#include <Toolctrlseh.hpp> // Pascal unit
#include <Actnlist.hpp> // Pascal unit
#include <Consts.hpp> // Pascal unit
#include <Math.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Dbctrlseh
{
//-- type declarations -------------------------------------------------------
__interface IInplaceEditHolderEh;
typedef System::DelphiInterface<IInplaceEditHolderEh> _di_IInplaceEditHolderEh;
__interface INTERFACE_UUID("{4BE708F1-4EA2-4AC7-BA64-89D7D2B83E09}") IInplaceEditHolderEh : public IInterface
{
public:
virtual bool __fastcall InplaceEditCanModify(Controls::TWinControl* Control) = 0 ;
virtual void __fastcall GetMouseDownInfo(Types::TPoint &Pos, int &Time) = 0 ;
virtual void __fastcall InplaceEditWndProc(Controls::TWinControl* Control, Messages::TMessage &Message) = 0 ;
virtual void __fastcall InplaceEditKeyDown(Controls::TWinControl* Control, Word &Key, Classes::TShiftState Shift) = 0 ;
virtual void __fastcall InplaceEditKeyPress(Controls::TWinControl* Control, char &Key) = 0 ;
virtual void __fastcall InplaceEditKeyUp(Controls::TWinControl* Control, Word &Key, Classes::TShiftState Shift) = 0 ;
};
__interface IInplaceEditEh;
typedef System::DelphiInterface<IInplaceEditEh> _di_IInplaceEditEh;
__interface INTERFACE_UUID("{81F0C558-B001-4477-BAA6-2DC373FCDF88}") IInplaceEditEh : public IInterface
{
public:
virtual Graphics::TFont* __fastcall GetFont(void) = 0 ;
virtual void __fastcall SetInplaceEditHolder(Controls::TWinControl* AInplaceEditHolder) = 0 ;
virtual void __fastcall SetBorderStyle(Forms::TBorderStyle ABorderStyle) = 0 ;
virtual void __fastcall SetFont(Graphics::TFont* AFont) = 0 ;
virtual void __fastcall SetColor(Graphics::TColor AColor) = 0 ;
virtual void __fastcall SetOnKeyPress(Controls::TKeyPressEvent AKeyPressEvent) = 0 ;
virtual void __fastcall SetOnExit(Classes::TNotifyEvent AKeyPressEvent) = 0 ;
};
class DELPHICLASS TEditImageEh;
class PASCALIMPLEMENTATION TEditImageEh : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
Controls::TWinControl* FEditControl;
int FImageIndex;
Imglist::TCustomImageList* FImages;
bool FUseImageHeight;
bool FVisible;
int FWidth;
void __fastcall SetImageIndex(const int Value);
void __fastcall SetImages(const Imglist::TCustomImageList* Value);
void __fastcall SetUseImageHeight(const bool Value);
void __fastcall SetVisible(const bool Value);
void __fastcall SetWidth(const int Value);
public:
__fastcall TEditImageEh(Controls::TWinControl* EditControl);
__fastcall virtual ~TEditImageEh(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__published:
__property int ImageIndex = {read=FImageIndex, write=SetImageIndex, default=-1};
__property Imglist::TCustomImageList* Images = {read=FImages, write=SetImages};
__property bool UseImageHeight = {read=FUseImageHeight, write=SetUseImageHeight, default=1};
__property bool Visible = {read=FVisible, write=SetVisible, default=0};
__property int Width = {read=FWidth, write=SetWidth, default=0};
};
class DELPHICLASS TFieldDataLinkEh;
class PASCALIMPLEMENTATION TFieldDataLinkEh : public Db::TDataLink
{
typedef Db::TDataLink inherited;
private:
DynamicArray<Db::TField* > FFields;
AnsiString FFieldName;
Classes::TComponent* FControl;
Classes::TNotifyEvent FOnDataChange;
Classes::TNotifyEvent FOnEditingChange;
Classes::TNotifyEvent FOnUpdateData;
Classes::TNotifyEvent FOnActiveChange;
bool FMultiFields;
bool FDataIndepended;
bool FEditing;
bool FModified;
bool __fastcall GetActive(void);
bool __fastcall GetCanModify(void);
bool __fastcall GetDataSetActive(void);
Db::TDataSource* __fastcall GetDataSource(void);
Db::TField* __fastcall GetField(void);
int __fastcall GetFieldsCount(void);
Db::TField* __fastcall GetFieldsField(int Index);
HIDESBASE void __fastcall SetDataSource(const Db::TDataSource* Value);
HIDESBASE void __fastcall SetEditing(bool Value);
void __fastcall SetField(Contnrs::TObjectList* Value);
void __fastcall SetFieldName(const AnsiString Value);
void __fastcall SetMultiFields(const bool Value);
void __fastcall UpdateRightToLeft(void);
protected:
bool __fastcall FieldFound(Db::TField* Value);
virtual void __fastcall ActiveChanged(void);
virtual void __fastcall DataEvent(Db::TDataEvent Event, int Info);
virtual void __fastcall EditingChanged(void);
virtual void __fastcall FocusControl(Db::TFieldRef Field);
virtual void __fastcall LayoutChanged(void);
virtual void __fastcall RecordChanged(Db::TField* Field);
virtual void __fastcall UpdateData(void);
void __fastcall UpdateDataIndepended(void);
virtual void __fastcall UpdateField(void);
public:
Variant DataIndependentValue;
__fastcall TFieldDataLinkEh(void);
HIDESBASE bool __fastcall Edit(void);
void __fastcall Modified(void);
void __fastcall SetModified(bool Value);
void __fastcall SetText(AnsiString Text);
void __fastcall SetValue(const Variant &Value);
void __fastcall Reset(void);
__property bool Active = {read=GetActive, nodefault};
__property bool CanModify = {read=GetCanModify, nodefault};
__property Classes::TComponent* Control = {read=FControl, write=FControl};
__property bool DataIndepended = {read=FDataIndepended, nodefault};
__property bool DataSetActive = {read=GetDataSetActive, nodefault};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property bool Editing = {read=FEditing, nodefault};
__property Db::TField* Field = {read=GetField};
__property AnsiString FieldName = {read=FFieldName, write=SetFieldName};
__property Db::TField* Fields[int Index] = {read=GetFieldsField};
__property int FieldsCount = {read=GetFieldsCount, nodefault};
__property bool MultiFields = {read=FMultiFields, write=SetMultiFields, nodefault};
__property Classes::TNotifyEvent OnActiveChange = {read=FOnActiveChange, write=FOnActiveChange};
__property Classes::TNotifyEvent OnDataChange = {read=FOnDataChange, write=FOnDataChange};
__property Classes::TNotifyEvent OnEditingChange = {read=FOnEditingChange, write=FOnEditingChange};
__property Classes::TNotifyEvent OnUpdateData = {read=FOnUpdateData, write=FOnUpdateData};
public:
#pragma option push -w-inl
/* TDataLink.Destroy */ inline __fastcall virtual ~TFieldDataLinkEh(void) { }
#pragma option pop
};
typedef void __fastcall (__closure *TGetImageIndexEventEh)(System::TObject* Sender, int &ImageIndex);
typedef void __fastcall (__closure *TOnCheckDrawRequiredStateEventEh)(System::TObject* Sender, bool &DrawState);
#pragma option push -b-
enum TDBEditEhValue { evAlignmentEh, evEditMaskEh };
#pragma option pop
typedef Set<TDBEditEhValue, evAlignmentEh, evEditMaskEh> TDBEditEhValues;
class DELPHICLASS TCustomDBEditEh;
class PASCALIMPLEMENTATION TCustomDBEditEh : public Mask::TCustomMaskEdit
{
typedef Mask::TCustomMaskEdit inherited;
private:
bool FAlwaysShowBorder;
TDBEditEhValues FAssignedValues;
Controls::TControlCanvas* FCanvas;
AnsiString FCompleteKeyPress;
Toolctrlseh::TEditButtonEh* FEditButton;
Toolctrlseh::TEditButtonsEh* FEditButtons;
TEditImageEh* FEditImage;
bool FFlat;
bool FHighlightRequired;
Toolctrlseh::TMRUListEh* FMRUList;
Controls::TWinControl* FMRUListControl;
Toolctrlseh::TButtonClickEventEh FOnButtonClick;
Toolctrlseh::TButtonDownEventEh FOnButtonDown;
TOnCheckDrawRequiredStateEventEh FOnCheckDrawRequiredState;
TGetImageIndexEventEh FOnGetImageIndex;
Toolctrlseh::TUpdateDataEventEh FOnUpdateData;
bool FReadOnly;
bool FShowHint;
bool FTooltips;
bool FWantReturns;
bool FWantTabs;
bool FWordWrap;
bool __fastcall CheckHintTextRect(int &TextWidth, int &TextHeight);
Classes::TAlignment __fastcall GetAlignment(void);
Graphics::TCanvas* __fastcall GetCanvas(void);
AnsiString __fastcall GetEditMask();
Db::TField* __fastcall GetField(void);
Imglist::TCustomImageList* __fastcall GetImages(void);
Controls::TWinControl* __fastcall GetMRUListControl(void);
char __fastcall GetPasswordChar(void);
bool __fastcall GetReadOnly(void);
bool __fastcall GetShowHint(void);
HIDESBASE AnsiString __fastcall GetText();
Types::TPoint __fastcall GetTextMargins();
Variant __fastcall GetValue();
bool __fastcall GetVisible(void);
Types::TRect __fastcall ImageRect();
bool __fastcall IsAlignmentStored(void);
bool __fastcall IsEditMaskStored(void);
bool __fastcall IsTextStored(void);
bool __fastcall IsValueStored(void);
void __fastcall ActiveChange(System::TObject* Sender);
HIDESBASE void __fastcall CheckCursor(void);
MESSAGE void __fastcall CMCancelMode(Controls::TCMCancelMode &Message);
HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMDialogKey(Messages::TWMKey &Message);
MESSAGE void __fastcall CMEditImageChangedEh(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMHintShow(Forms::TCMHintShow &Message);
MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMMouseWheel(Controls::TCMMouseWheel &Message);
HIDESBASE MESSAGE void __fastcall CMParentShowHintChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMRecreateWnd(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMShowingChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMSysColorChange(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMWantSpecialKey(Messages::TWMKey &Message);
HIDESBASE MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
void __fastcall DataChange(System::TObject* Sender);
void __fastcall DrawBorder(HDC DC, bool ActiveBorder);
void __fastcall DrawEditImage(HDC DC);
void __fastcall EditButtonChanged(System::TObject* Sender);
void __fastcall EditingChange(System::TObject* Sender);
void __fastcall InternalMove(const Types::TRect &Loc, bool Redraw);
void __fastcall InternalUpdateData(System::TObject* Sender);
void __fastcall ReadEditMask(Classes::TReader* Reader);
void __fastcall SetAlignment(const Classes::TAlignment Value);
void __fastcall SetAlwaysShowBorder(const bool Value);
void __fastcall SetEditButton(const Toolctrlseh::TEditButtonEh* Value);
void __fastcall SetEditButtons(const Toolctrlseh::TEditButtonsEh* Value);
void __fastcall SetEditImage(const TEditImageEh* Value);
HIDESBASE void __fastcall SetEditMask(const AnsiString Value);
void __fastcall SetEditRect(void);
void __fastcall SetFlat(const bool Value);
void __fastcall SetImages(const Imglist::TCustomImageList* Value);
void __fastcall SetMRUList(const Toolctrlseh::TMRUListEh* Value);
void __fastcall SetOnGetImageIndex(const TGetImageIndexEventEh Value);
HIDESBASE void __fastcall SetPasswordChar(const char Value);
HIDESBASE void __fastcall SetReadOnly(bool Value);
HIDESBASE void __fastcall SetShowHint(const bool Value);
HIDESBASE void __fastcall SetText(const AnsiString Value);
void __fastcall SetTooltips(const bool Value);
void __fastcall SetValue(const Variant &Value);
HIDESBASE void __fastcall SetVisible(const bool Value);
void __fastcall SetWordWrap(const bool Value);
void __fastcall UpdateDrawBorder(void);
HIDESBASE MESSAGE void __fastcall WMCancelMode(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMChar(Messages::TWMKey &Message);
HIDESBASE MESSAGE void __fastcall WMCut(Messages::TWMNoParams &Message);
MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMNCPaint(Messages::TWMNCPaint &Message);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
HIDESBASE MESSAGE void __fastcall WMPaste(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMSetCursor(Messages::TWMSetCursor &Message);
HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
MESSAGE void __fastcall WMUndo(Messages::TWMNoParams &Message);
void __fastcall WriteEditMask(Classes::TWriter* Writer);
protected:
Classes::TAlignment FAlignment;
bool FBorderActive;
int FButtonHeight;
int FButtonWidth;
TFieldDataLinkEh* FDataLink;
bool FDataPosting;
int FDownButton;
bool FDroppedDown;
DynamicArray<Toolctrlseh::TEditButtonControlLineRec > FEditButtonControlList;
bool FFocused;
int FImageWidth;
Controls::TWinControl* FInplaceEditHolder;
bool FInplaceMode;
_di_IInplaceEditHolderEh FIntfInplaceEditHolder;
bool FMouseAboveControl;
bool FNoClickCloseUp;
bool FPressed;
#pragma pack(push,1)
Types::TRect FPressedRect;
#pragma pack(pop)
bool FUserTextChanged;
virtual bool __fastcall ButtonEnabled(void);
Types::TRect __fastcall ButtonRect();
virtual TFieldDataLinkEh* __fastcall CreateDataLink(void);
virtual Toolctrlseh::TEditButtonEh* __fastcall CreateEditButton(void);
virtual Toolctrlseh::TEditButtonControlEh* __fastcall CreateEditButtonControl(void);
virtual Toolctrlseh::TEditButtonsEh* __fastcall CreateEditButtons(void);
virtual TEditImageEh* __fastcall CreateEditImage(void);
virtual Controls::TWinControl* __fastcall CreateMRUListControl(void);
virtual bool __fastcall DataIndepended(void);
virtual Classes::TAlignment __fastcall DefaultAlignment(void);
virtual AnsiString __fastcall DefaultEditMask();
virtual int __fastcall DefaultImageIndex(void);
virtual bool __fastcall EditCanModify(void);
Types::TRect __fastcall EditRect();
virtual AnsiString __fastcall GetDataField();
virtual Db::TDataSource* __fastcall GetDataSource(void);
virtual AnsiString __fastcall GetDisplayTextForPaintCopy();
Toolctrlseh::TEditButtonEh* __fastcall GetEditButtonByShortCut(Classes::TShortCut ShortCut);
Graphics::TFont* __fastcall GetFont(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -