12#include "GUIStyledCtrlBase.h"
27 class FL_EXPORT
CGUIEditBase :
public CEdit,
public CGUIStyledCtrlBase
185 DECLARE_MESSAGE_MAP()
300 virtual
void NotifyParentPropertyEditing();
302 virtual
void SetTextAlignment(
EGUIAlignment eAlign) override;
304 virtual
void UpdateTheme();
306 virtual
void SetFillColorNormal(COLORREF clr);
307 virtual COLORREF GetFillColorNormal();
309 virtual
void SetFillColorReadOnly(COLORREF clr);
310 virtual COLORREF GetFillColorReadOnly();
312 virtual
void SetBorderColorActive(COLORREF clr);
313 virtual COLORREF GetBorderColorActive();
315 virtual
void SetTextColorNormal(COLORREF clr);
316 virtual COLORREF GetTextColorNormal();
318 virtual
void SetTextColorReadOnly(COLORREF clr);
319 virtual COLORREF GetTextColorReadOnly();
321 static
void SetGlobalFillColorNormal(COLORREF clr);
322 static COLORREF GetGlobalFillColorNormal();
324 static
void SetGlobalFillColorReadOnly(COLORREF clr);
325 static COLORREF GetGlobalFillColorReadOnly();
327 static
void SetGlobalBorderColorActive(COLORREF clr);
328 static COLORREF GetGlobalBorderColorActive();
330 static
void SetGlobalTextColorNormal(COLORREF clr);
331 static COLORREF GetGlobalTextColorNormal();
333 static
void SetGlobalTextColorReadOnly(COLORREF clr);
334 static COLORREF GetGlobalTextColorReadOnly();
337 virtual BOOL PreTranslateMessage(MSG* pMsg);
339 virtual BOOL CopyToClipboard(
Base::CFLString<
wchar_t> str);
340 virtual
Base::CFLString<
wchar_t> PasteFromClipboard();
341 virtual
bool CheckValidInput(UINT nNewChar, int32_t i32Index,
Base::CFLString<
wchar_t> strExist) const;
342 virtual
void DeletePreviousWord();
348 Base::CFLString<
wchar_t> m_flsInvalidCharSet;
349 Base::CFLString<
wchar_t> m_flsValidCharSet;
350 CToolTipCtrl m_ToolTip;
351 Base::CFLString<
wchar_t> m_flsToolTipText;
352 Base::CFLString<
wchar_t> m_flsPendingValue;
353 int32_t m_i32SelStart;
355 bool m_bNeedToSetWindowText;
357 CBrush m_brBackground;
358 CBrush m_brBackgroundReadOnly;
360 friend class CGUIPropertyItemText;
363 afx_msg
void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
364 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
365 afx_msg
void OnDestroy();
366 afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
367 afx_msg
void OnLButtonDblClk(UINT nFlags, CPoint point);
380 inline CGUIEditBase::EInputType operator~(CGUIEditBase::EInputType a)
382 return static_cast<CGUIEditBase::EInputType
>(~static_cast<int32_t>(a));
385 inline bool operator!(CGUIEditBase::EInputType a)
387 return static_cast<bool>(!
static_cast<int32_t
>(a));
Template type string class.
Definition FLString.h:34
FLImaging module execution result object.
Definition ResultsDef.h:1676
virtual void OnEditPaste()
Function that is invoked by a paste event.
virtual ~CGUIEditBase()
Default destructor.
virtual void SetToolTipText(const Base::CFLString< wchar_t > &flstrToolTipText)
Set the tooltip text.
virtual int32_t GetValueAsInt32() const
Returns the value converted from the input value to integer(int32_t) type.
virtual EInputType GetInputType() const
Get the type of input values.
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.
virtual void SetUserDefinedInput(const Base::CFLString< wchar_t > &flstrInvalidCharSet, const Base::CFLString< wchar_t > &flstrValidCharSet)
Set the character set to be denied or accept input.
EInputType
Input type.
Definition GUIEditBase.h:40
@ EInputType_All
All type.
Definition GUIEditBase.h:48
@ EInputType_Int
Integer type.
Definition GUIEditBase.h:57
@ EInputType_Number
Number.
Definition GUIEditBase.h:84
@ EInputType_Float
Floating point type (including integer type).
Definition GUIEditBase.h:66
@ EInputType_UserDefined
User defined.
Definition GUIEditBase.h:102
@ EInputType_FileName
File name.
Definition GUIEditBase.h:75
@ EInputType_Alphabet
Alphabet.
Definition GUIEditBase.h:93
virtual void OnEditCut()
Function that is invoked by a cut event.
CGUIEditBase()
Default constructor.
virtual void SetWindowTextKeepCaret(const Base::CFLString< wchar_t > &flstrText)
Sets the edit control text while preserving the current caret (cursor) position.
virtual void SetInputType(EInputType eInputType)
Specify the type of input values by EInputType.
Definition AESCryptography.h:18
Definition D2DObject.h:12
EGUIAlignment
Alignment information.
Definition DefinitionsGUI.h:12844