47 EInputType_All = 0x0000,
56 EInputType_Int = 0x0001,
65 EInputType_Float = 0x0002,
74 EInputType_FileName = 0x0004,
83 EInputType_Number = 0x0008,
92 EInputType_Alphabet = 0x0010,
101 EInputType_UserDefined = 0x1000,
175 DECLARE_MESSAGE_MAP()
183 virtual
void OnEditPaste();
191 virtual
void OnEditCut();
193 afx_msg
void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
194 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
195 afx_msg
void OnDestroy();
196 afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
239 virtual
void SetUserDefinedInput(Base::CFLString<
wchar_t> cstrInvalidCharSet, Base::CFLString<
wchar_t> cstrValidCharSet);
251 virtual
void SetToolTipText(Base::CFLString<
wchar_t> cstrToolTipText);
253 static
void SetBackgroundColor(COLORREF clr);
254 static COLORREF GetBackgroundColor();
256 static
void SetBackgroundColorReadOnly(COLORREF clr);
257 static COLORREF GetBackgroundColorReadOnly();
259 static
void SetBorderColorActive(COLORREF clr);
260 static COLORREF GetBorderColorActive();
262 static
void SetTextColor(COLORREF clr);
263 static COLORREF GetTextColor();
265 static
void SetTextColorReadOnly(COLORREF clr);
266 static COLORREF GetTextColorReadOnly();
269 virtual BOOL PreTranslateMessage(MSG* pMsg);
271 virtual BOOL CopyToClipboard(Base::CFLString<
wchar_t> str);
272 virtual Base::CFLString<
wchar_t> PasteFromClipboard();
273 virtual
bool CheckValidInput(UINT nNewChar, int32_t i32Index, Base::CFLString<
wchar_t> strExist) const;
277 Base::CFLString<
wchar_t> m_cstrInvalidCharSet;
278 Base::CFLString<
wchar_t> m_cstrValidCharSet;
279 CToolTipCtrl m_ToolTip;
280 Base::CFLString<
wchar_t> m_cstrToolTipText;
281 CBrush m_brBackground;
282 CBrush m_brBackgroundReadOnly;
283 int32_t m_i32SelStart;
286 static COLORREF m_clrBk;
287 static COLORREF m_clrBkReadOnly;
288 static COLORREF m_clrBorderActive;
289 static COLORREF m_clrText;
290 static COLORREF m_clrTextReadOnly;
304 inline CGUIEditBase::EInputType operator~(CGUIEditBase::EInputType a)
306 return static_cast<CGUIEditBase::EInputType
>(~static_cast<int32_t>(a));
309 inline bool operator!(CGUIEditBase::EInputType a)
311 return static_cast<bool>(!
static_cast<int32_t
>(a));
Template type string class.
Definition INIUtilities.h:20
FLImaging module execution result object.
Definition ResultsDef.h:1514
Text box class.
Definition GUIEditBase.h:27
virtual ~CGUIEditBase()
Default destructor.
virtual int32_t GetValueAsInt32() const
Returns the value converted from the input value to integer(int32_t) type.
virtual Base::CFLString< wchar_t > GetValue() const
Get string value.
virtual double GetValueAsDouble() const
Returns the value converted from the input value to double type.
virtual const CResult SetValue(const Base::CFLString< wchar_t > &flstrValue)
A function that sets the input value, the value is modified and stored for the input type you set.
virtual int64_t GetValueAsInt64() const
Returns the value converted from the input value to integer(int64_t) type.
EInputType
Input type.
Definition GUIEditBase.h:39
CGUIEditBase()
Default constructor.