advgrid.hpp

来自「TMSPack基本上涵盖了Delphi所有的基础控件」· HPP 代码 · 共 1,379 行 · 第 1/5 页

HPP
1,379
字号
	void __fastcall SetColor(const Graphics::TColor Value);
	
public:
	__fastcall TShowModified(void);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	
__published:
	__property bool Enabled = {read=FEnabled, write=FEnabled, default=0};
	__property Graphics::TColor Color = {read=FColor, write=SetColor, default=65535};
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
public:
	#pragma option push -w-inl
	/* TPersistent.Destroy */ inline __fastcall virtual ~TShowModified(void) { }
	#pragma option pop
	
};


class DELPHICLASS TSizeWhileTyping;
class PASCALIMPLEMENTATION TSizeWhileTyping : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	bool FHeight;
	bool FWidth;
	
public:
	__fastcall TSizeWhileTyping(void);
	__fastcall virtual ~TSizeWhileTyping(void);
	
__published:
	__property bool Height = {read=FHeight, write=FHeight, default=0};
	__property bool Width = {read=FWidth, write=FWidth, default=0};
};


#pragma option push -b-
enum TGridFixedCellEdit { fceNone, fceDblClick, fceLeftClick, fceRightClick };
#pragma option pop

#pragma option push -b-
enum TWheelAction { waMoveSelection, waScroll };
#pragma option pop

class DELPHICLASS TMouseActions;
class PASCALIMPLEMENTATION TMouseActions : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	TAdvStringGrid* FGrid;
	bool FColSelect;
	bool FRowSelect;
	bool FAllSelect;
	bool FDirectEdit;
	bool FDirectComboDrop;
	bool FDirectComboClose;
	bool FDirectDateClose;
	bool FDirectDateDrop;
	bool FDisjunctRowSelect;
	bool FDisjunctColSelect;
	bool FAllColumnSize;
	bool FAllRowSize;
	bool FCaretPositioning;
	bool FSizeFixedCol;
	bool FSizeFixedRow;
	bool FDisjunctCellSelect;
	TGridFixedCellEdit FFixedRowsEdit;
	TGridFixedCellEdit FFixedColsEdit;
	bool FHotmailRowSelect;
	bool FRangeSelectAndEdit;
	bool FNoAutoRangeScroll;
	bool FPreciseCheckBoxCheck;
	bool FCheckAllCheck;
	bool FNodeAllExpandContract;
	bool FMoveRowOnNodeClick;
	bool FRowSelectPersistent;
	bool FSelectOnRightClick;
	bool FNoScrollOnPartialRow;
	int FWheelIncrement;
	TWheelAction FWheelAction;
	bool FAutoSizeColOnDblClick;
	bool FEditOnDblClickOnly;
	Classes::TNotifyEvent FOnChange;
	void __fastcall SetDisjunctColSelect(const bool AValue);
	void __fastcall SetDisjunctRowSelect(const bool AValue);
	void __fastcall SetDisjunctCellSelect(const bool AValue);
	void __fastcall SetHotmailRowSelect(const bool AValue);
	void __fastcall SetEditOnDblClickOnly(const bool AValue);
	void __fastcall SetWheelAction(const TWheelAction Value);
	
protected:
	void __fastcall Changed(void);
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
	
public:
	__fastcall TMouseActions(Classes::TComponent* AOwner);
	__fastcall virtual ~TMouseActions(void);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	
__published:
	__property bool AllColumnSize = {read=FAllColumnSize, write=FAllColumnSize, default=0};
	__property bool AllRowSize = {read=FAllRowSize, write=FAllRowSize, default=0};
	__property bool AllSelect = {read=FAllSelect, write=FAllSelect, default=0};
	__property bool AutoSizeColOnDblClick = {read=FAutoSizeColOnDblClick, write=FAutoSizeColOnDblClick, default=1};
	__property bool CaretPositioning = {read=FCaretPositioning, write=FCaretPositioning, default=0};
	__property bool CheckAllCheck = {read=FCheckAllCheck, write=FCheckAllCheck, default=0};
	__property bool ColSelect = {read=FColSelect, write=FColSelect, default=0};
	__property bool DirectComboClose = {read=FDirectComboClose, write=FDirectComboClose, default=0};
	__property bool DirectComboDrop = {read=FDirectComboDrop, write=FDirectComboDrop, default=0};
	__property bool DirectDateClose = {read=FDirectDateClose, write=FDirectDateClose, default=0};
	__property bool DirectDateDrop = {read=FDirectDateDrop, write=FDirectDateDrop, default=0};
	__property bool DirectEdit = {read=FDirectEdit, write=FDirectEdit, default=0};
	__property bool DisjunctRowSelect = {read=FDisjunctRowSelect, write=SetDisjunctRowSelect, default=0};
	__property bool DisjunctColSelect = {read=FDisjunctColSelect, write=SetDisjunctColSelect, default=0};
	__property bool DisjunctCellSelect = {read=FDisjunctCellSelect, write=SetDisjunctCellSelect, default=0};
	__property bool EditOnDblClickOnly = {read=FEditOnDblClickOnly, write=SetEditOnDblClickOnly, default=0};
	__property TGridFixedCellEdit FixedRowsEdit = {read=FFixedRowsEdit, write=FFixedRowsEdit, default=0};
	__property TGridFixedCellEdit FixedColsEdit = {read=FFixedColsEdit, write=FFixedColsEdit, default=0};
	__property bool HotmailRowSelect = {read=FHotmailRowSelect, write=SetHotmailRowSelect, default=0};
	__property bool MoveRowOnNodeClick = {read=FMoveRowOnNodeClick, write=FMoveRowOnNodeClick, default=0};
	__property bool NoAutoRangeScroll = {read=FNoAutoRangeScroll, write=FNoAutoRangeScroll, default=0};
	__property bool NodeAllExpandContract = {read=FNodeAllExpandContract, write=FNodeAllExpandContract, default=0};
	__property bool NoScrollOnPartialRow = {read=FNoScrollOnPartialRow, write=FNoScrollOnPartialRow, default=0};
	__property bool PreciseCheckBoxCheck = {read=FPreciseCheckBoxCheck, write=FPreciseCheckBoxCheck, default=0};
	__property bool RangeSelectAndEdit = {read=FRangeSelectAndEdit, write=FRangeSelectAndEdit, default=0};
	__property bool RowSelect = {read=FRowSelect, write=FRowSelect, default=0};
	__property bool RowSelectPersistent = {read=FRowSelectPersistent, write=FRowSelectPersistent, default=0};
	__property bool SelectOnRightClick = {read=FSelectOnRightClick, write=FSelectOnRightClick, default=0};
	__property bool SizeFixedCol = {read=FSizeFixedCol, write=FSizeFixedCol, default=0};
	__property bool SizeFixedRow = {read=FSizeFixedRow, write=FSizeFixedRow, default=0};
	__property int WheelIncrement = {read=FWheelIncrement, write=FWheelIncrement, default=0};
	__property TWheelAction WheelAction = {read=FWheelAction, write=SetWheelAction, default=0};
};


#pragma option push -b-
enum TColumnSizeLocation { clRegistry, clIniFile };
#pragma option pop

class DELPHICLASS TColumnSize;
class PASCALIMPLEMENTATION TColumnSize : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	Classes::TComponent* Owner;
	bool FSave;
	AnsiString FKey;
	AnsiString FSection;
	bool FStretch;
	int FStretchColumn;
	bool FSynchWithGrid;
	TColumnSizeLocation FLocation;
	void __fastcall SetStretch(bool Value);
	
public:
	__fastcall TColumnSize(Classes::TComponent* AOwner);
	__fastcall virtual ~TColumnSize(void);
	
__published:
	__property bool Save = {read=FSave, write=FSave, default=0};
	__property AnsiString Key = {read=FKey, write=FKey};
	__property AnsiString Section = {read=FSection, write=FSection};
	__property bool Stretch = {read=FStretch, write=SetStretch, default=0};
	__property int StretchColumn = {read=FStretchColumn, write=FStretchColumn, default=-1};
	__property bool SynchWithGrid = {read=FSynchWithGrid, write=FSynchWithGrid, default=0};
	__property TColumnSizeLocation Location = {read=FLocation, write=FLocation, default=0};
};


class DELPHICLASS TGrouping;
class PASCALIMPLEMENTATION TGrouping : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	bool FMergeHeader;
	bool FMergeSummary;
	Graphics::TColor FHeaderColor;
	Graphics::TColor FSummaryColor;
	Graphics::TColor FHeaderColorTo;
	Graphics::TColor FHeaderTextColor;
	bool FSummary;
	Graphics::TColor FSummaryTextColor;
	Graphics::TColor FSummaryColorTo;
	bool FHeaderUnderline;
	bool FSummaryLine;
	int FSummaryLineWidth;
	int FHeaderLineWidth;
	Graphics::TColor FSummaryLineColor;
	Graphics::TColor FHeaderLineColor;
	bool FShowGroupCount;
	AnsiString FGroupCountFormat;
	bool FAutoSelectGroup;
	
public:
	__fastcall TGrouping(void);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	
__published:
	__property bool AutoSelectGroup = {read=FAutoSelectGroup, write=FAutoSelectGroup, default=0};
	__property AnsiString GroupCountFormat = {read=FGroupCountFormat, write=FGroupCountFormat};
	__property Graphics::TColor HeaderColor = {read=FHeaderColor, write=FHeaderColor, default=536870911};
	__property Graphics::TColor HeaderColorTo = {read=FHeaderColorTo, write=FHeaderColorTo, default=536870911};
	__property Graphics::TColor HeaderTextColor = {read=FHeaderTextColor, write=FHeaderTextColor, default=536870911};
	__property bool HeaderUnderline = {read=FHeaderUnderline, write=FHeaderUnderline, default=0};
	__property Graphics::TColor HeaderLineColor = {read=FHeaderLineColor, write=FHeaderLineColor, default=16711680};
	__property int HeaderLineWidth = {read=FHeaderLineWidth, write=FHeaderLineWidth, default=2};
	__property bool MergeHeader = {read=FMergeHeader, write=FMergeHeader, default=0};
	__property bool MergeSummary = {read=FMergeSummary, write=FMergeSummary, default=0};
	__property bool ShowGroupCount = {read=FShowGroupCount, write=FShowGroupCount, default=0};
	__property bool Summary = {read=FSummary, write=FSummary, default=0};
	__property Graphics::TColor SummaryColor = {read=FSummaryColor, write=FSummaryColor, default=536870911};
	__property Graphics::TColor SummaryColorTo = {read=FSummaryColorTo, write=FSummaryColorTo, default=536870911};
	__property Graphics::TColor SummaryTextColor = {read=FSummaryTextColor, write=FSummaryTextColor, default=536870911};
	__property bool SummaryLine = {read=FSummaryLine, write=FSummaryLine, default=0};
	__property Graphics::TColor SummaryLineColor = {read=FSummaryLineColor, write=FSummaryLineColor, default=16711680};
	__property int SummaryLineWidth = {read=FSummaryLineWidth, write=FSummaryLineWidth, default=2};
public:
	#pragma option push -w-inl
	/* TPersistent.Destroy */ inline __fastcall virtual ~TGrouping(void) { }
	#pragma option pop
	
};


#pragma option push -b-
enum THomeEndAction { heFirstLastColumn, heFirstLastRow };
#pragma option pop

class DELPHICLASS TNavigation;
class PASCALIMPLEMENTATION TNavigation : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	bool FAllowInsertRow;
	bool FAllowDeleteRow;
	bool FAdvanceOnEnter;
	bool FAdvanceInsert;
	bool FAutoGotoWhenSorted;
	bool FAutoGotoIncremental;
	bool FAutoComboDropSize;
	bool FAllowClipboardShortcuts;
	bool FAllowRTFClipboard;
	bool FAllowSmartClipboard;
	bool FAllowClipboardAlways;
	bool FAllowClipboardColGrow;
	bool FAllowClipboardRowGrow;
	bool FCopyHTMLTagsToClipboard;
	TAdvanceDirection FAdvanceDirection;
	bool FAdvanceAuto;
	bool FCursorWalkEditor;
	bool FCursorWalkAlwaysEdit;
	bool FMoveRowOnSort;
	bool FImproveMaskSel;
	bool FAlwaysEdit;
	TInsertPosition FInsertPosition;
	bool FLineFeedOnEnter;
	THomeEndAction FHomeEndKey;
	bool FKeepHorizScroll;
	bool FAllowFMTClipboard;
	bool FTabToNextAtEnd;
	bool FEditSelectAll;
	TAdvanceDirection FTabAdvanceDirection;
	bool FSkipFixedCells;
	bool FAllowCtrlEnter;
	bool FAppendOnArrowDown;
	bool FLeftRightRowSelect;
	bool FMoveScrollOnly;
	Classes::TNotifyEvent FOnChange;
	void __fastcall SetAutoGoto(bool aValue);
	void __fastcall SetAdvanceDirection(const TAdvanceDirection Value);
	

⌨️ 快捷键说明

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