21
edits
Changes
→FWLabel
===FWLabel===
FWLabel is child of FWField (therefore inheriting FWBorder too) responsible to display a short character string on the display.
This class is never editable
<big><syntaxhighlight lang="cpp">
class FWLabel: public FWField{
int _length;
public:
FWLabel(const char *Str, int Row, int Col,
</syntaxhighlight></big>
====Attributes====
<big><pre>
int _length;
</pre></big>
Holds the Length of the display area needed by iol_display.
====Methods====
<big><pre>
FWLabel(const char *Str, int Row, int Col,
int Len = -1);
</pre></big>
*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);
~FWLabel();
</pre></big>
<big><pre>
void draw(int Refresh = FW_NO_REFRESH) const;
</pre></big>
<big><pre>
int edit();
</pre></big>
<big><pre>
bool editable()const;
</pre></big>
<big><pre>
void set(const void* str);
</pre></big>
===FWDialog===