Changes

Jump to: navigation, search

Console Framework Classes 20103 - OOP344

840 bytes added, 09:27, 16 November 2010
m
Methods
FWCheck(bool Checked,const char* Format, const char* Text, int Row, int Col, bool IsRadio = false);
</pre></big>
To create a FWCheck, pass Text, Row and Col + 4 to Parents Str, Row, Col. (added 4 to Col to make space for the checkmark at left).Store Checked, IsRadio and Format in class attributes for future use.
<big><pre>
void draw(int Refresh = FW_NO_REFRESH) const;
</pre></big>
First call Label's draw passing Refresh as argument.<br />Then display a checkbox using iol_displayflag() using '''_format''' and '''_flag''' at absRow() and absCol(). <br />''(make sure there is a space between the checkmark and the Label text)''
<big><pre>
int edit();
</pre></big>
Direct call and return of iol_flag, using same arguments used in draw();
<big><pre>
bool editable()const;
</pre></big>
Always returns true;
<big><pre>
void set(const void* flag);
</pre></big>
Set the '''_flag''' to the boolean pointed by '''flag''' attribute.
<big><pre>
void *data();
</pre></big>
Returns address of '''_flag'''
<big><pre>
bool checked()const;
</pre></big>
Return true if '''_flag''' is not zero.
<big><pre>
void checked(bool val);
</pre></big>
Sets '''_flag''' to 1 if val is true, or zero if val is false.
===Button Tester===

Navigation menu