Open main menu

CDOT Wiki β

Changes

Console UI Core Classes - OOP344 20121

2 bytes removed, 10:30, 27 March 2012
no edit summary
LineEdit, sets the Field's _data to the value of str. If LineEdit is instantiated with this constructor then it will edit an external string provided by the caller function of LineEdit. LineEdit in this case is not creating any dynamic memory, therefore _dyn is set to false (therefore the destructor will not attempt to deallocate the memory pointed by _data).<br />
The location (row and col) and Bordered are directly passed to the parent (FWFieldCField) and str is passed as data to the parent constructor. Unlike Label, LineEdit could have border or not so depending on this (Bordered being true or false) the Height is set to 3 or 1 respectfully. <br />(hint: use '''? :''' operator to pass the proper Height value to FWFieldCField's constructor)
<big><syntaxhighlight lang="cpp">