Changes

Jump to: navigation, search

Console Framework Classes 20103 - OOP344

290 bytes added, 20:32, 15 November 2010
Methods
First draw() the Button, then surround it by squared brackets, place the cursor under the first character of Button's text and wait for user entry.<br />
When user hits a key, if the key is ENTER_KEY or SPACE, return FW_BUTTON_HIT (defined in confw.h) otherwise return the entered key.<br />
Make sure the surrounding characters are replace replaced with spaces before exiting the edit() method.
<big><pre>
bool editable()const;
</pre></big>
Always returns true;
<big><pre>
void set(const void* str);
</pre></big>
Reallocate memory for new text set it to content of '''str''':
:''First deallocated what is pointed by Field's '''_data'''.''<br />
:''Then allocate new memory to the size of content of '''str''' and copy the content into it and make Field's '''_data''' point to it.''
===Button Tester===

Navigation menu