21
edits
Changes
no edit summary
{{OOP344 Index | 20113}}
This pseudo code is tested but is NOT the most efficient way to accomplish the task. Optimize it if possible.
<big><pre>
/* EDITING LOOP */
LOOP UNTIL editing is done
Draw the Menu
Set editing loop to end.
/*-- BROWSING THE MENUITEMS IN MNEU --*/
/* BROWSING LOOP */
LOOP UNTIL menu browsing is done
Edit the current menu item and get the key returned
set the browsing loop to end
END IF
End menu browsing loop
End Editing loop
IF Menu is a dropdown THEN
set the menu not to drop
hide the menu
END IF
return the last key hit
</pre></big>