📄 dbgrideh.hpp
字号:
Toolctrlseh::TSpecRowEh* FSpecRow;
bool FUseMultiTitle;
int FWidth;
bool __fastcall GetAutoFitColWidths(void);
TColumnDefValuesEh* __fastcall GetColumnDefValues(void);
TDBGridColumnsEh* __fastcall GetColumns(void);
Db::TDataSource* __fastcall GetListSource(void);
TDBLookupGridEhOptions __fastcall GetOptions(void);
bool __fastcall GetSortLocal(void);
bool __fastcall StoreColumns(void);
void __fastcall SetAutoFitColWidths(const bool Value);
void __fastcall SetColumnDefValues(const TColumnDefValuesEh* Value);
void __fastcall SetColumns(const TDBGridColumnsEh* Value);
void __fastcall SetListSource(const Db::TDataSource* Value);
void __fastcall SetOptions(const TDBLookupGridEhOptions Value);
void __fastcall SetSpecRow(const Toolctrlseh::TSpecRowEh* Value);
void __fastcall SetSortLocal(const bool Value);
protected:
__property Dbctrls::TDropDownAlign Align = {read=FAlign, write=FAlign, default=0};
__property bool AutoDrop = {read=FAutoDrop, write=FAutoDrop, default=0};
__property int Rows = {read=FRows, write=FRows, default=7};
__property bool ShowTitles = {read=FShowTitles, write=FShowTitles, default=0};
__property bool Sizable = {read=FSizable, write=FSizable, default=0};
__property Toolctrlseh::TSpecRowEh* SpecRow = {read=FSpecRow, write=SetSpecRow};
__property int Width = {read=FWidth, write=FWidth, default=0};
public:
__fastcall TColumnDropDownBoxEh(Classes::TPersistent* Owner);
__fastcall virtual ~TColumnDropDownBoxEh(void);
DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__published:
__property bool AutoFitColWidths = {read=GetAutoFitColWidths, write=SetAutoFitColWidths, default=1};
__property TColumnDefValuesEh* ColumnDefValues = {read=GetColumnDefValues, write=SetColumnDefValues};
__property TDBGridColumnsEh* Columns = {read=GetColumns, write=SetColumns, stored=StoreColumns};
__property Db::TDataSource* ListSource = {read=GetListSource, write=SetListSource};
__property TDBLookupGridEhOptions Options = {read=GetOptions, write=SetOptions, default=2};
__property bool SortLocal = {read=GetSortLocal, write=SetSortLocal, default=0};
__property bool UseMultiTitle = {read=FUseMultiTitle, write=FUseMultiTitle, default=0};
};
class PASCALIMPLEMENTATION TColumnEh : public Classes::TCollectionItem
{
typedef Classes::TCollectionItem inherited;
private:
Classes::TAlignment FAlignment;
TColumnEhValues FAssignedValues;
Classes::TBiDiMode FBiDiMode;
TColumnButtonStyleEh FButtonStyle;
bool FCheckboxes;
DynamicArray<bool > FCheckedDuplicates;
Graphics::TColor FColor;
bool FDblClickNextVal;
AnsiString FDisplayFormat;
TColumnDropDownBoxEh* FDropDownBox;
unsigned FDropDownRows;
bool FDropDownShowTitles;
bool FDropDownSizing;
Toolctrlseh::TSpecRowEh* FDropDownSpecRow;
Toolctrlseh::TEditButtonsEh* FEditButtons;
AnsiString FEditMask;
Db::TField* FField;
AnsiString FFieldName;
Graphics::TFont* FFont;
TColumnFooterEh* FFooter;
TColumnFootersEh* FFooters;
bool FHideDuplicates;
bool FHighlightRequired;
Imglist::TCustomImageList* FImageList;
Imglist::TChangeLink* FImageChangeLink;
Controls::TImeMode FImeMode;
AnsiString FImeName;
Extended FIncrement;
Stdctrls::TTextLayout FLayout;
Classes::TStrings* FKeyList;
int FMaxWidth;
int FMinWidth;
Toolctrlseh::TMRUListEh* FMRUList;
int FNotInKeyListIndex;
bool FNotInWidthRange;
Toolctrlseh::TButtonClickEventEh FOnButtonClick;
Toolctrlseh::TButtonDownEventEh FOnButtonDown;
TGetColCellParamsEventEh FOnGetCellParams;
Toolctrlseh::TNotInListEventEh FOnNotInList;
Classes::TStrings* FPickList;
Menus::TPopupMenu* FPopupMenu;
bool FReadonly;
bool FStored;
bool FShowImageAndText;
int FTag;
TColumnTitleEh* FTitle;
bool FToolTips;
TColCellUpdateDataEventEh FUpdateData;
bool FVisible;
int FWidth;
TSTColumnFilterEh* FSTFilter;
Toolctrlseh::_di_IMemTableDataFieldValueListEh FFieldValueList;
TOnColumnCheckDrawRequiredStateEventEh FOnCheckDrawRequiredState;
bool __fastcall DefaultCheckboxes(void);
Classes::TAlignment __fastcall GetAlignment(void);
bool __fastcall GetAlwaysShowEditButton(void);
bool __fastcall GetAutoDropDown(void);
Classes::TBiDiMode __fastcall GetBiDiMode(void);
bool __fastcall GetCheckboxes(void);
Stdctrls::TCheckBoxState __fastcall GetCheckboxState(void);
Graphics::TColor __fastcall GetColor(void);
TCustomDBGridEh* __fastcall GetDataList(void);
bool __fastcall GetDblClickNextVal(void);
bool __fastcall GetDropDownShowTitles(void);
bool __fastcall GetDropDownSizing(void);
bool __fastcall GetEndEllipsis(void);
Db::TField* __fastcall GetField(void);
Graphics::TFont* __fastcall GetFont(void);
Controls::TImeMode __fastcall GetImeMode(void);
AnsiString __fastcall GetImeName();
bool __fastcall GetHighlightRequired(void);
Classes::TStrings* __fastcall GetKeykList(void);
Stdctrls::TTextLayout __fastcall GetLayout(void);
TCheckTitleEhBtnEvent __fastcall GetOnDropDownBoxCheckButton();
TDrawColumnEhCellEvent __fastcall GetOnDropDownBoxDrawColumnCell();
TGetCellEhParamsEvent __fastcall GetOnDropDownBoxGetCellParams();
Classes::TNotifyEvent __fastcall GetOnDropDownBoxSortMarkingChanged();
TTitleEhClickEvent __fastcall GetOnDropDownBoxTitleBtnClick();
Classes::TStrings* __fastcall GetPickList(void);
bool __fastcall GetReadOnly(void);
bool __fastcall GetShowImageAndText(void);
bool __fastcall GetToolTips(void);
int __fastcall GetWidth(void);
bool __fastcall IsAlignmentStored(void);
bool __fastcall IsAlwaysShowEditButtonStored(void);
bool __fastcall IsAutoDropDownStored(void);
bool __fastcall IsBiDiModeStored(void);
bool __fastcall IsCheckboxesStored(void);
bool __fastcall IsColorStored(void);
bool __fastcall IsDblClickNextValStored(void);
bool __fastcall IsDropDownShowTitlesStored(void);
bool __fastcall IsDropDownSizingStored(void);
bool __fastcall IsEndEllipsisStored(void);
bool __fastcall IsFontStored(void);
bool __fastcall IsImeModeStored(void);
bool __fastcall IsImeNameStored(void);
bool __fastcall IsIncrementStored(void);
bool __fastcall IsReadOnlyStored(void);
bool __fastcall IsToolTipsStored(void);
bool __fastcall IsWidthStored(void);
void __fastcall EditButtonChanged(System::TObject* Sender);
void __fastcall ImageListChange(System::TObject* Sender);
void __fastcall FontChanged(System::TObject* Sender);
void __fastcall SetBiDiMode(Classes::TBiDiMode Value);
void __fastcall SetButtonStyle(TColumnButtonStyleEh Value);
void __fastcall SetCheckboxes(const bool Value);
void __fastcall SetCheckboxState(const Stdctrls::TCheckBoxState Value);
void __fastcall SetColor(Graphics::TColor Value);
void __fastcall SetDblClickNextVal(const bool Value);
void __fastcall SetDisplayFormat(const AnsiString Value);
void __fastcall SetDropDownBox(const TColumnDropDownBoxEh* Value);
void __fastcall SetDropDownShowTitles(const bool Value);
void __fastcall SetDropDownSizing(const bool Value);
void __fastcall SetDropDownSpecRow(const Toolctrlseh::TSpecRowEh* Value);
void __fastcall SetEditButtons(const Toolctrlseh::TEditButtonsEh* Value);
void __fastcall SetEditMask(const AnsiString Value);
void __fastcall SetFieldName(const AnsiString Value);
void __fastcall SetFont(Graphics::TFont* Value);
void __fastcall SetFooter(const TColumnFooterEh* Value);
void __fastcall SetFooters(const TColumnFootersEh* Value);
void __fastcall SetImageList(const Imglist::TCustomImageList* Value);
void __fastcall SetKeykList(const Classes::TStrings* Value);
void __fastcall SetLayout(Stdctrls::TTextLayout Value);
void __fastcall SetMaxWidth(const int Value);
void __fastcall SetMinWidth(const int Value);
void __fastcall SetMRUList(const Toolctrlseh::TMRUListEh* Value);
void __fastcall SetNotInKeyListIndex(const int Value);
void __fastcall SetOnDropDownBoxCheckButton(const TCheckTitleEhBtnEvent Value);
void __fastcall SetOnDropDownBoxDrawColumnCell(const TDrawColumnEhCellEvent Value);
void __fastcall SetOnDropDownBoxGetCellParams(const TGetCellEhParamsEvent Value);
void __fastcall SetOnDropDownBoxSortMarkingChanged(const Classes::TNotifyEvent Value);
void __fastcall SetOnDropDownBoxTitleBtnClick(const TTitleEhClickEvent Value);
void __fastcall SetOnGetCellParams(const TGetColCellParamsEventEh Value);
void __fastcall SetPickList(Classes::TStrings* Value);
void __fastcall SetPopupMenu(Menus::TPopupMenu* Value);
void __fastcall SetShowImageAndText(const bool Value);
void __fastcall SetSTFilter(const TSTColumnFilterEh* Value);
void __fastcall SetTitle(TColumnTitleEh* Value);
void __fastcall SetToolTips(const bool Value);
void __fastcall SetVisible(const bool Value);
protected:
bool FAlwaysShowEditButton;
bool FAutoDropDown;
bool FAutoFitColWidth;
TCustomDBGridEh* FDataList;
int FDropDownWidth;
Db::TDataSource* FDTListSource;
bool FEndEllipsis;
int FInitWidth;
AnsiString FLookupDisplayFields;
bool FWordWrap;
int __fastcall AllowableWidth(int TryWidth);
virtual Toolctrlseh::TEditButtonsEh* __fastcall CreateEditButtons(void);
virtual TColumnFooterEh* __fastcall CreateFooter(void);
virtual TColumnFootersEh* __fastcall CreateFooters(void);
virtual TSTColumnFilterEh* __fastcall CreateSTFilter(void);
virtual TColumnTitleEh* __fastcall CreateTitle(void);
bool __fastcall DefaultAlwaysShowEditButton(void);
bool __fastcall DefaultAutoDropDown(void);
bool __fastcall DefaultDblClickNextVal(void);
bool __fastcall DefaultDropDownShowTitles(void);
bool __fastcall DefaultDropDownSizing(void);
bool __fastcall DefaultEndEllipsis(void);
bool __fastcall DefaultHighlightRequired(void);
Stdctrls::TTextLayout __fastcall DefaultLayout(void);
AnsiString __fastcall DefaultLookupDisplayFields();
bool __fastcall DefaultToolTips(void);
bool __fastcall DefaultWordWrap(void);
bool __fastcall GetAutoFitColWidth(void);
virtual AnsiString __fastcall GetDisplayName();
TCustomDBGridEh* __fastcall GetGrid(void);
AnsiString __fastcall GetLookupDisplayFields();
bool __fastcall GetWordWrap(void);
bool __fastcall IsHighlightRequiredStored(void);
bool __fastcall IsLayoutStored(void);
bool __fastcall IsLookupDisplayFieldsStored(void);
bool __fastcall IsWordWrapStored(void);
virtual bool __fastcall SeenPassthrough(void);
Db::TDataSet* __fastcall UsedLookupDataSet(void);
HIDESBASE void __fastcall Changed(bool AllItems);
Db::TDataSet* __fastcall FullListDataSet(void);
void __fastcall EnsureSumValue(void);
void __fastcall RefreshDefaultFont(void);
virtual void __fastcall SetAlignment(Classes::TAlignment Value);
void __fastcall SetAlwaysShowEditButton(bool Value);
void __fastcall SetAutoDropDown(bool Value);
virtual void __fastcall SetAutoFitColWidth(bool Value);
void __fastcall SetDropDownWidth(int Value);
void __fastcall SetEndEllipsis(const bool Value);
virtual void __fastcall SetField(Db::TField* Value);
virtual void __fastcall SetHideDuplicates(bool Value);
virtual void __fastcall SetHighlightRequired(bool Value);
virtual void __fastcall SetImeMode(Controls::TImeMode Value);
virtual void __fastcall SetImeName(AnsiString Value);
virtual void __fastcall SetIndex(int Value);
virtual void __fastcall SetLookupDisplayFields(AnsiString Value);
void __fastcall SetNextFieldValue(Extended Increment);
virtual void __fastcall SetReadOnly(bool Value);
virtual void __fastcall SetWidth(int Value);
virtual void __fastcall SetWordWrap(bool Value);
virtual void __fastcall SpecRowChanged(System::TObject* Sender);
void __fastcall UpdateDataValues(AnsiString Text, const Variant &Value, bool UseText);
__property bool IsStored = {read=FStored, write=FStored, default=1};
__property Toolctrlseh::_di_IMemTableDataFieldValueListEh FieldValueList = {read=FFieldValueList, write=FFieldValueList};
void __fastcall SetDropDownBoxListSource(Db::TDataSource* AListSource);
TCustomDBGridEh* __fastcall GetLookupGrid(void);
TDBLookupGridEhOptions __fastcall GetOptions(void);
void __fastcall SetOptions(TDBLookupGridEhOptions Value);
virtual HRESULT __stdcall QueryInterface(const GUID &IID, /* out */ void *Obj);
int __stdcall _AddRef(void);
int __stdcall _Release(void);
public:
__fastcall virtual TColumnEh(Classes::TCollection* Collection);
__fastcall virtual ~TColumnEh(void);
bool __fastcall CanModify(bool TryEdit);
Classes::TAlignment __fastcall DefaultAlignment(void);
Graphics::TColor __fastcall DefaultColor(void);
Graphics::TFont* __fastcall DefaultFont(void);
Controls::TImeMode __fastcall DefaultImeMode(void);
AnsiString __fastcall DefaultImeName();
bool __fastcall DefaultReadOnly(void);
int __fastcall DefaultWidth(void);
AnsiString __fastcall DisplayText();
int __fastcall DrawTextBiDiModeFlagsReadingOnly(void);
virtual bool __fastcall UseRightToLeftAlignment(void);
bool __fastcall UseRightToLeftReading(void);
bool __fastcall UseRightToLeftScrollBar(void);
int __fastcall EditButtonsWidth(void);
TColumnEhType __fastcall GetColumnType(void);
int __fastcall GetImageIndex(void);
TColumnFooterEh* __fastcall UsedFooter(int Index);
virtual void __fastcall Assign(Classes::TPersistent* Source);
void __fastcall DropDown(void);
void __fastcall FillColCellParams(TColCellParamsEh* ColCellParamsEh);
virtual void __fastcall GetColCellParams(bool EditMode, TColCellParamsEh* ColCellParamsEh);
virtual void __fastcall OptimizeWidth(void);
virtual void __fastcall RestoreDefaults(void);
__property TColumnEhValues AssignedValues = {read=FAssignedValues, nodefault};
__property Stdctrls::TCheckBoxState CheckboxState = {read=GetCheckboxState, write=SetCheckboxState, nodefault};
__property TCustomDBGridEh* DataList = {read=GetDataList};
__property Db::TField* Field = {read=GetField, write=SetField};
__property TCustomDBGridEh* Grid = {read=GetGrid};
__property Classes::TAlignment Alignment = {read=GetAlignment, write=SetAlignment, stored=IsAlignmentStored, nodefault};
__property bool AlwaysShowEditButton = {read=GetAlwaysShowEditButton, write=SetAlwaysShowEditButton, stored=IsAlwaysShowEditButtonStored, nodefault};
__property bool AutoDropDown = {read=GetAutoDropDown, write=SetAutoDropDown, stored=IsAutoDropDownStored, nodefault};
__property bool AutoFitColWidth = {read=GetAutoFitColWidth, write=SetAutoFitColWidth, default=1};
__property TColumnButtonStyleEh ButtonStyle = {read=FButtonStyle, write=SetButtonStyle, default=0};
__property bool Checkboxes = {read=GetCheckboxes, write=SetCheckboxes, stored=IsCheckboxesStored, nodefault};
__property Graphics::TColor Color = {read=GetColor, write=SetColor, stored=IsColorStored, nodefault};
__property Classes::TBiDiMode BiDiMode = {read=GetBiDiMode, write=SetBiDiMode, stored=IsBiDiModeStored, nodefault};
__property bool DblClickNextVal = {read=GetDblClickNextVal, write=SetDblClickNextVal, stored=IsDblClickNextValStored, nodefault};
__property AnsiString DisplayFormat = {read=FDisplayFormat, write=SetDisplayFormat};
__property TColumnDropDownBoxEh* DropDownBox = {read=FDropDownBox, write=SetDropDownBox};
__property unsigned DropDownRows = {read=FDropDownRows, write=FDropDownRows, default=7};
__property bool DropDownShowTitles = {read=GetDropDownShowTitles, write=SetDropDownShowTitles, stored=IsDropDownShowTitlesStored, nodefault};
__property bool DropDownSizing = {read=GetDropDownSizing, write=SetDropDownSizing, stored=IsDropDownSizingStored, nodefault};
__property Toolctrlseh::TSpecRowEh* DropDownSpecRow = {read=FDropDownSpecRow, write=SetDropDownSpecRow};
__property int DropDownWidth = {read=FDropDownWidth, write=SetDropDownWidth, default=0};
__property Toolctrlseh::TEditButtonsEh* EditButtons = {read=FEditButtons, write=SetEditButtons};
__property AnsiString EditMask = {read=FEditMask, write=SetEditMask};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -