Good morning,
I created a context (right-click) menu which is a menubar wih four options. In case the user rigth clicks in a row of a table control, all four options have to be able to be selected. Otherwise, in case the user rights click beyond (outside) a row of the table control, only two options have to be able to be selected (2 options have to be dimmed).
Piece of code i am using for creation of context menu:
ContextMenuBar = NewMenuBar (0);
ContextMenuID = NewMenu (ContextMenuBar, "ContextMenu", -1);
NewMenuItem (ContextMenuBar, ContextMenuID, "Connect", -1, 0, Connect_RightClickCallback, 0); //three more options are created here in the same way
I need to know how i can dimm/undimm or remove/insert those 2 options programmatically depending on the position the right click was done (i can detect the position of the mouse when EVENT_RIGHT_CLICK_UP is triggered to determine if it is over or outside a row of table control).
Regards!
Alejandro Pinto