📄 advmemo.hpp
字号:
bool FUseStyler;
TAdvCustomMemoStyler* FInternalStyles;
bool FCaseSensitive;
Forms::TFormBorderStyle FBorderStyle;
bool FAutoIndent;
int FMargin;
bool FHiddenCaret;
bool FCaretVisible;
TCellSize FCellSize;
int FCurX;
int FCurY;
int FbackupTopLine;
int FLeftCol;
int FTopLine;
int FTabSize;
Graphics::TFont* FFont;
Graphics::TColor FBkColor;
Graphics::TColor FSelColor;
Graphics::TColor FSelBkColor;
bool FReadOnly;
bool FDelErase;
bool FShowRightMargin;
bool FSmartTabs;
bool FEnhancedHomeKey;
TAdvMemoStrings* FLines;
int FSelStartX;
int FSelStartY;
int FSelEndX;
int FSelEndY;
int FPrevSelX;
int FPrevSelY;
Stdctrls::TScrollStyle FScrollBars;
TAdvActiveLineSettings* FActiveLineSettings;
TAdvGutter* FGutter;
Stdctrls::TScrollBar* sbVert;
Stdctrls::TScrollBar* sbHorz;
Graphics::TBitmap* FLineBitmap;
TFullPos FSelCharPos;
bool FLeftButtonDown;
bool FSelButtonDown;
bool FSelClick;
bool FSelDrag;
TScrollMode FScrollMode;
TAdvUndoList* FUndoList;
int FUndoLimit;
TStyle FBackupTopStyle;
AnsiString FTempdelimiters;
AnsiString FUrlDelimiters;
Extctrls::TTimer* Timer;
TAdvHintForm* FHintForm;
TAutoHintParameters FAutoHintParameters;
TCharStyle* FUrlStyle;
bool FUrlAware;
int FActiveLine;
bool FCtl3D;
Controls::TCursor FOldCursor;
Classes::TStringList* Html;
AnsiString Htmlfont;
int FMaxLength;
bool FLetShowAutoCompletion;
bool FSearching;
bool FHintShowing;
TAutoCompletionListBox* FListcompletion;
TAdvAutoform* FormAutoCompletion;
TAutoCompletion* FAutoCompletion;
TAdvMarkerList* FMarkerList;
TAdvStylerList* FStylerList;
Controls::TImageList* FAutoCompletionListImages;
bool FAutoThemeAdapt;
Classes::TNotifyEvent FOnChange;
Classes::TNotifyEvent FOnStatusChange;
Classes::TNotifyEvent FOnSelectionChange;
TGutterDrawEvent FOnGutterDraw;
TGutterClickEvent FOnGutterClick;
TGutterClickEvent FOnGutterRightClick;
TUndoChangeEvent FOnUndoChange;
TURLClick FOnURLClick;
Classes::TNotifyEvent FOnReplace;
Classes::TNotifyEvent FOnFind;
Classes::TNotifyEvent FOnAutoCompletion;
Classes::TNotifyEvent FOnCancelAutoCompletion;
Classes::TNotifyEvent FOnStartAutoCompletion;
TMemoActiveLineChangeEvent FOnActiveLineChange;
TMemoColumnChangeEvent FOnColumnChange;
TMemoMarkerAddedEvent FOnMarkerAdded;
TMemoMarkerRemovedEvent FOnMarkerRemoved;
TPrintOptions* FPrintOptions;
TAutoHintParameterPosition FAutoHintParameterPos;
AnsiString FtmpNoStart;
AnsiString FtmpNo;
AnsiString FtmpNoHex;
unsigned FCaretTime;
bool FletgetCaretTime;
bool FTrimTrailingSpaces;
unsigned FCaretX;
unsigned FCaretY;
int BSSelLine;
int BSSelStart;
int BSSelLen;
int BSOldSelLine;
int BESelLine;
int BESelStart;
int BESelLen;
int BEOldSelLine;
Classes::TNotifyEvent FOnCursorChange;
bool FBlockShow;
Graphics::TColor FBlockColor;
Graphics::TColor FBlockLineColor;
bool FOverwrite;
TAllowEvent FOnOverwriteToggle;
TMemoHintEvent FOnHintForWord;
TMemoHintEvent FOnHintForToken;
#pragma pack(push,1)
Types::TPoint FLastHintPos;
#pragma pack(pop)
TMemoWordEvent FonWordComplete;
bool FWantTab;
bool FHideSelection;
TAutoCorrect* FAutoCorrect;
TMemoBeforeCompleteEvent FOnBeforeAutoComplete;
TMemoGetCompletionListEvent FOnGetAutoCompletionList;
int FAutoHintParameterDelay;
Graphics::TBitmap* FBookmarkBmp;
TIntList* FBookmarkList;
TMemoInsertCompletionEntryEvent FOnInsertAutoCompletionEntry;
TMemoSortCompletionListEvent FOnSortAutoCompletionList;
TMemoGetParameterHintEvent FOnGetParameterHint;
bool FAutoExpand;
bool FAutoCompleteDot;
Extctrls::TTimer* FAutoCompleteTimer;
Classes::TStringList* FAutoCompleteList;
#pragma pack(push,1)
Types::TPoint FDotPoint;
#pragma pack(pop)
bool FAllowAutoHint;
TIntList* FWWList;
AnsiString FCachedDelimiters;
TAdvMemoSource* FMemoSource;
int FRightMargin;
Graphics::TColor FRightMarginColor;
Graphics::TColor FBreakpointColor;
Graphics::TColor FBreakpointTextColor;
bool FAcceptFiles;
TWordWrapStyle FWordWrap;
bool FScrollHint;
Controls::THintWindow* FScrollHintWindow;
Classes::TNotifyEvent FOnTopLeftChanged;
TAdvMemoFileDropEvent FOnFileDrop;
TAdvMemoScrollHintEvent FOnScrollHint;
TAdvMemoChecker* FMemoChecker;
Rtfengine::TRTFEngine* FRTFEngine;
TCodeFolding* FCodeFolding;
TGutterClickEvent FOnGutterDblClick;
bool FCursorChangedTrigered;
bool FShouldCheckCodeFolding;
int FCodeFoldingNodeCount;
Graphics::TColor FBorderColor;
void __fastcall OnCodeFoldingChange(System::TObject* Sender, int ChangeMsg);
TAdvUndoList* __fastcall InternalUndoList(void);
void __fastcall SetMemoSource(const TAdvMemoSource* Value);
bool __fastcall GetModified(void);
void __fastcall SetModified(const bool Value);
void __fastcall AutoCompleteTimer(System::TObject* Sender);
void __fastcall UpdateCompletionList(AnsiString token);
int __fastcall SortAutoCompletList(Classes::TStringList* List, int Index1, int Index2);
bool __fastcall IsDelimiter(char value);
void __fastcall ShowForm(bool ShowAlways);
void __fastcall HideForm(void);
void __fastcall PrepareShowHint(void);
bool __fastcall SearchParameter(void);
void __fastcall FormHintMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
void __fastcall Hideauto(System::TObject* Sender);
void __fastcall ListKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
void __fastcall ListMouseUp(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
void __fastcall FormHintClose(System::TObject* Sender, Forms::TCloseAction &Action);
void __fastcall TimerHint(System::TObject* Sender);
void __fastcall FormClose(System::TObject* Sender, Forms::TCloseAction &Action);
void __fastcall SetHiddenCaret(bool Value);
void __fastcall SetScrollBars(Stdctrls::TScrollStyle Value);
void __fastcall SetUseStyler(const bool Value);
void __fastcall SetCaseSensitive(bool Value);
void __fastcall SetCurX(int Value);
void __fastcall SetCurY(int Value);
HIDESBASE void __fastcall SetFont(Graphics::TFont* Value);
HIDESBASE void __fastcall SetColor(int Index, Graphics::TColor Value);
void __fastcall SetBorderColor(const Graphics::TColor Value);
void __fastcall SetLines(TAdvMemoStrings* ALines);
void __fastcall ExpandSelection(void);
AnsiString __fastcall GetSelText();
void __fastcall SetSelText(const AnsiString AValue);
int __fastcall GetSelLength(void);
void __fastcall MovePage(int dP, Classes::TShiftState Shift);
void __fastcall ShowCaret(bool State);
void __fastcall MakeVisible(void);
int __fastcall GetVisible(int Index);
void __fastcall SetMaxLength(void);
AnsiString __fastcall TrimRightWW(int LineNo);
MESSAGE void __fastcall WMSysChar(Messages::TWMKey &Msg);
MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Msg);
HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &Msg);
HIDESBASE MESSAGE void __fastcall WMSetCursor(Messages::TWMSetCursor &Msg);
HIDESBASE MESSAGE void __fastcall WMContextMenu(Messages::TWMContextMenu &Message);
HIDESBASE MESSAGE void __fastcall WMCommand(Messages::TWMCommand &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
MESSAGE void __fastcall WMDropFiles(Messages::TMessage &Message);
MESSAGE void __fastcall CMWantSpecialKey(Messages::TWMKey &Msg);
HIDESBASE MESSAGE void __fastcall CMHintShow(Messages::TMessage &Msg);
void __fastcall SetSmartTabs(const bool Value);
void __fastcall SetAcceptFiles(const bool Value);
void __fastcall SetEnhancedHomeKey(const bool Value);
void __fastcall SetShowRightMargin(const bool Value);
void __fastcall SetTrimTrailingSpaces(const bool Value);
AnsiString __fastcall FormatLineNumber(int &Position, int Line);
void __fastcall MoveCursor(int dX, int dY, Classes::TShiftState Shift);
void __fastcall ResizeEditor(void);
void __fastcall ResizeScrollBars(bool DoRepaint);
void __fastcall ResizeGutter(void);
void __fastcall DoCommand(int cmd, const Classes::TShiftState AShift);
void __fastcall DrawLine(Graphics::TCanvas* ACanvas, int LineNo, TStyle &Style, TDrawMode DM, const Types::TRect &PR, int VisLineNo = 0xffffffff);
void __fastcall DrawHTML(AnsiString Part, TStyle &Drawstyle, int lineno);
void __fastcall DrawRTF(AnsiString Part, TStyle &Drawstyle, int lineno);
void __fastcall ExtractURL(AnsiString s, Classes::TStringList* &urls);
void __fastcall FreshLineBitmap(void);
void __fastcall SetUndoLimit(int Value);
int __fastcall GetSelStart(void);
void __fastcall SetSelStart(const int Value);
void __fastcall SetSelLength(const int Value);
void __fastcall SetActiveLine(const int Value);
void __fastcall SetBorderStyle(const Forms::TBorderStyle Value);
HIDESBASE void __fastcall SetCtl3D(const bool Value);
void __fastcall UpdateGutter(void);
void __fastcall SetLeftCol(const int Value);
void __fastcall SetWordWrap(const TWordWrapStyle Value);
void __fastcall SetTopLine(const int Value);
void __fastcall SetMemoStyler(TAdvCustomMemoStyler* Value);
TStyle __fastcall GetUpStyle(int stopat);
void __fastcall SetUrlAware(const bool Value);
void __fastcall SetUrlStyle(const TCharStyle* Value);
void __fastcall ScrollVChange(System::TObject* Sender);
void __fastcall ScrollHChange(System::TObject* Sender);
bool __fastcall GetBreakPoint(int Index);
void __fastcall SetBreakPoint(int Index, const bool Value);
bool __fastcall GetModifiedState(int Index);
void __fastcall SetModifiedState(int Index, const bool Value);
bool __fastcall GetWrapped(int Index);
void __fastcall SetWrapped(int Index, const bool Value);
bool __fastcall GetBookmark(int Index);
void __fastcall SetBookmark(int Index, const bool Value);
bool __fastcall GetExecutable(int Index);
void __fastcall SetExecutable(int Index, const bool Value);
void __fastcall SetLineStyle(int Index, const TStyle &LineStyle);
void __fastcall ClearLineStyles(void);
bool __fastcall GetLineStyle(int Index, TStyle &LineStyle);
void __fastcall SwapColors(void);
void __fastcall SetEventAutoCompletion(void);
void __fastcall KilleventAutoCompletion(void);
void __fastcall SetAutoHintParameters(const TAutoHintParameters Value);
void __fastcall SetPrintOptions(const TPrintOptions* Value);
void __fastcall SetAutoHintParameterDelay(const int Value);
int __fastcall GetBookmarks(int Index);
void __fastcall SetBookmarks(int Index, const int Value);
TAdvCustomMemoStyler* __fastcall GetInternalStyles(void);
TAdvMemoStrings* __fastcall GetInternalLines(void);
void __fastcall SetInternalLines(const TAdvMemoStrings* Value);
void __fastcall SetRightMargin(const int Value);
void __fastcall SetRightMarginColor(const Graphics::TColor Value);
void __fastcall SetBreakpointColor(const Graphics::TColor Value);
void __fastcall SetBreakpointTextColor(const Graphics::TColor Value);
void __fastcall SetHideSelection(const bool Value);
void __fastcall DoActiveLineChange(int LnNo);
void __fastcall DoColumnChange(int ColNo);
void __fastcall DoMarkerAdded(int LnNo, AnsiString MarkerText);
void __fastcall DoMarkerRemoved(int LnNo);
void __fastcall SearchForStylers(void);
int __fastcall GetMarkerCount(void);
void __fastcall SetAutoCompletionListImages(Controls::TImageList* IL);
void __fastcall SetMemoChecker(const TAdvMemoChecker* AMemoChecker);
void __fastcall SetVersion(const AnsiString Value);
AnsiString __fastcall GetVersion();
void __fastcall SetCodeFolding(TCodeFolding* Value);
bool __fastcall GetExpandNode(int Index);
void __fastcall SetExpandNode(int Index, const bool Value);
void __fastcall SetAutoThemeAdapt(const bool value);
protected:
bool FLetRefresh;
int __fastcall VisIndexToLineIndex(int Index);
int __fastcall LineIndexToVisIndex(int Index);
int __fastcall LastChildOfParent(int ParentIndex);
void __fastcall ExpandParents(int ChildIndex);
void __fastcall RemoveCodeFoldingFromChild(int EndLineIndex);
bool __fastcall IsCommentedNode(int LineIndex);
bool __fastcall GetNodeComments(int LineIndex, int &RgnIndex, AnsiString &Coments);
void __fastcall ResetMemoState(const TAdvMemoSavePos &value);
void __fastcall GetMemoState(TAdvMemoSavePos &value);
__property TAdvCustomMemoStyler* InternalStyles = {read=GetInternalStyles};
__property TAdvMemoStrings* InternalLines = {read=GetInternalLines, write=SetInternalLines};
DYNAMIC bool __fastcall DoMouseWheelDown(Classes::TShiftState Shift, const Types::TPoint &MousePos);
DYNAMIC bool __fastcall DoMouseWheelUp(Classes::TShiftState Shift, const Types::TPoint &MousePos);
virtual void __fastcall WndProc(Messages::TMessage &Message);
void __fastcall SelClickUpdate(int X, int Y, bool Down, Classes::TShiftState Shift, Controls::TMouseButton Button);
Types::TRect __fastcall EditorRect();
Types::TRect __fastcall CodeFoldingRect();
TCellPos __fastcall CellFromPos(int X, int Y);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -