tovergaard
asked on
Menu in a TDialog object (Borland C++ v4.5)
I have with Borland C++ 4.5 Resource workshop defined a dialogbox and included a menu in the dialog.
From my TDialog object do I want to act on the menu selections (the menu is showed automatic)
How can in the TDialog object catch when a menu item is selected/activated.
What must the response tabel contain ?
Must I do more than define a response tabel ?
E.g. any init of the menu ? Or connecting the menu to the Dialog.
Now my response table contain this:
DEFINE_RESPONSE_TABLE1(T_D C_createDa taDialog, TDialog)
EV_COMMAND(IDM_EN_OPEN, SelectTDEfile),
// IDM_EN_OPEN = the menu item.
// SelectTDEfile = the function.
END_RESPONSE_TABLE;
I hope it makes sense.
From my TDialog object do I want to act on the menu selections (the menu is showed automatic)
How can in the TDialog object catch when a menu item is selected/activated.
What must the response tabel contain ?
Must I do more than define a response tabel ?
E.g. any init of the menu ? Or connecting the menu to the Dialog.
Now my response table contain this:
DEFINE_RESPONSE_TABLE1(T_D
EV_COMMAND(IDM_EN_OPEN, SelectTDEfile),
// IDM_EN_OPEN = the menu item.
// SelectTDEfile = the function.
END_RESPONSE_TABLE;
I hope it makes sense.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.