Changes

Jump to: navigation, search

Project A2 20141 - OOP344

403 bytes added, 19:37, 9 March 2014
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>

Navigation menu