CRDBGrid: Modifying the OptionsMenu Property, how do I do it?

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
stoneweasel
Posts: 2
Joined: Wed 21 Feb 2007 11:48

CRDBGrid: Modifying the OptionsMenu Property, how do I do it?

Post by stoneweasel » Wed 21 Feb 2007 11:56

Hi there,
I realise I am probably being a little dense but I am having great difficulty in modifying the options offered to the user in the OptionsMenu popup menu.

The CRDBGrid help file simply states "User can change content of this menu using OptionsMenu property." but CRDBGrid.OptionsMenu appears to me to be a TPopupMenu that always returns nil making it a little tricky to modify.

Any help would be appreciated,

Denzil

P.S. The end result I am after is to offer the option of the search bar in the popup menu but not the filtered or filter bar options.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Wed 21 Feb 2007 13:15

You should assign your own Popup menu to the OptionsMenu property. If this property is not assigned, the default menu of CRDBGrid is used.

Post Reply