Hi
>i have a shortcut menu which gets activated when the user clicks the right mouse button. In this shortcut menu, i have the following options viz. CUT, COPY, PASTE, UNDO, REDO.
>
>I want the options CUT, COPY, PASTE, UNDO and REDO to be enabled only when the program is in the ADD/EDIT/MODIFY mode in my software. Otherwise, these options should be disabled at all times.
>
>How can accomplish this ?
Check the SKIP FOR clause in the Menu. This will allow you to enable/disable options depending on the state of some external variable (i.e. your mode identifier). Do make sure that it is in scope for the menu though (i.e. make it Private at least)
----
Regards
Andy Kramek