1
edit
Changes
→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 C_BUTTON_HIT (defined in cuigh.h) otherwise return the entered key.<br />
<big><syntaxhighlight lang="cpp">
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.
<big><syntaxhighlight lang="cpp">
bool editable()const;
</syntaxhighlight></big>
==CValEdit==