Changes

Jump to: navigation, search

Console Framework Classes 20103 - OOP344

1,235 bytes added, 11:44, 18 November 2010
Methods
int* Insertmode, const char* Border=FW_BORDER_CHARS);
</pre></big>
Sets all the attributes to their proper/corresponding values<br />
:''Note that FWText is always bordered''
If dynamic array of strings is used, initial text is allocated and set to an empty text.<br />
<big><pre>
FWText(const char* Str, int Row, int Col, int Width, int Height, bool Readonly,
int* Insertmode, const char* Border=FW_BORDER_CHARS);
</pre></big>
Works exactly like the previous constructor, but also it will call the '''set''' method of FWText to split the incoming text ('''Str''') at newline characters into an array of strings.
<big><pre>
void draw(int Refresh = FW_NO_REFRESH)const;
</pre></big>
#Calls its parents draw, to draw the border.
#Using iol_display, it prints lines of text form index _loffset, up to height()-2 times.
#:Note that each line is printed from _offset character using absRow() and absCol(), up o width()-2 characters
<big><pre>
void set(const void *Str);
</pre></big>
Converts the newline delimited array of characters (the text) into an array of strings.<br />
Set starts with the first string in the array of strings and copies the characters of the array to the current string until it reaches a newline character. <br />
Then it will null terminate the current string and go to the next string in the array of strings and repeats the same over and over until it reaches the end of the text.
:''Note that if '''FW_MAX_LINE_CHARS''' is reached before getting to the newline character, the current string is null terminated and copying continues into the next one''.
<big><pre>
void *data();

Navigation menu