#include <mgui/ctrl.h>
Inheritance diagram for MGUI::CTRL_EDIT_TEXT:

Public Types | |
| enum | FLAGS { FLAG_Default = 0x0000, FLAG_RightJustify = 0x0001, FLAG_ReadOnly = 0x0002, FLAG_WYSIWYG = 0x0004 } |
Public Member Functions | |
| bool | CanUndo () const |
| void | ClearValue (bool notify=true) |
| void | Create (MGUI::LAYOUT_PANE_BASE &ParentPane, int width=0, int height=0, FLAGS flags=FLAG_Default, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedHeight) |
| CTRL_EDIT_TEXT () | |
| int | GetFirstVisibleLine () const |
| int | GetLineCount () const |
| int | GetLineFromChar (int nIndex=-1) const |
| int | GetLineIndex (int nLine=-1) |
| int | GetLineLength (int nLine=-1) |
| void | GetStyle (TEXTSTYLE &style, int offset=-1) const |
| const MISTRING & | GetValue () |
| void | HideCursor () |
| void | LineScroll (int nLines, int nChars=0) |
| void | Paste () |
| virtual bool | PreTranslateMessageHook (MSG *pMsg) |
| void | SetCursorPos (int line, int col, bool bScroll=true) |
| void | SetCursorPos (int nCharIndex, bool bScroll=true) |
| void | SetFont (const char *faceName, int pointSize) |
| void | SetStyle (const TEXTSTYLE &style, int start, int end) |
| void | SetStyle (const TEXTSTYLE &style) |
| void | SetTabStops (SIMPLE_ARRAY< int > stops) |
| void | SetTabStops (int cxEachStop) |
| void | SetValue (const UNICODE *string, bool notify=true) |
| void | ShowCursor () |
| void | Undo () |
| virtual | ~CTRL_EDIT_TEXT () |
Definition at line 2213 of file ctrl.h.
|
|
|
|
|
Constructor.
|
|
|
Destructor.
|
|
|
Determine if the last edit operation can be undone by a call to the Undo member function.
|
|
|
Clear entire control to empty string.
|
|
||||||||||||||||||||||||
|
Create control.
|
|
|
Determines the topmost visible line in an edit control. Returns the zero-based index of the topmost visible line. For single-line edit controls, the return value is 0. |
|
|
Get the number of lines in the edit control.
|
|
|
Retrieves the line number of the line that contains the specified character index. Returns the zero-based line number of the line containing the character index specified by nIndex. If nIndex is -1, the number of the line that contains the first character of the selection is returned. If there is no selection, the current line number is returned. |
|
|
Retrieves the character index of a line within a multiple-line edit control. Returns the character index of the line specified in nLine or -1 if the specified line number is greater then the number of lines in the edit control. |
|
|
Retrieves the character index of a line within a multiple-line edit control. Return value is the length (in bytes) of the line specified by nLine. nLine specifies the character index of a character in the line whose length is to be retrieved. If this parameter is -1, the length of the current line (the line that contains the caret) is returned, not including the length of any selected text within the line. |
|
||||||||||||
|
Get the text style at the specified offset No effect unless created with the FLAG_WYSIWYG flag.
|
|
|
Get current string value.
|
|
|
Hide the cursor (a.k.a. caret).
|
|
||||||||||||
|
Scrolls the text of a multiple-line edit control.
|
|
|
Paste the clipboard contents at the current location.
|
|
|
Called to process messages before translation.
Reimplemented from MGUI::CTRL. |
|
||||||||||||||||
|
Get the current cursor (a.k.a. caret) location.
|
|
||||||||||||
|
Get the current cursor (a.k.a. caret) location.
|
|
||||||||||||
|
Set the font for the control (MFC only).
|
|
||||||||||||||||
|
Get the text style of a range of text. No effect unless created with the FLAG_WYSIWYG flag
|
|
|
Get the text style of the current selection, or at the current cursor position (if nothing is selected) No effect unless created with the FLAG_WYSIWYG flag.
|
|
|
Set variable tab stops. Call this function to set the tab stops in a multiple-line edit control. When text is copied to a multiple-line edit control, any tab character in the text will cause space to be generated up to the next tab stop. The default is one tab stop every 32 dialog units.
|
|
|
Set equal tab stops (MFC only); Call this function to set the tab stops in a multiple-line edit control. When text is copied to a multiple-line edit control, any tab character in the text will cause space to be generated up to the next tab stop. The default is one tab stop every 32 dialog units.
|
|
||||||||||||
|
Set current string value with validation. OnValidate() will be called and if valid, the string will be updated. No comparison is made with the current string value.
|
|
|
Show the cursor (a.k.a. caret).
|
|
|
Undo the last edit.
|
1.3.8-20040913