Changes

Jump to: navigation, search

Console UI Core Classes - OOP344 20113

343 bytes added, 22:04, 29 November 2011
Methods
CMenu& add(const char* Text, bool selected = false);
</syntaxhighlight></big>
Standard append for a linked list:
#creates an MNode with
#* a new CMenutItem with
#*:selected, _format, Text for first three arguments
#*:1, 1, and (width of the menu) -2, for Row col and width
#* the rest are what is needed for a standard append procedure for a linked list
#appends the new MNode to the end of the list
#to be continued....
<big><syntaxhighlight lang = "cpp">
CMenu& operator<<(const char* Text);

Navigation menu