8 Button _boldBtn, _italicBtn, _underlineBtn, _fontNameBtn, _fontSizeBtn,
9 _alignLeftBtn, _alignRightBtn, _alignCenterBtn, _printBtn;
11 long _buttonsRowHeight;
15 wstring _formattedText, _text;
void addDataChangedListener(DataChangeListener *l)
void setReadOnly(BOOL readOnly)
BOOL setSelectedTextFontName(const wstring &fontName)
void setText(const wstring &plainText)
BOOL setSelectedTextFontSize(long fontSize)
void setMaxLength(int maxLen)
wstring getSelectedText()
virtual ~RichText()
Destructor for the RichText component.
void windowCreated()
Called when the window is created.
void onWindowResized()
Handles window resize events.
void onDataChanged(WinHandle hTarget, const wstring &newValue, const ProcParams &procParams)
Called when data changes in the component.
void onAction(const ActionEvent &ev)
wstring getFormattedText()
void setFormattedText(const wstring &rtfText)
void onPaint(Graphics *g)
Paints the RichText including panels and active content.
BOOL selectText(const wstring &textToFind)
BOOL getCreateWindowOptions(wstring &title, UINT &widownStyles, wstring &wndClassName, BOOL &isCustomWndProc)
Retrieves window creation options.
RichText()
Constructs a new RichText component.
BOOL alignSelectedText(int alignment)
BOOL toggleSelectedTextStyling(DWORD mask, DWORD effect)