Eclipse SUMO - Simulation of Urban MObility
MFXTextFieldIcon Class Reference

#include <MFXTextFieldIcon.h>

Inheritance diagram for MFXTextFieldIcon:
[legend]
Collaboration diagram for MFXTextFieldIcon:
[legend]

Public Member Functions

virtual bool canFocus () const
 Yes, text field may receive focus. More...
 
virtual void create ()
 Create server-side resources. More...
 
virtual void disable ()
 Disable text field. More...
 
virtual void enable ()
 Enable text field. More...
 
FXbool extendSelection (FXint pos)
 Extend the selection from the anchor to the given position. More...
 
FXint getAnchorPos () const
 Return anchor position. More...
 
FXColor getCursorColor () const
 Return the cursor color. More...
 
FXint getCursorPos () const
 Return cursor position. More...
 
virtual FXint getDefaultHeight ()
 Return default height. More...
 
virtual FXint getDefaultWidth ()
 Return default width. More...
 
const FXchar * getDelimiters () const
 Return word delimiters. More...
 
FXFont * getFont () const
 Get the text font. More...
 
const FXString & getHelpText () const
 Get the status line help text for this label. More...
 
FXuint getJustify () const
 Return text justification mode. More...
 
FXint getNumColumns () const
 Return number of columns. More...
 
FXColor getSelBackColor () const
 Return selected background color. More...
 
FXColor getSelTextColor () const
 Return selected text color. More...
 
FXString getText () const
 Get the text for this label. More...
 
FXColor getTextColor () const
 Return text color. More...
 
FXuint getTextStyle () const
 Return text style. More...
 
const FXString & getTipText () const
 Get the tool tip message for this text field. More...
 
FXbool isEditable () const
 Return TRUE if text field may be edited. More...
 
FXbool isOverstrike () const
 Return TRUE if overstrike mode in effect. More...
 
FXbool isPosSelected (FXint pos) const
 Return TRUE if position pos is selected. More...
 
FXbool isPosVisible (FXint pos) const
 Return TRUE if position is fully visible. More...
 
virtual void killFocus ()
 Remove the focus from this window. More...
 
FXbool killSelection ()
 Unselect the text. More...
 
virtual void layout ()
 Perform layout. More...
 
virtual void load (FXStream &store)
 Load text field from a stream. More...
 
void makePositionVisible (FXint pos)
 Scroll text to make the given position visible. More...
 
 MFXTextFieldIcon (FXComposite *p, FXint ncols, FXIcon *ic, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=TEXTFIELD_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
 FOX declaration. More...
 
virtual void save (FXStream &store) const
 Save text field to a stream. More...
 
FXbool selectAll ()
 Select all text. More...
 
void setAnchorPos (FXint pos)
 Change anchor position. More...
 
void setCursorColor (FXColor clr)
 Changes the cursor color. More...
 
void setCursorPos (FXint pos)
 Set cursor position. More...
 
void setDelimiters (const FXchar *delims=FXTextField::textDelimiters)
 Change word delimiters. More...
 
void setEditable (FXbool edit=TRUE)
 Set editable mode. More...
 
virtual void setFocus ()
 Move the focus to this window. More...
 
void setFont (FXFont *fnt)
 Set the text font. More...
 
void setHelpText (const FXString &text)
 Set the status line help text for this label. More...
 
void setIcon (FXIcon *ic)
 Change the icon. More...
 
void setJustify (FXuint mode)
 Change text justification mode. More...
 
void setNumColumns (FXint cols)
 Change the default width of the text field. More...
 
void setOverstrike (FXbool over=TRUE)
 Set overstrike mode. More...
 
void setSelBackColor (FXColor clr)
 Change selected background color. More...
 
FXbool setSelection (FXint pos, FXint len)
 Select len characters starting at given position pos. More...
 
void setSelTextColor (FXColor clr)
 Change selected text color. More...
 
void setText (const FXString &text, FXbool notify=FALSE)
 Change the text and move cursor to end. More...
 
void setTextColor (FXColor clr)
 Change text color. More...
 
void setTextStyle (FXuint style)
 Change text style. More...
 
void setTipText (const FXString &text)
 Set the tool tip message for this text field. More...
 
virtual ~MFXTextFieldIcon ()
 Destructor. More...
 
long onPaint (FXObject *, FXSelector, void *)
 fox callbacks More...
 
long onUpdate (FXObject *, FXSelector, void *)
 
long onKeyPress (FXObject *, FXSelector, void *)
 
long onKeyRelease (FXObject *, FXSelector, void *)
 
long onLeftBtnPress (FXObject *, FXSelector, void *)
 
long onLeftBtnRelease (FXObject *, FXSelector, void *)
 
long onMiddleBtnPress (FXObject *, FXSelector, void *)
 
long onMiddleBtnRelease (FXObject *, FXSelector, void *)
 
long onVerify (FXObject *, FXSelector, void *)
 
long onMotion (FXObject *, FXSelector, void *)
 
long onSelectionLost (FXObject *, FXSelector, void *)
 
long onSelectionGained (FXObject *, FXSelector, void *)
 
long onSelectionRequest (FXObject *, FXSelector, void *ptr)
 
long onClipboardLost (FXObject *, FXSelector, void *)
 
long onClipboardGained (FXObject *, FXSelector, void *)
 
long onClipboardRequest (FXObject *, FXSelector, void *)
 
long onFocusSelf (FXObject *, FXSelector, void *)
 
long onFocusIn (FXObject *, FXSelector, void *)
 
long onFocusOut (FXObject *, FXSelector, void *)
 
long onBlink (FXObject *, FXSelector, void *)
 
long onAutoScroll (FXObject *, FXSelector, void *)
 
long onCmdSetValue (FXObject *, FXSelector, void *)
 
long onCmdSetIntValue (FXObject *, FXSelector, void *)
 
long onCmdSetRealValue (FXObject *, FXSelector, void *)
 
long onCmdSetStringValue (FXObject *, FXSelector, void *)
 
long onCmdGetIntValue (FXObject *, FXSelector, void *)
 
long onCmdGetRealValue (FXObject *, FXSelector, void *)
 
long onCmdGetStringValue (FXObject *, FXSelector, void *)
 
long onCmdCursorHome (FXObject *, FXSelector, void *)
 
long onCmdCursorEnd (FXObject *, FXSelector, void *)
 
long onCmdCursorRight (FXObject *, FXSelector, void *)
 
long onCmdCursorLeft (FXObject *, FXSelector, void *)
 
long onCmdCursorWordLeft (FXObject *, FXSelector, void *)
 
long onCmdCursorWordRight (FXObject *, FXSelector, void *)
 
long onCmdCursorWordStart (FXObject *, FXSelector, void *)
 
long onCmdCursorWordEnd (FXObject *, FXSelector, void *)
 
long onCmdMark (FXObject *, FXSelector, void *)
 
long onCmdExtend (FXObject *, FXSelector, void *)
 
long onCmdSelectAll (FXObject *, FXSelector, void *)
 
long onCmdDeselectAll (FXObject *, FXSelector, void *)
 
long onCmdCutSel (FXObject *, FXSelector, void *)
 
long onCmdCopySel (FXObject *, FXSelector, void *)
 
long onCmdPasteSel (FXObject *, FXSelector, void *)
 
long onCmdPasteMiddle (FXObject *, FXSelector, void *)
 
long onCmdDeleteSel (FXObject *, FXSelector, void *)
 
long onCmdDeleteAll (FXObject *, FXSelector, void *)
 
long onCmdOverstString (FXObject *, FXSelector, void *)
 
long onCmdInsertString (FXObject *, FXSelector, void *)
 
long onCmdBackspace (FXObject *, FXSelector, void *)
 
long onCmdDelete (FXObject *, FXSelector, void *)
 
long onCmdToggleEditable (FXObject *, FXSelector, void *)
 
long onUpdToggleEditable (FXObject *, FXSelector, void *)
 
long onCmdToggleOverstrike (FXObject *, FXSelector, void *)
 
long onUpdToggleOverstrike (FXObject *, FXSelector, void *)
 
long onUpdHaveSelection (FXObject *, FXSelector, void *)
 
long onUpdSelectAll (FXObject *, FXSelector, void *)
 
long onCmdSetHelp (FXObject *, FXSelector, void *)
 
long onCmdGetHelp (FXObject *, FXSelector, void *)
 
long onCmdSetTip (FXObject *, FXSelector, void *)
 
long onCmdGetTip (FXObject *, FXSelector, void *)
 
long onQueryHelp (FXObject *, FXSelector, void *)
 
long onQueryTip (FXObject *, FXSelector, void *)
 

Protected Member Functions

FXint coord (FXint i) const
 coordinates More...
 
void drawCursor (FXuint state)
 draw cursor More...
 
void drawPWDTextFragment (FXDCWindow &dc, FXint x, FXint y, FXint fm, FXint to)
 draw password text fragment More...
 
void drawTextFragment (FXDCWindow &dc, FXint x, FXint y, FXint fm, FXint to)
 draw text fragment More...
 
void drawTextRange (FXDCWindow &dc, FXint fm, FXint to)
 draw text range More...
 
FXint index (FXint x) const
 index More...
 
FXint leftWord (FXint pos) const
 left word More...
 
 MFXTextFieldIcon ()
 FOX need this. More...
 
FXint rightWord (FXint pos) const
 right word More...
 
FXint wordEnd (FXint pos) const
 word end More...
 
FXint wordStart (FXint pos) const
 word start More...
 

Protected Attributes

FXint anchor = 0
 Anchor position. More...
 
FXString clipped
 Clipped text. More...
 
FXint columns = 0
 Number of columns visible. More...
 
FXString contents
 Edited text. More...
 
FXint cursor = 0
 Cursor position. More...
 
FXColor cursorColor = 0
 Color of the Cursor. More...
 
const FXchar * delimiters = FXTextField::textDelimiters
 Set of delimiters. More...
 
FXFont * font
 Text font. More...
 
FXString help
 Help string. More...
 
FXIcon * icon = nullptr
 icon More...
 
FXColor selbackColor = 0
 Selected background color. More...
 
FXColor seltextColor = 0
 Selected text color. More...
 
FXint shift = 0
 Shift amount. More...
 
FXColor textColor = 0
 Text color. More...
 
FXString tip
 Tooltip. More...
 

Private Member Functions

 MFXTextFieldIcon (const MFXTextFieldIcon &)=delete
 invalidate copy constructor More...
 
MFXTextFieldIconoperator= (const MFXTextFieldIcon &)=delete
 invalidate assigment constructor More...
 

Detailed Description

Definition at line 31 of file MFXTextFieldIcon.h.

Constructor & Destructor Documentation

◆ MFXTextFieldIcon() [1/3]

MFXTextFieldIcon::MFXTextFieldIcon ( FXComposite *  p,
FXint  ncols,
FXIcon *  ic,
FXObject *  tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = TEXTFIELD_NORMAL,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = DEFAULT_PAD,
FXint  pr = DEFAULT_PAD,
FXint  pt = DEFAULT_PAD,
FXint  pb = DEFAULT_PAD 
)

FOX declaration.

Construct text field wide enough to display ncols columns

Definition at line 125 of file MFXTextFieldIcon.cpp.

◆ ~MFXTextFieldIcon()

MFXTextFieldIcon::~MFXTextFieldIcon ( )
virtual

Destructor.

Definition at line 150 of file MFXTextFieldIcon.cpp.

References font.

◆ MFXTextFieldIcon() [2/3]

MFXTextFieldIcon::MFXTextFieldIcon ( )
protected

FOX need this.

Definition at line 2326 of file MFXTextFieldIcon.cpp.

References font.

◆ MFXTextFieldIcon() [3/3]

MFXTextFieldIcon::MFXTextFieldIcon ( const MFXTextFieldIcon )
privatedelete

invalidate copy constructor

Member Function Documentation

◆ canFocus()

bool MFXTextFieldIcon::canFocus ( ) const
virtual

Yes, text field may receive focus.

Definition at line 425 of file MFXTextFieldIcon.cpp.

◆ coord()

FXint MFXTextFieldIcon::coord ( FXint  i) const
protected

coordinates

Definition at line 1045 of file MFXTextFieldIcon.cpp.

References contents, font, and shift.

Referenced by drawCursor(), isPosVisible(), onPaint(), and MFXTextFieldSearch::onPaint().

Here is the caller graph for this function:

◆ create()

void MFXTextFieldIcon::create ( )
virtual

Create server-side resources.

Definition at line 158 of file MFXTextFieldIcon.cpp.

References font.

◆ disable()

void MFXTextFieldIcon::disable ( )
virtual

Disable text field.

Definition at line 196 of file MFXTextFieldIcon.cpp.

Referenced by MFXComboBoxIcon::disable(), and onUpdate().

Here is the caller graph for this function:

◆ drawCursor()

void MFXTextFieldIcon::drawCursor ( FXuint  state)
protected

draw cursor

Definition at line 845 of file MFXTextFieldIcon.cpp.

References anchor, contents, coord(), cursor, cursorColor, drawTextRange(), icon, ICON_SIZE, and ICON_SPACING.

Referenced by onAutoScroll(), onBlink(), onFocusIn(), onFocusOut(), onMotion(), and setCursorPos().

Here is the caller graph for this function:

◆ drawPWDTextFragment()

void MFXTextFieldIcon::drawPWDTextFragment ( FXDCWindow &  dc,
FXint  x,
FXint  y,
FXint  fm,
FXint  to 
)
protected

draw password text fragment

Definition at line 1099 of file MFXTextFieldIcon.cpp.

References contents, and font.

Referenced by drawTextRange().

Here is the caller graph for this function:

◆ drawTextFragment()

void MFXTextFieldIcon::drawTextFragment ( FXDCWindow &  dc,
FXint  x,
FXint  y,
FXint  fm,
FXint  to 
)
protected

draw text fragment

Definition at line 1091 of file MFXTextFieldIcon.cpp.

References contents, and font.

Referenced by drawTextRange().

Here is the caller graph for this function:

◆ drawTextRange()

void MFXTextFieldIcon::drawTextRange ( FXDCWindow &  dc,
FXint  fm,
FXint  to 
)
protected

draw text range

Definition at line 1111 of file MFXTextFieldIcon.cpp.

References anchor, contents, cursor, drawPWDTextFragment(), drawTextFragment(), font, icon, ICON_SIZE, ICON_SPACING, selbackColor, seltextColor, shift, and textColor.

Referenced by drawCursor(), onPaint(), and MFXTextFieldSearch::onPaint().

Here is the caller graph for this function:

◆ enable()

void MFXTextFieldIcon::enable ( )
virtual

Enable text field.

Definition at line 187 of file MFXTextFieldIcon.cpp.

Referenced by MFXComboBoxIcon::enable().

Here is the caller graph for this function:

◆ extendSelection()

FXbool MFXTextFieldIcon::extendSelection ( FXint  pos)

Extend the selection from the anchor to the given position.

Definition at line 2109 of file MFXTextFieldIcon.cpp.

References anchor, and contents.

Referenced by onAutoScroll(), onCmdExtend(), onLeftBtnPress(), onMotion(), selectAll(), and setSelection().

Here is the caller graph for this function:

◆ getAnchorPos()

FXint MFXTextFieldIcon::getAnchorPos ( ) const
inline

Return anchor position.

Definition at line 95 of file MFXTextFieldIcon.h.

References anchor.

◆ getCursorColor()

FXColor MFXTextFieldIcon::getCursorColor ( ) const
inline

Return the cursor color.

Definition at line 146 of file MFXTextFieldIcon.h.

References cursorColor.

◆ getCursorPos()

FXint MFXTextFieldIcon::getCursorPos ( ) const
inline

Return cursor position.

Definition at line 87 of file MFXTextFieldIcon.h.

References cursor.

◆ getDefaultHeight()

FXint MFXTextFieldIcon::getDefaultHeight ( )
virtual

Return default height.

Definition at line 212 of file MFXTextFieldIcon.cpp.

References font.

Referenced by MFXComboBoxIcon::getDefaultHeight().

Here is the caller graph for this function:

◆ getDefaultWidth()

FXint MFXTextFieldIcon::getDefaultWidth ( )
virtual

Return default width.

Definition at line 205 of file MFXTextFieldIcon.cpp.

References columns, and font.

Referenced by MFXComboBoxIcon::getDefaultWidth().

Here is the caller graph for this function:

◆ getDelimiters()

const FXchar* MFXTextFieldIcon::getDelimiters ( ) const
inline

Return word delimiters.

Definition at line 170 of file MFXTextFieldIcon.h.

References delimiters.

◆ getFont()

FXFont* MFXTextFieldIcon::getFont ( ) const
inline

Get the text font.

Definition at line 114 of file MFXTextFieldIcon.h.

References font.

◆ getHelpText()

const FXString& MFXTextFieldIcon::getHelpText ( ) const
inline

Get the status line help text for this label.

Definition at line 180 of file MFXTextFieldIcon.h.

References help.

Referenced by onCmdGetHelp().

Here is the caller graph for this function:

◆ getJustify()

FXuint MFXTextFieldIcon::getJustify ( ) const

Return text justification mode.

Definition at line 2289 of file MFXTextFieldIcon.cpp.

References JUSTIFY_MASK.

◆ getNumColumns()

FXint MFXTextFieldIcon::getNumColumns ( ) const
inline

Return number of columns.

Definition at line 154 of file MFXTextFieldIcon.h.

References columns.

◆ getSelBackColor()

FXColor MFXTextFieldIcon::getSelBackColor ( ) const
inline

Return selected background color.

Definition at line 130 of file MFXTextFieldIcon.h.

References selbackColor.

◆ getSelTextColor()

FXColor MFXTextFieldIcon::getSelTextColor ( ) const
inline

Return selected text color.

Definition at line 138 of file MFXTextFieldIcon.h.

References seltextColor.

◆ getText()

FXString MFXTextFieldIcon::getText ( ) const
inline

Get the text for this label.

Definition at line 106 of file MFXTextFieldIcon.h.

References contents.

Referenced by MFXComboBoxIcon::getText(), MFXComboBoxIcon::onCmdFilter(), onCmdGetStringValue(), GNEOptionsDialog::onCmdSearch(), GNEOptionsDialog::onCmdSelectTopic(), and MFXComboBoxIcon::onTextCommand().

Here is the caller graph for this function:

◆ getTextColor()

FXColor MFXTextFieldIcon::getTextColor ( ) const
inline

Return text color.

Definition at line 122 of file MFXTextFieldIcon.h.

References textColor.

Referenced by MFXComboBoxIcon::getTextColor().

Here is the caller graph for this function:

◆ getTextStyle()

FXuint MFXTextFieldIcon::getTextStyle ( ) const

Return text style.

Definition at line 2269 of file MFXTextFieldIcon.cpp.

References TEXTFIELD_MASK.

◆ getTipText()

const FXString& MFXTextFieldIcon::getTipText ( ) const
inline

Get the tool tip message for this text field.

Definition at line 190 of file MFXTextFieldIcon.h.

References tip.

Referenced by MFXComboBoxIcon::getTipText(), and onCmdGetTip().

Here is the caller graph for this function:

◆ index()

FXint MFXTextFieldIcon::index ( FXint  x) const
protected

index

Definition at line 1001 of file MFXTextFieldIcon.cpp.

References contents, font, and shift.

Referenced by onAutoScroll(), onLeftBtnPress(), onMiddleBtnPress(), and onMotion().

Here is the caller graph for this function:

◆ isEditable()

FXbool MFXTextFieldIcon::isEditable ( ) const

Return TRUE if text field may be edited.

Definition at line 2221 of file MFXTextFieldIcon.cpp.

Referenced by onCmdBackspace(), onCmdCutSel(), onCmdDelete(), onCmdDeleteAll(), onCmdDeleteSel(), onCmdInsertString(), onCmdOverstString(), onCmdPasteMiddle(), onCmdPasteSel(), onCmdToggleEditable(), onFocusIn(), onKeyPress(), onUpdToggleEditable(), and setCursorPos().

Here is the caller graph for this function:

◆ isOverstrike()

FXbool MFXTextFieldIcon::isOverstrike ( ) const

Return TRUE if overstrike mode in effect.

Definition at line 2239 of file MFXTextFieldIcon.cpp.

Referenced by onCmdToggleOverstrike(), onKeyPress(), and onUpdToggleOverstrike().

Here is the caller graph for this function:

◆ isPosSelected()

FXbool MFXTextFieldIcon::isPosSelected ( FXint  pos) const

Return TRUE if position pos is selected.

Definition at line 1085 of file MFXTextFieldIcon.cpp.

References anchor, and cursor.

◆ isPosVisible()

FXbool MFXTextFieldIcon::isPosVisible ( FXint  pos) const

Return TRUE if position is fully visible.

Definition at line 1075 of file MFXTextFieldIcon.cpp.

References contents, and coord().

◆ killFocus()

void MFXTextFieldIcon::killFocus ( )
virtual

Remove the focus from this window.

Definition at line 442 of file MFXTextFieldIcon.cpp.

References contents.

◆ killSelection()

FXbool MFXTextFieldIcon::killSelection ( )

Unselect the text.

Definition at line 2080 of file MFXTextFieldIcon.cpp.

Referenced by onCmdDeleteAll(), onCmdDeleteSel(), onCmdDeselectAll(), onCmdInsertString(), onCmdOverstString(), onLeftBtnPress(), setIcon(), and setText().

Here is the caller graph for this function:

◆ layout()

void MFXTextFieldIcon::layout ( )
virtual

Perform layout.

Definition at line 896 of file MFXTextFieldIcon.cpp.

References contents, cursor, font, makePositionVisible(), and shift.

Referenced by onCmdBackspace(), onCmdDelete(), onCmdDeleteAll(), onCmdDeleteSel(), onCmdInsertString(), onCmdOverstString(), setIcon(), setNumColumns(), and setText().

Here is the caller graph for this function:

◆ leftWord()

FXint MFXTextFieldIcon::leftWord ( FXint  pos) const
protected

left word

Definition at line 1375 of file MFXTextFieldIcon.cpp.

References contents, delimiters, and isdelimiter().

Referenced by onCmdCursorWordLeft().

Here is the caller graph for this function:

◆ load()

void MFXTextFieldIcon::load ( FXStream &  store)
virtual

Load text field from a stream.

Definition at line 2312 of file MFXTextFieldIcon.cpp.

References columns, contents, cursorColor, font, help, selbackColor, seltextColor, textColor, and tip.

◆ makePositionVisible()

void MFXTextFieldIcon::makePositionVisible ( FXint  pos)

Scroll text to make the given position visible.

Definition at line 950 of file MFXTextFieldIcon.cpp.

References contents, font, and shift.

Referenced by layout(), onCmdBackspace(), onCmdCursorEnd(), onCmdCursorHome(), onCmdCursorLeft(), onCmdCursorRight(), onCmdCursorWordEnd(), onCmdCursorWordLeft(), onCmdCursorWordRight(), onCmdCursorWordStart(), onCmdDelete(), onCmdDeleteAll(), onCmdDeleteSel(), onCmdInsertString(), onCmdOverstString(), onCmdSelectAll(), onLeftBtnPress(), and onMiddleBtnPress().

Here is the caller graph for this function:

◆ onAutoScroll()

long MFXTextFieldIcon::onAutoScroll ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 669 of file MFXTextFieldIcon.cpp.

References contents, cursor, drawCursor(), extendSelection(), font, index(), and shift.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onBlink()

long MFXTextFieldIcon::onBlink ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 378 of file MFXTextFieldIcon.cpp.

References drawCursor().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onClipboardGained()

long MFXTextFieldIcon::onClipboardGained ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 314 of file MFXTextFieldIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onClipboardLost()

long MFXTextFieldIcon::onClipboardLost ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 321 of file MFXTextFieldIcon.cpp.

References clipped.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onClipboardRequest()

long MFXTextFieldIcon::onClipboardRequest ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 330 of file MFXTextFieldIcon.cpp.

References clipped.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdBackspace()

long MFXTextFieldIcon::onCmdBackspace ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1765 of file MFXTextFieldIcon.cpp.

References contents, cursor, isEditable(), layout(), makePositionVisible(), setAnchorPos(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCopySel()

long MFXTextFieldIcon::onCmdCopySel ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1554 of file MFXTextFieldIcon.cpp.

References anchor, clipped, contents, and cursor.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCursorEnd()

long MFXTextFieldIcon::onCmdCursorEnd ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1344 of file MFXTextFieldIcon.cpp.

References contents, cursor, makePositionVisible(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCursorHome()

long MFXTextFieldIcon::onCmdCursorHome ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1336 of file MFXTextFieldIcon.cpp.

References makePositionVisible(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCursorLeft()

long MFXTextFieldIcon::onCmdCursorLeft ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1361 of file MFXTextFieldIcon.cpp.

References contents, cursor, makePositionVisible(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCursorRight()

long MFXTextFieldIcon::onCmdCursorRight ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1352 of file MFXTextFieldIcon.cpp.

References contents, cursor, makePositionVisible(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCursorWordEnd()

long MFXTextFieldIcon::onCmdCursorWordEnd ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1492 of file MFXTextFieldIcon.cpp.

References cursor, makePositionVisible(), setCursorPos(), and wordEnd().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCursorWordLeft()

long MFXTextFieldIcon::onCmdCursorWordLeft ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1476 of file MFXTextFieldIcon.cpp.

References cursor, leftWord(), makePositionVisible(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCursorWordRight()

long MFXTextFieldIcon::onCmdCursorWordRight ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1468 of file MFXTextFieldIcon.cpp.

References cursor, makePositionVisible(), rightWord(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCursorWordStart()

long MFXTextFieldIcon::onCmdCursorWordStart ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1484 of file MFXTextFieldIcon.cpp.

References cursor, makePositionVisible(), setCursorPos(), and wordStart().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCutSel()

long MFXTextFieldIcon::onCmdCutSel ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1529 of file MFXTextFieldIcon.cpp.

References anchor, clipped, contents, cursor, and isEditable().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdDelete()

long MFXTextFieldIcon::onCmdDelete ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1785 of file MFXTextFieldIcon.cpp.

References contents, cursor, isEditable(), layout(), makePositionVisible(), setAnchorPos(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdDeleteAll()

long MFXTextFieldIcon::onCmdDeleteAll ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1672 of file MFXTextFieldIcon.cpp.

References contents, isEditable(), killSelection(), layout(), makePositionVisible(), setAnchorPos(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdDeleteSel()

long MFXTextFieldIcon::onCmdDeleteSel ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1647 of file MFXTextFieldIcon.cpp.

References anchor, contents, cursor, isEditable(), killSelection(), layout(), makePositionVisible(), setAnchorPos(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdDeselectAll()

long MFXTextFieldIcon::onCmdDeselectAll ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1522 of file MFXTextFieldIcon.cpp.

References killSelection().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdExtend()

long MFXTextFieldIcon::onCmdExtend ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1507 of file MFXTextFieldIcon.cpp.

References cursor, and extendSelection().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdGetHelp()

long MFXTextFieldIcon::onCmdGetHelp ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 468 of file MFXTextFieldIcon.cpp.

References getHelpText().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdGetIntValue()

long MFXTextFieldIcon::onCmdGetIntValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 543 of file MFXTextFieldIcon.cpp.

References contents.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdGetRealValue()

long MFXTextFieldIcon::onCmdGetRealValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 550 of file MFXTextFieldIcon.cpp.

References contents.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdGetStringValue()

long MFXTextFieldIcon::onCmdGetStringValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 557 of file MFXTextFieldIcon.cpp.

References getText().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdGetTip()

long MFXTextFieldIcon::onCmdGetTip ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 482 of file MFXTextFieldIcon.cpp.

References getTipText().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdInsertString()

long MFXTextFieldIcon::onCmdInsertString ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 1728 of file MFXTextFieldIcon.cpp.

References anchor, contents, cursor, isEditable(), killSelection(), layout(), makePositionVisible(), setAnchorPos(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdMark()

long MFXTextFieldIcon::onCmdMark ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1500 of file MFXTextFieldIcon.cpp.

References cursor, and setAnchorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdOverstString()

long MFXTextFieldIcon::onCmdOverstString ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 1692 of file MFXTextFieldIcon.cpp.

References anchor, contents, cursor, isEditable(), killSelection(), layout(), makePositionVisible(), setAnchorPos(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdPasteMiddle()

long MFXTextFieldIcon::onCmdPasteMiddle ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1613 of file MFXTextFieldIcon.cpp.

References isEditable().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdPasteSel()

long MFXTextFieldIcon::onCmdPasteSel ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1574 of file MFXTextFieldIcon.cpp.

References isEditable().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelectAll()

long MFXTextFieldIcon::onCmdSelectAll ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1514 of file MFXTextFieldIcon.cpp.

References cursor, makePositionVisible(), and selectAll().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetHelp()

long MFXTextFieldIcon::onCmdSetHelp ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 461 of file MFXTextFieldIcon.cpp.

References setHelpText().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetIntValue()

long MFXTextFieldIcon::onCmdSetIntValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 522 of file MFXTextFieldIcon.cpp.

References setText().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetRealValue()

long MFXTextFieldIcon::onCmdSetRealValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 529 of file MFXTextFieldIcon.cpp.

References setText().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetStringValue()

long MFXTextFieldIcon::onCmdSetStringValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 536 of file MFXTextFieldIcon.cpp.

References setText().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetTip()

long MFXTextFieldIcon::onCmdSetTip ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 475 of file MFXTextFieldIcon.cpp.

References setTipText().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetValue()

long MFXTextFieldIcon::onCmdSetValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 515 of file MFXTextFieldIcon.cpp.

References setText().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdToggleEditable()

long MFXTextFieldIcon::onCmdToggleEditable ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 796 of file MFXTextFieldIcon.cpp.

References isEditable(), and setEditable().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdToggleOverstrike()

long MFXTextFieldIcon::onCmdToggleOverstrike ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 780 of file MFXTextFieldIcon.cpp.

References isOverstrike(), and setOverstrike().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onFocusIn()

long MFXTextFieldIcon::onFocusIn ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 386 of file MFXTextFieldIcon.cpp.

References drawCursor(), and isEditable().

Referenced by FXDEFMAP(), and MFXTextFieldSearch::onFocusIn().

Here is the caller graph for this function:

◆ onFocusOut()

long MFXTextFieldIcon::onFocusOut ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 400 of file MFXTextFieldIcon.cpp.

References drawCursor().

Referenced by FXDEFMAP(), and MFXTextFieldSearch::onFocusOut().

Here is the caller graph for this function:

◆ onFocusSelf()

long MFXTextFieldIcon::onFocusSelf ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 412 of file MFXTextFieldIcon.cpp.

Referenced by FXDEFMAP(), and MFXTextFieldSearch::onFocusSelf().

Here is the caller graph for this function:

◆ onKeyPress()

long MFXTextFieldIcon::onKeyPress ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 1879 of file MFXTextFieldIcon.cpp.

References contents, FALLTHROUGH, isEditable(), isOverstrike(), KEY_a, KEY_c, KEY_v, and KEY_x.

Referenced by FXDEFMAP(), and MFXTextFieldSearch::onKeyPress().

Here is the caller graph for this function:

◆ onKeyRelease()

long MFXTextFieldIcon::onKeyRelease ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 2034 of file MFXTextFieldIcon.cpp.

References FALLTHROUGH, KEY_a, KEY_c, KEY_v, and KEY_x.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onLeftBtnPress()

long MFXTextFieldIcon::onLeftBtnPress ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 564 of file MFXTextFieldIcon.cpp.

References contents, cursor, extendSelection(), index(), killSelection(), makePositionVisible(), setAnchorPos(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onLeftBtnRelease()

long MFXTextFieldIcon::onLeftBtnRelease ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 597 of file MFXTextFieldIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMiddleBtnPress()

long MFXTextFieldIcon::onMiddleBtnPress ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 611 of file MFXTextFieldIcon.cpp.

References cursor, index(), makePositionVisible(), setAnchorPos(), and setCursorPos().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMiddleBtnRelease()

long MFXTextFieldIcon::onMiddleBtnRelease ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 632 of file MFXTextFieldIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMotion()

long MFXTextFieldIcon::onMotion ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 645 of file MFXTextFieldIcon.cpp.

References cursor, drawCursor(), extendSelection(), and index().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

long MFXTextFieldIcon::onPaint ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

fox callbacks

Definition at line 1299 of file MFXTextFieldIcon.cpp.

References contents, coord(), cursor, cursorColor, drawTextRange(), icon, ICON_SIZE, and ICON_SPACING.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onQueryHelp()

long MFXTextFieldIcon::onQueryHelp ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 502 of file MFXTextFieldIcon.cpp.

References help.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onQueryTip()

long MFXTextFieldIcon::onQueryTip ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 489 of file MFXTextFieldIcon.cpp.

References tip.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onSelectionGained()

long MFXTextFieldIcon::onSelectionGained ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 235 of file MFXTextFieldIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onSelectionLost()

long MFXTextFieldIcon::onSelectionLost ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 243 of file MFXTextFieldIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onSelectionRequest()

long MFXTextFieldIcon::onSelectionRequest ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 251 of file MFXTextFieldIcon.cpp.

References anchor, contents, and cursor.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdate()

long MFXTextFieldIcon::onUpdate ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 218 of file MFXTextFieldIcon.cpp.

References disable().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdHaveSelection()

long MFXTextFieldIcon::onUpdHaveSelection ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

Definition at line 812 of file MFXTextFieldIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdSelectAll()

long MFXTextFieldIcon::onUpdSelectAll ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

Definition at line 819 of file MFXTextFieldIcon.cpp.

References contents.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdToggleEditable()

long MFXTextFieldIcon::onUpdToggleEditable ( FXObject *  sender,
FXSelector  ,
void *   
)

Definition at line 803 of file MFXTextFieldIcon.cpp.

References isEditable().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdToggleOverstrike()

long MFXTextFieldIcon::onUpdToggleOverstrike ( FXObject *  sender,
FXSelector  ,
void *   
)

Definition at line 787 of file MFXTextFieldIcon.cpp.

References isOverstrike().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onVerify()

long MFXTextFieldIcon::onVerify ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 1805 of file MFXTextFieldIcon.cpp.

References columns.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

MFXTextFieldIcon& MFXTextFieldIcon::operator= ( const MFXTextFieldIcon )
privatedelete

invalidate assigment constructor

◆ rightWord()

FXint MFXTextFieldIcon::rightWord ( FXint  pos) const
protected

right word

Definition at line 1401 of file MFXTextFieldIcon.cpp.

References contents, delimiters, and isdelimiter().

Referenced by onCmdCursorWordRight().

Here is the caller graph for this function:

◆ save()

void MFXTextFieldIcon::save ( FXStream &  store) const
virtual

Save text field to a stream.

Definition at line 2296 of file MFXTextFieldIcon.cpp.

References columns, contents, cursorColor, font, help, selbackColor, seltextColor, textColor, and tip.

◆ selectAll()

FXbool MFXTextFieldIcon::selectAll ( )

Select all text.

Definition at line 2091 of file MFXTextFieldIcon.cpp.

References contents, cursor, extendSelection(), setAnchorPos(), and setCursorPos().

Referenced by onCmdSelectAll(), and MFXComboBoxIcon::onListClicked().

Here is the caller graph for this function:

◆ setAnchorPos()

void MFXTextFieldIcon::setAnchorPos ( FXint  pos)

Change anchor position.

Definition at line 839 of file MFXTextFieldIcon.cpp.

References anchor, and contents.

Referenced by onCmdBackspace(), onCmdDelete(), onCmdDeleteAll(), onCmdDeleteSel(), onCmdInsertString(), onCmdMark(), onCmdOverstString(), onLeftBtnPress(), onMiddleBtnPress(), selectAll(), and setSelection().

Here is the caller graph for this function:

◆ setCursorColor()

void MFXTextFieldIcon::setCursorColor ( FXColor  clr)

Changes the cursor color.

Definition at line 2195 of file MFXTextFieldIcon.cpp.

References cursorColor.

◆ setCursorPos()

void MFXTextFieldIcon::setCursorPos ( FXint  pos)

Set cursor position.

Definition at line 826 of file MFXTextFieldIcon.cpp.

References contents, cursor, drawCursor(), and isEditable().

Referenced by onCmdBackspace(), onCmdCursorEnd(), onCmdCursorHome(), onCmdCursorLeft(), onCmdCursorRight(), onCmdCursorWordEnd(), onCmdCursorWordLeft(), onCmdCursorWordRight(), onCmdCursorWordStart(), onCmdDelete(), onCmdDeleteAll(), onCmdDeleteSel(), onCmdInsertString(), onCmdOverstString(), onLeftBtnPress(), onMiddleBtnPress(), selectAll(), and setSelection().

Here is the caller graph for this function:

◆ setDelimiters()

void MFXTextFieldIcon::setDelimiters ( const FXchar *  delims = FXTextField::textDelimiters)
inline

Change word delimiters.

Definition at line 165 of file MFXTextFieldIcon.h.

References delimiters.

◆ setEditable()

void MFXTextFieldIcon::setEditable ( FXbool  edit = TRUE)

Set editable mode.

Definition at line 2228 of file MFXTextFieldIcon.cpp.

Referenced by onCmdToggleEditable().

Here is the caller graph for this function:

◆ setFocus()

void MFXTextFieldIcon::setFocus ( )
virtual

Move the focus to this window.

Definition at line 431 of file MFXTextFieldIcon.cpp.

◆ setFont()

void MFXTextFieldIcon::setFont ( FXFont *  fnt)

Set the text font.

Definition at line 174 of file MFXTextFieldIcon.cpp.

References font.

◆ setHelpText()

void MFXTextFieldIcon::setHelpText ( const FXString &  text)
inline

Set the status line help text for this label.

Definition at line 175 of file MFXTextFieldIcon.h.

References help.

Referenced by onCmdSetHelp().

Here is the caller graph for this function:

◆ setIcon()

void MFXTextFieldIcon::setIcon ( FXIcon *  ic)

Change the icon.

Definition at line 2154 of file MFXTextFieldIcon.cpp.

References anchor, contents, cursor, icon, killSelection(), and layout().

Referenced by MFXComboBoxIcon::appendIconItem(), MFXComboBoxIcon::insertIconItem(), MFXComboBoxIcon::onListClicked(), MFXComboBoxIcon::onTextCommand(), MFXComboBoxIcon::setCurrentItem(), and MFXComboBoxIcon::updateIconItem().

Here is the caller graph for this function:

◆ setJustify()

void MFXTextFieldIcon::setJustify ( FXuint  mode)

Change text justification mode.

Definition at line 2276 of file MFXTextFieldIcon.cpp.

References JUSTIFY_MASK, and shift.

◆ setNumColumns()

void MFXTextFieldIcon::setNumColumns ( FXint  cols)

Change the default width of the text field.

Definition at line 2205 of file MFXTextFieldIcon.cpp.

References columns, layout(), and shift.

◆ setOverstrike()

void MFXTextFieldIcon::setOverstrike ( FXbool  over = TRUE)

Set overstrike mode.

Definition at line 2246 of file MFXTextFieldIcon.cpp.

Referenced by onCmdToggleOverstrike().

Here is the caller graph for this function:

◆ setSelBackColor()

void MFXTextFieldIcon::setSelBackColor ( FXColor  clr)

Change selected background color.

Definition at line 2176 of file MFXTextFieldIcon.cpp.

References selbackColor.

◆ setSelection()

FXbool MFXTextFieldIcon::setSelection ( FXint  pos,
FXint  len 
)

Select len characters starting at given position pos.

Definition at line 2100 of file MFXTextFieldIcon.cpp.

References cursor, extendSelection(), setAnchorPos(), and setCursorPos().

◆ setSelTextColor()

void MFXTextFieldIcon::setSelTextColor ( FXColor  clr)

Change selected text color.

Definition at line 2185 of file MFXTextFieldIcon.cpp.

References seltextColor.

◆ setText()

void MFXTextFieldIcon::setText ( const FXString &  text,
FXbool  notify = FALSE 
)

Change the text and move cursor to end.

Definition at line 2137 of file MFXTextFieldIcon.cpp.

References anchor, contents, cursor, killSelection(), and layout().

Referenced by MFXComboBoxIcon::appendIconItem(), MFXComboBoxIcon::clearItems(), MFXComboBoxIcon::insertIconItem(), onCmdSetIntValue(), onCmdSetRealValue(), onCmdSetStringValue(), onCmdSetValue(), MFXComboBoxIcon::onListClicked(), MFXComboBoxIcon::setCurrentItem(), MFXComboBoxIcon::setText(), and MFXComboBoxIcon::updateIconItem().

Here is the caller graph for this function:

◆ setTextColor()

void MFXTextFieldIcon::setTextColor ( FXColor  clr)

Change text color.

Definition at line 2166 of file MFXTextFieldIcon.cpp.

References textColor.

Referenced by MFXComboBoxIcon::setTextColor().

Here is the caller graph for this function:

◆ setTextStyle()

void MFXTextFieldIcon::setTextStyle ( FXuint  style)

Change text style.

Definition at line 2256 of file MFXTextFieldIcon.cpp.

References shift, and TEXTFIELD_MASK.

◆ setTipText()

void MFXTextFieldIcon::setTipText ( const FXString &  text)
inline

Set the tool tip message for this text field.

Definition at line 185 of file MFXTextFieldIcon.h.

References tip.

Referenced by onCmdSetTip(), and MFXComboBoxIcon::setTipText().

Here is the caller graph for this function:

◆ wordEnd()

FXint MFXTextFieldIcon::wordEnd ( FXint  pos) const
protected

word end

Definition at line 1448 of file MFXTextFieldIcon.cpp.

References contents, delimiters, and isdelimiter().

Referenced by onCmdCursorWordEnd().

Here is the caller graph for this function:

◆ wordStart()

FXint MFXTextFieldIcon::wordStart ( FXint  pos) const
protected

word start

Definition at line 1427 of file MFXTextFieldIcon.cpp.

References contents, delimiters, and isdelimiter().

Referenced by onCmdCursorWordStart().

Here is the caller graph for this function:

Field Documentation

◆ anchor

◆ clipped

FXString MFXTextFieldIcon::clipped
protected

Clipped text.

Definition at line 330 of file MFXTextFieldIcon.h.

Referenced by onClipboardLost(), onClipboardRequest(), onCmdCopySel(), and onCmdCutSel().

◆ columns

FXint MFXTextFieldIcon::columns = 0
protected

Number of columns visible.

Definition at line 324 of file MFXTextFieldIcon.h.

Referenced by getDefaultWidth(), getNumColumns(), load(), onVerify(), save(), and setNumColumns().

◆ contents

◆ cursor

◆ cursorColor

FXColor MFXTextFieldIcon::cursorColor = 0
protected

Color of the Cursor.

Definition at line 315 of file MFXTextFieldIcon.h.

Referenced by drawCursor(), getCursorColor(), load(), onPaint(), MFXTextFieldSearch::onPaint(), save(), and setCursorColor().

◆ delimiters

const FXchar* MFXTextFieldIcon::delimiters = FXTextField::textDelimiters
protected

Set of delimiters.

Definition at line 300 of file MFXTextFieldIcon.h.

Referenced by getDelimiters(), leftWord(), rightWord(), setDelimiters(), wordEnd(), and wordStart().

◆ font

◆ help

FXString MFXTextFieldIcon::help
protected

Help string.

Definition at line 333 of file MFXTextFieldIcon.h.

Referenced by getHelpText(), load(), onQueryHelp(), save(), and setHelpText().

◆ icon

FXIcon* MFXTextFieldIcon::icon = nullptr
protected

icon

Definition at line 339 of file MFXTextFieldIcon.h.

Referenced by drawCursor(), drawTextRange(), onPaint(), MFXTextFieldSearch::onPaint(), and setIcon().

◆ selbackColor

FXColor MFXTextFieldIcon::selbackColor = 0
protected

Selected background color.

Definition at line 309 of file MFXTextFieldIcon.h.

Referenced by drawTextRange(), getSelBackColor(), load(), save(), and setSelBackColor().

◆ seltextColor

FXColor MFXTextFieldIcon::seltextColor = 0
protected

Selected text color.

Definition at line 312 of file MFXTextFieldIcon.h.

Referenced by drawTextRange(), getSelTextColor(), load(), save(), and setSelTextColor().

◆ shift

FXint MFXTextFieldIcon::shift = 0
protected

◆ textColor

FXColor MFXTextFieldIcon::textColor = 0
protected

Text color.

Definition at line 306 of file MFXTextFieldIcon.h.

Referenced by drawTextRange(), getTextColor(), load(), save(), and setTextColor().

◆ tip

FXString MFXTextFieldIcon::tip
protected

Tooltip.

Definition at line 336 of file MFXTextFieldIcon.h.

Referenced by getTipText(), load(), onQueryTip(), save(), and setTipText().


The documentation for this class was generated from the following files: