Hi I have a TDBGrid::DBGrid1, Im trying to change its options property TCustomDBGrid::Options via code, not interface.
image:
https://i.imgur.com/Ha0J2Nj.png
When I read the documentation of that property, it says:
1 2 3 4 5 6 7 8
|
[bold]CustomDBGrid::Options[/bold]
enum TDBGridOption { dgEditing, dgAlwaysShowEditor, dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit,dgMultiSelect };
typedef Set<TDBGridOption, dgEditing, dgMultiSelect> TDBGridOptions;
__property TDBGridOptions Options = {read=FOptions, write=SetOptions, default
=3325};
|
also documentation image:
https://i.imgur.com/l2t1Qfe.png
I understand that those options are type of enum
So I wanted to make it like this: GBGrid1->Options = [dgEditing, dgTabs, ...];
When I call the property in the code the compiler scrolls the following list of predicting:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
Function TDBGridOptions & TDBGridOptions::operator = (const TDBGridOptions &)
Function TDBGridOptions & TDBGridOptions::operator += (const TDBGridOptions &)
Function TDBGridOptions & TDBGridOptions::operator -= (const TDBGridOptions &)
Function TDBGridOptions & TDBGridOptions::operator *= (const TDBGridOptions &)
Function TDBGridOptions TDBGridOptions::operator + (const TDBGridOptions &) const
Function TDBGridOptions TDBGridOptions::operator - (const TDBGridOptions &) const
Function TDBGridOptions TDBGridOptions::operator * (const TDBGridOptions &) const
Function TDBGridOptions & TDBGridOptions::operator >> (const TDBGridOption)
Function bool TDBGridOptions::Contains (const TDBGridOption) const
Function TDBGridOptions & TDBGridOptions::Clear ()
Function bool TDBGridOptions::Empty () const
Function bool TDBGridOptions::operator == (const TDBGridOptions &) const
Function bool TDBGridOptions::operator != (const TDBGridOptions &) const
|
also image:
https://i.imgur.com/A3aiZTq.png
when I call DBGrid1->Options.Contains(dgEditing) it returns a bool if containts that option, until that crystal clear.
Im struggling, if someone can help me with this. Thanks in advance.