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

Public Member Functions | |
| void | ClearSelection () |
| void | CopySelection () |
| CTRL_EDIT_BASE () | |
| void | CutSelection () |
| CEdit & | GetCtrl () |
| const bool | GetModify () const |
| void | GetSelection (int &nStartChar, int &nEndChar) const |
| void | SetMaxLength (int length) |
| void | SetModify (bool modified=true) |
| void | SetReadOnly (bool ReadOnly=true) |
| void | SetSelection (int StartChar=0, int EndChar=-1, bool NoScroll=true) |
| void | SetValidChars (const MIUNICODE *string, bool invert=false) |
| ~CTRL_EDIT_BASE () | |
Protected Member Functions | |
| bool | CheckValidChars (MISTRING &string) const |
| void | CreateCtrl (LAYOUT_PANE_BASE &ParentPane, int width, int height, bool RightJustify, bool ReadOnly, bool Opaque, bool WidthInPixels, LAYOUT_SIZEALIGN sizealign) |
| bool | GetEditStr (MISTRING &str) const |
| void | NotifyChanged () |
| void | UpdateCtrl (const MISTRING &string) |
| virtual void | UpdateValue (bool notify=true) |
Protected Attributes | |
| MyEdit | m_ctrl |
| bool | m_HasValue |
| bool | m_UserEdited |
Private Member Functions | |
| virtual void | OnActivate () |
| virtual void | OnChangeValue () |
| virtual void | OnUserEdit () |
Definition at line 1066 of file ctrl.h.
|
|
Constructor.
|
|
|
Destructor.
|
|
|
Check that all characters in string are in valid set.
|
|
|
Clear the current selection.
|
|
|
Copy the current selection to the clipboard.
|
|
||||||||||||||||||||||||||||||||||||
|
|
|
|
Cut the current selection to the clipboard.
|
|
|
Get reference to MFC control (MFC only).
|
|
|
|
|
|
Returns true if contents of the edit-control have been modified by user, false if not. Use SetModify() to reset. |
|
||||||||||||
|
Get the current selection of the edit control. If nStartChar == nEndChar, nothing is selected.
|
|
|
|
|
|
Called when user presses <Enter> in edit control.
|
|
|
Called when value is changed after validation. If the user modifies the text in the edit control this will not be called until the control loses "focus". Reimplemented in MGUI::CTRL_EDIT_OBJECTNAME_T< _CT >, and MGUI::CTRL_EDIT_OBJECTNAME_T< FORM_EDIT_OBJECTNAME >. |
|
|
Called when user modifies the text in the edit control. The actual value does not get updated until the control loses focus or GetValue() is called. Reimplemented in MGUI::CTRL_EDIT_OBJECTNAME. |
|
|
Set the maximim text length in characters.
|
|
|
Set or clear the "modified" state of the edit control.
|
|
|
Set whether value is read-only or not.
|
|
||||||||||||||||
|
Select range of characters in string.
Reimplemented in MGUI::CTRL_EDIT_OBJECTNAME. |
|
||||||||||||
|
Set set of 'valid' or 'invalid' characters. This does not alter the current contents, if any.
|
|
|
Called internally to update text control from specified string.
|
|
|
Called internally to update control-specific data from edit control. Derived class must call corresponding base class method AFTER performing its own processing. Reimplemented in MGUI::CTRL_EDIT_OBJECTNAME. |
|
|
|
|
|
|
|
|
|
1.3.8-20040913