1
edit
Changes
→CButton: Prefix/suffix
== CButton ==
A CButton is a text field with additional decoration displayed when the button is in its "edit" state. The edit state is exited when the user presses any key.
=== Recommendations ===
* When displaying the label value of a button, be sure to leave enough space for the prefix/suffix characters [ ]
* Eg, assume you have a framed button with the label "my Button":
** When draw is called, it would look like:
<pre>
/-----------\
| my Button |
\-----------/
</pre>
** When edit is called, it would look like:
<pre>
/-----------\
|[my Button]|
\-----------/
</pre>