52 #ifndef __PCL_TextBox_h
53 #define __PCL_TextBox_h
57 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
113 static S PlainText(
const S& text )
115 return "<raw>" + text +
"</raw>";
126 SetText( PlainText( text ) );
216 GetSelection( s0, s1 );
240 SetCaretPosition( 0 );
247 SetCaretPosition( int_max );
297 EventHandlers() =
default;
298 EventHandlers(
const EventHandlers& ) =
default;
299 EventHandlers& operator =(
const EventHandlers& ) =
default;
304 friend class TextBoxEventDispatcher;
Client-side interface to a PixInsight Control object.
Client-side interface to a PixInsight Frame control.
Client-side interface to a PixInsight TextBox control.
void SetText(const String &)
void(Control::*)(TextBox &sender, int newStart, int newEnd) selection_event_handler
void SetReadOnly(bool ro=true)
int CaretPosition() const
void OnCaretPositionUpdated(caret_event_handler, Control &)
void SetPlainText(const S &text)
void(Control::*)(TextBox &sender, int oldPos, int newPos) caret_event_handler
void GetSelection(int &selStart, int &selEnd) const
String SelectedText() const
void SetSelection(int selStart, int selEnd)
TextBox(const String &text=String(), Control &parent=Control::Null())
void SetReadWrite(bool rw=true)
void Unselect(bool unsel=true)
void OnTextUpdated(unicode_event_handler, Control &)
void SelectAll(bool=true)
void Insert(const String &text)
bool HasSelection() const
void SetCaretPosition(int)
void OnSelectionUpdated(selection_event_handler, Control &)
void(Control::*)(TextBox &sender, const String &) unicode_event_handler