Changes

Jump to: navigation, search

Console UI Core Classes - OOP344 20113

333 bytes added, 10:14, 8 November 2011
Methods
void draw(int fn = C_NO_FRAME) ;
</syntaxhighlight></big>
*Uses iol_displayflag() to display _flag using Using Console methods:<br />#displays the _format string at absRow() and absCol()*Then #if _flag is false, it will overwrite the second character printed above, with a space (removes the check mark on console)#draw()s the _Label#sets the position of the cursor at the checkmark (second character of printed _format)
<big><syntaxhighlight lang="cpp">
int edit();
</syntaxhighlight></big>
*returns iol_flag#draw()'s returned value.the checkmark#gets a key*#:iol_flag the key must be either SPACE or any non-printable character (all printable character are ignored)#if the entered key is space##if _radio is true, it will set the _flag to edit true##if _radio is false, it will flip the value of _flag using the same arguments used in . ##draw() as radiobutton or checkbox depending to s the value of _radiocheckmark again
<big><syntaxhighlight lang="cpp">
bool editable()const;
void set(const void* flag);
</syntaxhighlight></big>
*Casts the incoming flag pointer to an (intbool*) and sets the content of '''_flag''' to where '''flag''' is pointing to.
<big><syntaxhighlight lang="cpp">
bool checked()const;

Navigation menu