Page 1 of 1

how to hide optionsmenu from TCRDBGrid

Posted: Fri 20 Apr 2007 05:03
by lyan
Sorry, this is not directly related to this group, but don't know where to post.

I am using TCRDBGrid, can i hide the options menu? if yes, how?

Thanks,
Lai Fu Yan

Posted: Tue 24 Apr 2007 07:14
by Alex
There is no options in TCRDBGrid to hide options menu.
You can assign your own popup menu using the TCRDBGrid.OptionsMenu property, or correct TCRDBGrid code manually:
Open the CRGrid.pas unit and find:

Code: Select all

procedure TCRDBGrid.IndicatorClick(Button: TIndicatorColButton; X, Y: integer);
Then comment next lines:

Code: Select all

     else
        FOptionsMenuDef.Popup(P.x, P.y);