Defining an Exit Action
 
To define an exit action, make an extra call to ProMenubuttonActionSet(), but instead of the button name (the third argument), specify the menu name.
If you want the menus to unwind and the new command to be entered, use ProMenuDelete() as the action function.
If you want the selection to be ignored, use the function ProMenuHold() as the exit action. If you use this function, you must provide some other exit route for the menu. For example, you can specify an explicit menu button (such as Done) whose command function calls ProMenuDelete().
If you want to perform some additional action in these cases (such as sending a warning to the user), you can provide your own exit function that performs the action and then calls ProMenuHold().
Was this helpful?