Ah so. Yes, good for sneaky processing.

But if the intercept does anything like ShowMessage or ShowModal, the menu
is not displayed after.

In this case I am prompting for a password. If the password is accepted
and the user is in the right group etc, we want to continue and show the
menu...





> Hi,
>
>    > But what if the menu has no action? EG The "&File" menu on most
>    > applications simply drops down the menu.
>
> If you assign an OnClick handler to a TMenuItem such as File, the
> handler will execute and then the sub-menu will appear. This allows
> you to use your handler to enable or disable items in the sub-menu, add
> check marks, etc, before it displays.
>
> regards,
>
> Martin.
>


Reply via email to