📄 epgrids.hpp
字号:
void __fastcall ModifyScrollBar(unsigned ScrollBar, unsigned ScrollCode, unsigned Pos);
void __fastcall MoveAdjust(int &CellPos, int FromIndex, int ToIndex);
void __fastcall MoveAnchor(const TGridCoord &NewAnchor);
void __fastcall MoveAndScroll(int Mouse, int CellHit, TGridDrawInfo &DrawInfo, TGridAxisDrawInfo &Axis, int Scrollbar);
void __fastcall MoveCurrent(int ACol, int ARow, bool MoveAnchor, bool Show);
void __fastcall MoveTopLeft(int ALeft, int ATop);
void __fastcall ResizeCol(int Index, int OldSize, int NewSize);
void __fastcall ResizeRow(int Index, int OldSize, int NewSize);
void __fastcall SelectionMoved(const TGridRect &OldSel);
void __fastcall ScrollDataInfo(int DX, int DY, TGridDrawInfo &DrawInfo);
void __fastcall TopLeftMoved(const TGridCoord &OldTopLeft);
void __fastcall UpdateScrollPos(void);
void __fastcall UpdateScrollRange(void);
int __fastcall GetColWidths(int Index);
int __fastcall GetRowHeights(int Index);
TGridRect __fastcall GetSelection();
bool __fastcall GetTabStops(int Index);
int __fastcall GetVisibleColCount(void);
int __fastcall GetVisibleRowCount(void);
bool __fastcall IsActiveControl(void);
void __fastcall ReadColWidths(Classes::TReader* Reader);
void __fastcall ReadRowHeights(Classes::TReader* Reader);
void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
void __fastcall SetCol(int Value);
void __fastcall SetColCount(int Value);
void __fastcall SetColWidths(int Index, int Value);
void __fastcall SetDefaultColWidth(int Value);
void __fastcall SetDefaultRowHeight(int Value);
void __fastcall SetEditorMode(bool Value);
void __fastcall SetFixedColor(Graphics::TColor Value);
void __fastcall SetFixedCols(int Value);
void __fastcall SetFixedRows(int Value);
void __fastcall SetGridLineWidth(int Value);
void __fastcall SetLeftCol(int Value);
void __fastcall SetOptions(TGridOptions Value);
void __fastcall SetRow(int Value);
void __fastcall SetRowCount(int Value);
void __fastcall SetRowHeights(int Index, int Value);
void __fastcall SetScrollBars(Stdctrls::TScrollStyle Value);
void __fastcall SetSelection(const TGridRect &Value);
void __fastcall SetTabStops(int Index, bool Value);
void __fastcall SetTopRow(int Value);
void __fastcall UpdateEdit(void);
void __fastcall UpdateText(void);
void __fastcall WriteColWidths(Classes::TWriter* Writer);
void __fastcall WriteRowHeights(Classes::TWriter* Writer);
MESSAGE void __fastcall CMCancelMode(Messages::TMessage &Msg);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMDesignHitTest(Messages::TWMMouse &Msg);
MESSAGE void __fastcall CMWantSpecialKey(Messages::TWMKey &Msg);
HIDESBASE MESSAGE void __fastcall WMChar(Messages::TWMKey &Msg);
HIDESBASE MESSAGE void __fastcall WMCommand(Messages::TWMCommand &Message);
MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Msg);
HIDESBASE MESSAGE void __fastcall WMHScroll(Messages::TWMScroll &Msg);
HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Msg);
HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMNCHitTest(Messages::TWMNCHitTest &Msg);
HIDESBASE MESSAGE void __fastcall WMSetCursor(Messages::TWMSetCursor &Msg);
HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Msg);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Msg);
MESSAGE void __fastcall WMTimer(Messages::TWMTimer &Msg);
HIDESBASE MESSAGE void __fastcall WMVScroll(Messages::TWMScroll &Msg);
HIDESBASE MESSAGE void __fastcall WMMove(Messages::TWMMove &Message);
HIDESBASE MESSAGE void __fastcall WMEraseBkGnd(Messages::TWMEraseBkgnd &Msg);
protected:
TGridState FGridState;
bool FSaveCellExtents;
TGridOptions DesignOptionsBoost;
bool VirtualView;
virtual TepInplaceEdit* __fastcall CreateEditor(void);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
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);
DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
HIDESBASEDYNAMIC void __fastcall AdjustSize(int Index, int Amount, bool Rows);
Types::TRect __fastcall BoxRect(int ALeft, int ATop, int ARight, int ABottom);
DYNAMIC void __fastcall DoExit(void);
Types::TRect __fastcall CellRect(int ACol, int ARow);
DYNAMIC bool __fastcall CanEditAcceptKey(char Key);
DYNAMIC bool __fastcall CanGridAcceptKey(Word Key, Classes::TShiftState Shift);
DYNAMIC bool __fastcall CanEditModify(void);
virtual bool __fastcall CanEditShow(void);
DYNAMIC AnsiString __fastcall GetEditText(int ACol, int ARow);
DYNAMIC void __fastcall SetEditText(int ACol, int ARow, const AnsiString Value);
DYNAMIC AnsiString __fastcall GetEditMask(int ACol, int ARow);
DYNAMIC int __fastcall GetEditLimit(void);
int __fastcall GetGridWidth(void);
int __fastcall GetGridHeight(void);
void __fastcall HideEditor(void);
void __fastcall ShowEditor(void);
void __fastcall ShowEditorChar(char Ch);
void __fastcall InvalidateEditor(void);
void __fastcall MoveColumn(int FromIndex, int ToIndex);
DYNAMIC void __fastcall ColumnMoved(int FromIndex, int ToIndex);
void __fastcall MoveRow(int FromIndex, int ToIndex);
DYNAMIC void __fastcall RowMoved(int FromIndex, int ToIndex);
virtual void __fastcall DrawCell(int ACol, int ARow, const Types::TRect &ARect, TGridDrawState AState) = 0 ;
virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
void __fastcall MoveColRow(int ACol, int ARow, bool MoveAnchor, bool Show);
virtual bool __fastcall SelectCell(int ACol, int ARow);
DYNAMIC void __fastcall SizeChanged(int OldColCount, int OldRowCount);
bool __fastcall Sizing(int X, int Y);
void __fastcall ScrollData(int DX, int DY);
void __fastcall InvalidateCell(int ACol, int ARow);
void __fastcall InvalidateCol(int ACol);
void __fastcall InvalidateRow(int ARow);
DYNAMIC void __fastcall TopLeftChanged(void);
DYNAMIC void __fastcall TimedScroll(TGridScrollDirection Direction);
virtual void __fastcall Paint(void);
DYNAMIC void __fastcall ColWidthsChanged(void);
DYNAMIC void __fastcall RowHeightsChanged(void);
void __fastcall DeleteColumn(int ACol);
void __fastcall DeleteRow(int ARow);
void __fastcall UpdateDesigner(void);
__property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
__property int Col = {read=FCurrent.X, write=SetCol, nodefault};
__property Color = {default=-2147483643};
__property int ColCount = {read=FColCount, write=SetColCount, default=5};
__property int ColWidths[int Index] = {read=GetColWidths, write=SetColWidths};
__property int DefaultColWidth = {read=FDefaultColWidth, write=SetDefaultColWidth, default=64};
__property bool DefaultDrawing = {read=FDefaultDrawing, write=FDefaultDrawing, default=1};
__property int DefaultRowHeight = {read=FDefaultRowHeight, write=SetDefaultRowHeight, default=24};
__property bool EditorMode = {read=FEditorMode, write=SetEditorMode, nodefault};
__property Graphics::TColor FixedColor = {read=FFixedColor, write=SetFixedColor, default=-2147483633};
__property int FixedCols = {read=FFixedCols, write=SetFixedCols, default=1};
__property int FixedRows = {read=FFixedRows, write=SetFixedRows, default=1};
__property int GridHeight = {read=GetGridHeight, nodefault};
__property int GridLineWidth = {read=FGridLineWidth, write=SetGridLineWidth, default=1};
__property int GridWidth = {read=GetGridWidth, nodefault};
__property Types::TPoint HitTest = {read=FHitTest};
__property TepInplaceEdit* InplaceEditor = {read=FInplaceEdit};
__property int LeftCol = {read=FTopLeft.X, write=SetLeftCol, nodefault};
__property TGridOptions Options = {read=FOptions, write=SetOptions, default=31};
__property ParentColor = {default=0};
__property int Row = {read=FCurrent.Y, write=SetRow, nodefault};
__property int RowCount = {read=FRowCount, write=SetRowCount, default=5};
__property int RowHeights[int Index] = {read=GetRowHeights, write=SetRowHeights};
__property Stdctrls::TScrollStyle ScrollBars = {read=FScrollBars, write=SetScrollBars, default=3};
__property TGridRect Selection = {read=GetSelection, write=SetSelection};
__property bool TabStops[int Index] = {read=GetTabStops, write=SetTabStops};
__property int TopRow = {read=FTopLeft.Y, write=SetTopRow, nodefault};
__property int VisibleColCount = {read=GetVisibleColCount, nodefault};
__property int VisibleRowCount = {read=GetVisibleRowCount, nodefault};
public:
__fastcall virtual TepCustomGrid(Classes::TComponent* AOwner);
__fastcall virtual ~TepCustomGrid(void);
TGridCoord __fastcall MouseCoord(int X, int Y);
__property Graphics::TColor EditColor = {read=FEditColor, write=FEditColor, nodefault};
__property Medialib::TepBitmap* WallPaper = {read=FWallPaper, write=SetWallPaper};
__property bool Transparent = {read=FTransparent, write=SetTransparent, nodefault};
__property Graphics::TColor LinesColor = {read=FLinesColor, write=SetLinesColor, nodefault};
__property bool FixedTransparent = {read=FFixedTransparent, write=SetFixedTransparent, nodefault};
__property bool UseFrameFocus = {read=FUseFrameFocus, write=FUseFrameFocus, nodefault};
__property Graphics::TColor SelectColor = {read=FSelectColor, write=SetSelectColor, nodefault};
__property Graphics::TColor SelectTextColor = {read=FSelectTextColor, write=SetSelectTextColor, nodefault};
__property bool TransparentSelect = {read=FTransparentSelect, write=SetTransparentSelect, nodefault};
__property Graphics::TColor InnerColor = {read=FInnerColor, write=SetInnerColor, nodefault};
__property Graphics::TColor OuterColor = {read=FOuterColor, write=SetOuterColor, nodefault};
__property Graphics::TColor FocusFrameInnerColor = {read=FFocusFrameInnerColor, write=SetFocusFrameInnerColor, nodefault};
__property Graphics::TColor FocusFrameOuterColor = {read=FFocusFrameOuterColor, write=SetFocusFrameOuterColor, nodefault};
__published:
__property TabStop = {default=1};
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TepCustomGrid(HWND ParentWindow) : Controls::TCustomControl(ParentWindow) { }
#pragma option pop
};
class PASCALIMPLEMENTATION TepInplaceEdit : public TepTransparentMaskEdit
{
typedef TepTransparentMaskEdit inherited;
private:
TepCustomGrid* FGrid;
int FClickTime;
void __fastcall InternalMove(const Types::TRect &Loc, bool Redraw);
void __fastcall SetGrid(TepCustomGrid* Value);
HIDESBASE MESSAGE void __fastcall CMShowingChanged(Messages::TMessage &Message);
MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMPaste(void *Message);
HIDESBASE MESSAGE void __fastcall WMCut(void *Message);
HIDESBASE MESSAGE void __fastcall WMClear(void *Message);
HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
DYNAMIC void __fastcall DblClick(void);
virtual bool __fastcall EditCanModify(void);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
DYNAMIC void __fastcall KeyPress(char &Key);
DYNAMIC void __fastcall KeyUp(Word &Key, Classes::TShiftState Shift);
virtual void __fastcall BoundsChanged(void);
virtual void __fastcall UpdateContents(void);
virtual void __fastcall WndProc(Messages::TMessage &Message);
__property TepCustomGrid* Grid = {read=FGrid};
public:
__fastcall virtual TepInplaceEdit(Classes::TComponent* AOwner);
void __fastcall Deselect(void);
HIDESBASE void __fastcall Hide(void);
HIDESBASE void __fastcall Invalidate(void);
void __fastcall Move(const Types::TRect &Loc);
bool __fastcall PosEqual(const Types::TRect &Rect);
HIDESBASE void __fastcall SetFocus(void);
void __fastcall UpdateLoc(const Types::TRect &Loc);
HIDESBASE bool __fastcall Visible(void);
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TepInplaceEdit(HWND ParentWindow) : TepTransparentMaskEdit(ParentWindow) { }
#pragma option pop
#pragma option push -w-inl
/* TWinControl.Destroy */ inline __fastcall virtual ~TepInplaceEdit(void) { }
#pragma option pop
};
#pragma pack(push, 4)
struct TGridRect
{
union
{
struct
{
TGridCoord TopLeft;
TGridCoord BottomRight;
};
struct
{
int Left;
int Top;
int Right;
int Bottom;
};
};
} ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -