Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members Related Pages
sjgui::CEditCtrlTmpl< Ttext > Class Template ReferenceEdit field.
More...
#include <edit.h>
Inheritance diagram for sjgui::CEditCtrlTmpl< Ttext >:
List of all members.
|
Public Member Functions |
virtual void | Animate () |
| Animate cursor.
|
virtual void | KeyDown (int &iKey) |
| Process pressed keys.
|
virtual void | OnFocusRecv () |
| Switches off ignoring of the key repeates.
|
virtual void | OnFocusDism () |
| Switches on ignoring of the key repeates and hides cursor.
|
| CEditCtrlTmpl () |
| Sets defaults.
|
void | SetText (const char *str) |
| Set text for editing.
|
const char * | GetText () |
| Get text.
|
void | SetBlinkPeriod (long miliseconds) |
| Set blinking rate in milliseconds.
|
long | GetBlinkPeriod () |
| Get blinking rate in milliseconds.
|
Detailed Description
template<class Ttext>
class sjgui::CEditCtrlTmpl< Ttext >
Edit field.
Edit class. Allows edit one line of the text. - Parameters:
-
Ttext | - text class (use CTextTmpl<>). Has cursor, which can be moved left, right, to the beginning or the end of the text. Responds to key down events. It also uses IgnoreRepeates() function to switch it on and of when focus is received or dismissed. Characters could be inserted or deleted. These are controls
DELETE key : removes character after cursor;
BACKSPACE key : removes character before cursor;
LEFT key : moves cursor to the left;
RIGHT key : moves cursor to the right;
HOME key : moves cursor to the beginning of the text;
END key : moves cursor to the end of the text;
LEFT MOUSE button : moves cursor to the position under the mouse;
|
- See also:
- IgnoreRepeates
- Author:
- Alexander Shyrokov
- Version:
- Revision
- 1.1.1.1
The documentation for this class was generated from the following file:
|
|