Changes

Jump to: navigation, search

Console Framework Classes 20103 - OOP344

1,496 bytes added, 10:53, 18 November 2010
FWText
==FWText==
The FWText class splits a string of text into series if strings at newline characters, then starts editing them in a text area one string at a time.
Each string in this array of strings represents a line in text.
The lines can scroll left and right (already implemented in iol_edit) and up and down during the edit if needed.
at any time by calling the data() method the array of strings is converted back to a newline separated and null terminated array of characters (Converted back to text) and returned.
 
<big><pre>
class FWText:public FWField{
AnArrayOfStrings _lines;
</pre></big>
Could be one the following:
*A two dimensional array of characters: char _lines[max_number_of_lines][max_number_of_characters_in_line+1];<br />
*: In this case you text size is limited to the max_number_of_lines and can not grow more than that.
*A dynamic array of strings: [[Dynamic Array Of Strings - OOP344 | StrArr]] _lines;<br />
*: This clase ([[Dynamic Array Of Strings - OOP344 | StrArr]]) is designed to simulate a two dimensional array of characters (or an array of strings) and has no limit in the number of lines and expands automatically if needed. You can use the code for ([[Dynamic Array Of Strings - OOP344 | StrArr]]) at your own risk to implement FWText, or you can design your own logic.<br />
If you found any bugs or problems with [[Dynamic Array Of Strings - OOP344 | StrArr]] don't modfy it yourself but instead, please blog about it and send an email to [[mailto:fardad.soleimanloo@senecac.on.ca?subject=OOP344-StrArr me]] and I will take care of updating it.
 
<big><pre>
bool _readOnly;

Navigation menu