Open main menu

CDOT Wiki β

Changes

CMenu pseudo code - OOP344 20113

249 bytes added, 00:57, 30 November 2011
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
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>