Changes

Jump to: navigation, search

Console Framework Classes 20103 - OOP344

741 bytes added, 10:43, 9 November 2010
FWLabel
int Len = -1);
</pre></big>
*Passes corresponding arguments to its parent constructor
*Sets _length to the '''Len''' attribute.
*Allocates enough memory for the size of data (that is '''_lentgth''' or the length of the '''Str''' if '''_length''' is zero or negative) and sets '''_data''' to point to it.
*Then it will copy the content of what '''Str''' is pointing .
<big><pre>
FWLabel(int Row, int Col, int Len);
</pre></big>
*Passes corresponding arguments to its parent constructor
*Sets _length to the '''Len''' attribute.
*Allocates Len + 1 bytes and sets it to be an empty string and then sets '''_data''' to point to it.
 
This constructor is used when FWLabel is used for messaging and does not need initial value.
 
<big><pre>
~FWLabel();
</pre></big>
Deallocates the memory pointed by _data;
<big><pre>
void draw(int Refresh = FW_NO_REFRESH) const;
</pre></big>
Ignores the Refresh argument and make a direct call to '''iol_display''' to display the _data at '''absRow()''' and '''absCol()''' upto '''_length''' characters.
<big><pre>
int edit();
</pre></big>
Since no editing is happening here, it just calls draw();
<big><pre>
bool editable()const;
</pre></big>
Returns False.
<big><pre>
void set(const void* str);
</pre></big>
copies the string pointed by '''str''' upto '''_length''' characters to '''_data'''.
===FWDialog===

Navigation menu