📄 advedit.hpp
字号:
Graphics::TColor FModifiedColor;
bool FReturnIsTab;
bool FShowModified;
bool FIsModified;
bool FShowURL;
Graphics::TColor FURLColor;
int FFocusWidthInc;
TEditAlign FFocusAlign;
short FLengthLimit;
short FPrecision;
AnsiString FPrefix;
AnsiString FSuffix;
AnsiString FOldString;
bool FSigned;
bool FIsUrl;
bool FFlat;
bool FMouseInControl;
Graphics::TColor FFlatLineColor;
TPersistence* FPersistence;
TValueValidateEvent FOnValueValidate;
TClipboardEvent FOnClipboardCut;
TClipboardEvent FOnClipboardPaste;
TClipboardEvent FOnClipboardCopy;
bool FFlatParentColor;
bool FTransparent;
#pragma pack(push,1)
Types::TPoint FCaretPos;
#pragma pack(pop)
bool FOleDropSource;
bool FOleDropTarget;
bool FOleDropTargetAssigned;
bool FIsDragSource;
bool FButtonDown;
bool FFocusBorder;
Graphics::TColor FFocusBorderColor;
bool FHintShowLargeText;
bool FShowError;
bool FAutoThousandSeparator;
AnsiString FEmptyText;
bool FSoftBorder;
bool FDefaultHandling;
bool FLabelAlwaysEnabled;
bool FBorder3D;
int FErrorMarkerLen;
int FErrorMarkerPos;
int FIndentR;
int FIndentL;
int FLoadedHeight;
TListHintWindow* FLookupList;
Stdctrls::TListBox* FLookupListBox;
TLookupSettings* FLookup;
TLookupSelectEvent FOnLookupSelect;
TLookupIndexSelectEvent FOnLookupIndexSelect;
bool FIsValidating;
Classes::TNotifyEvent FOnMouseEnter;
Classes::TNotifyEvent FOnMouseLeave;
TURLClickEvent FOnURLClick;
Classes::TNotifyEvent FOnLabelClick;
Classes::TNotifyEvent FOnLabelDblClick;
AnsiString FValidChars;
bool FIsWinXP;
bool FBlockChange;
HIDESBASE MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
MESSAGE void __fastcall WMActivate(Messages::TMessage &Message);
MESSAGE void __fastcall CNCtlColorEdit(Messages::TWMCtlColor &Message);
MESSAGE void __fastcall CNCtlColorStatic(Messages::TWMCtlColor &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMCancelMode(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMShowingChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMHintShow(Messages::TMessage &Msg);
HIDESBASE MESSAGE void __fastcall CMParentFontChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Msg);
HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Msg);
HIDESBASE MESSAGE void __fastcall WMChar(Messages::TWMKey &Msg);
MESSAGE void __fastcall WMPaste(Messages::TMessage &Msg);
MESSAGE void __fastcall WMCut(Messages::TWMNoParams &Message);
MESSAGE void __fastcall WMCopy(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMKeyDown(Messages::TWMKey &Msg);
HIDESBASE MESSAGE void __fastcall WMLButtonUp(Messages::TWMMouse &Msg);
HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Msg);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Msg);
HIDESBASE MESSAGE void __fastcall WMNCPaint(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMEraseBkGnd(Messages::TWMEraseBkgnd &Message);
HIDESBASE MESSAGE void __fastcall WMDestroy(Messages::TMessage &Msg);
HIDESBASE MESSAGE void __fastcall WMMouseMove(Messages::TWMMouse &Msg);
HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Msg);
HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
MESSAGE void __fastcall CMWantSpecialKey(Messages::TWMKey &Msg);
void __fastcall SetEditType(TAdvEditType value);
HIDESBASE AnsiString __fastcall GetText();
HIDESBASE void __fastcall SetText(AnsiString value);
double __fastcall GetFloat(void);
int __fastcall GetInt(void);
int __fastcall GetTextSize(void);
int __fastcall FixedLength(AnsiString s);
int __fastcall DecimalPos(void);
void __fastcall SetFloat(const double Value);
void __fastcall SetInt(const int Value);
void __fastcall SetPrefix(const AnsiString Value);
void __fastcall SetSuffix(const AnsiString Value);
void __fastcall SetLabelCaption(const AnsiString value);
AnsiString __fastcall GetLabelCaption();
void __fastcall SetLabelPosition(const TLabelPosition value);
void __fastcall SetLabelMargin(const int value);
void __fastcall SetLabelTransparent(const bool value);
void __fastcall SetFlat(const bool value);
void __fastcall SetFlatRect(const bool Value);
void __fastcall SetPrecision(const short Value);
Extended __fastcall EStrToFloat(AnsiString s);
void __fastcall UpdateLabel(void);
void __fastcall AutoSeparators(void);
HIDESBASE bool __fastcall GetModified(void);
HIDESBASE void __fastcall SetModified(const bool Value);
bool __fastcall GetVisible(void);
HIDESBASE void __fastcall SetVisible(const bool Value);
void __fastcall PaintEdit(void);
void __fastcall DrawControlBorder(HDC DC);
void __fastcall DrawBorder(void);
bool __fastcall Is3DBorderButton(void);
void __fastcall SetDisabledColor(const Graphics::TColor Value);
bool __fastcall GetEnabledEx(void);
void __fastcall SetEnabledEx(const bool Value);
void __fastcall SetEditAlign(const TEditAlign Value);
void __fastcall SetCanUndo(const bool Value);
Graphics::TColor __fastcall GetColorEx(void);
void __fastcall SetColorEx(const Graphics::TColor Value);
void __fastcall SetTransparent(const bool Value);
void __fastcall SetFlatLineColor(const Graphics::TColor Value);
void __fastcall SetFlatParentColor(const bool Value);
void __fastcall LabelFontChange(System::TObject* Sender);
void __fastcall SetLabelFont(const Graphics::TFont* Value);
bool __fastcall GetError(void);
void __fastcall SetError(const bool Value);
bool __fastcall TestURL(void);
void __fastcall ApplyURL(const bool Value);
void __fastcall DrawErrorLines(Graphics::TCanvas* Canvas, int ErrPos, int ErrLen);
void __fastcall SetOleDropSource(const bool Value);
void __fastcall SetOleDropTarget(const bool Value);
void __fastcall SetAutoThousandSeparator(const bool Value);
void __fastcall SetEmptyText(const AnsiString Value);
void __fastcall SetSoftBorder(const bool Value);
void __fastcall SetLabelAlwaysEnabled(const bool Value);
void __fastcall SetBorder3D(const bool Value);
void __fastcall SetErrorMarkerLen(const int Value);
void __fastcall SetErrorMarkerPos(const int Value);
void __fastcall SetFocusBorder(const bool Value);
int __fastcall GetHeightEx(void);
void __fastcall SetHeightEx(const int Value);
void __fastcall UpdateLookup(void);
void __fastcall DoneLookup(void);
void __fastcall ListKeyPress(System::TObject* Sender, char &Key);
void __fastcall ListMouseUp(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
AnsiString __fastcall GetVersion();
void __fastcall SetVersion(const AnsiString Value);
protected:
virtual int __fastcall GetVersionNr(void);
DYNAMIC void __fastcall Change(void);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
Stdctrls::TLabel* __fastcall CreateLabel(void);
virtual void __fastcall Loaded(void);
void __fastcall InvalidateCaret(const Types::TPoint &pt);
void __fastcall EraseCaret(void);
void __fastcall DrawCaretByCursor(void);
void __fastcall SetCaretByCursor(void);
__property int IndentR = {read=FIndentR, write=FIndentR, nodefault};
__property int IndentL = {read=FIndentL, write=FIndentL, nodefault};
virtual bool __fastcall DoValidate(AnsiString value);
virtual void __fastcall ValidateEvent(AnsiString Value, bool &IsValid);
void __fastcall LabelClick(System::TObject* Sender);
void __fastcall LabelDblClick(System::TObject* Sender);
virtual void __fastcall SetParent(Controls::TWinControl* AParent);
public:
__fastcall virtual TAdvEdit(Classes::TComponent* aOwner);
__fastcall virtual ~TAdvEdit(void);
virtual void __fastcall SetBounds(int ALeft, int ATop, int AWidth, int AHeight);
HIDESBASE void __fastcall SelectAll(void);
void __fastcall SelectBeforeDecimal(void);
void __fastcall SelectAfterDecimal(void);
void __fastcall Init(void);
int __fastcall CharFromPos(const Types::TPoint &pt);
Types::TPoint __fastcall PosFromChar(Word uChar);
__property double FloatValue = {read=GetFloat, write=SetFloat};
__property int IntValue = {read=GetInt, write=SetInt, nodefault};
__property bool Modified = {read=GetModified, write=SetModified, nodefault};
__property bool IsError = {read=GetError, write=SetError, nodefault};
bool __fastcall RangeStrToList(TRangeList* rangelist);
void __fastcall ListToRangeStr(TRangeList* rangelist);
virtual void __fastcall LoadPersist(void);
virtual void __fastcall SavePersist(void);
__property bool DefaultHandling = {read=FDefaultHandling, write=FDefaultHandling, nodefault};
__property Stdctrls::TLabel* EditLabel = {read=FLabel};
__property bool Border3D = {read=FBorder3D, write=SetBorder3D, nodefault};
__published:
__property TValueValidateEvent OnValueValidate = {read=FOnValueValidate, write=FOnValueValidate};
__property TClipboardEvent OnClipboardCopy = {read=FOnClipboardCopy, write=FOnClipboardCopy};
__property TClipboardEvent OnClipboardCut = {read=FOnClipboardCut, write=FOnClipboardCut};
__property TClipboardEvent OnClipboardPaste = {read=FOnClipboardPaste, write=FOnClipboardPaste};
__property bool AutoFocus = {read=FAutoFocus, write=FAutoFocus, default=0};
__property bool AutoThousandSeparator = {read=FAutoThousandSeparator, write=SetAutoThousandSeparator, default=1};
__property TEditAlign EditAlign = {read=FEditAlign, write=SetEditAlign, default=0};
__property TAdvEditType EditType = {read=FEditType, write=SetEditType, default=0};
__property AnsiString EmptyText = {read=FEmptyText, write=SetEmptyText};
__property int ErrorMarkerPos = {read=FErrorMarkerPos, write=SetErrorMarkerPos, default=0};
__property int ErrorMarkerLen = {read=FErrorMarkerLen, write=SetErrorMarkerLen, default=0};
__property Graphics::TColor ErrorColor = {read=FErrorColor, write=FErrorColor, default=255};
__property Graphics::TColor ErrorFontColor = {read=FErrorFontColor, write=FErrorFontColor, default=16777215};
__property bool ExcelStyleDecimalSeparator = {read=FExcelStyleDecimalSeparator, write=FExcelStyleDecimalSeparator, default=0};
__property bool Flat = {read=FFlat, write=SetFlat, default=0};
__property Graphics::TColor FlatLineColor = {read=FFlatLineColor, write=SetFlatLineColor, default=0};
__property bool FlatParentColor = {read=FFlatParentColor, write=SetFlatParentColor, default=1};
__property TEditAlign FocusAlign = {read=FFocusAlign, write=FFocusAlign, default=2};
__property bool FocusBorder = {read=FFocusBorder, write=SetFocusBorder, default=0};
__property Graphics::TColor FocusBorderColor = {read=FFocusBorderColor, write=FFocusBorderColor, default=536870911};
__property Graphics::TColor FocusColor = {read=FFocusColor, write=FFocusColor, default=536870911};
__property Graphics::TColor FocusFontColor = {read=FFocusFontColor, write=FFocusFontColor, default=-16777208};
__property bool FocusLabel = {read=FFocusLabel, write=FFocusLabel, default=0};
__property int FocusWidthInc = {read=FFocusWidthInc, write=FFocusWidthInc, default=0};
__property int Height = {read=GetHeightEx, write=SetHeightEx, nodefault};
__property Graphics::TColor ModifiedColor = {read=FModifiedColor, write=FModifiedColor, default=-16777203};
__property Graphics::TColor DisabledColor = {read=FDisabledColor, write=SetDisabledColor, default=12632256};
__property bool ShowError = {read=FShowError, write=FShowError, default=0};
__property bool ShowModified = {read=FShowModified, write=FShowModified, default=0};
__property bool ShowURL = {read=FShowURL, write=FShowURL, default=0};
__property bool SoftBorder = {read=FSoftBorder, write=SetSoftBorder, default=0};
__property Graphics::TColor URLColor = {read=FURLColor, write=FURLColor, default=16711680};
__property bool ReturnIsTab = {read=FReturnIsTab, write=FReturnIsTab, default=0};
__property short LengthLimit = {read=FLengthLimit, write=FLengthLimit, default=0};
__property bool TabOnFullLength = {read=FTabOnFullLength, write=FTabOnFullLength, default=0};
__property short Precision = {read=FPrecision, write=SetPrecision, default=0};
__property AnsiString Prefix = {read=FPrefix, write=SetPrefix};
__property AnsiString Suffix = {read=FSuffix, write=SetSuffix};
__property AnsiString LabelCaption = {read=GetLabelCaption, write=SetLabelCaption};
__property TLabelPosition LabelPosition = {read=FLabelPosition, write=SetLabelPosition, default=0};
__property int LabelMargin = {read=FLabelMargin, write=SetLabelMargin, default=4};
__property bool LabelTransparent = {read=FLabelTransparent, write=SetLabelTransparent, default=0};
__property bool LabelAlwaysEnabled = {read=FLabelAlwaysEnabled, write=SetLabelAlwaysEnabled, default=0};
__property Graphics::TFont* LabelFont = {read=FLabelFont, write=SetLabelFont};
__property TLookupSettings* Lookup = {read=FLookup, write=FLookup};
__property TPersistence* Persistence = {read=FPersistence, write=FPersistence};
__property BevelEdges = {default=15};
__property BevelInner = {index=0, default=2};
__property BevelKind = {default=0};
__property BevelOuter = {index=1, default=1};
__property Anchors = {default=3};
__property BiDiMode ;
__property ParentBiDiMode = {default=1};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -