21
edits
Changes
→Methods
int edit();
</syntaxhighlight></big>
Editing of the menu has two different parts that work together:
*Editing the _Title (CButton)
*Editing the CMenuItems
#Editing the _Title
#*If the CMenu is a '''_dropdown''' but it is not '''_dropped''', then '''_Title should be edited
#*:If the returned key is C_BUTTON_HIT; then '''_dropped''' should be set to true, CMenu should be drawn and '''Editing the CMenuItems''' should commence.
#*:however is key returned is not C_BUTTUN_HIT, then CMenu::edit() is terminated returning the key. ''''''Note that in this case, if any of the two keys (LEFT or RIGHT) is hit, then instead (UP or DOWN) should be returned respectively'''''
#*If the CMenu is a '''_dropdown''' and it is also '''_dropped''', then _Title is only drawn and '''Editing the CMenuItems''' will commence.
#Editing the CMenuItems
#* to be continued...
<big><syntaxhighlight lang = "cpp">
void set(const void* data);