FXText

class FXText

Multiline text widget

Inheritance:


Public Methods

[more] FXText(FXComposite* p, FXObject* tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
Construct multi-line text widget
[more]virtual void create()
Create server-side resources
[more]virtual void detach()
Detach server-side resources
[more]virtual FXint getDefaultWidth()
Return default width
[more]virtual FXint getDefaultHeight()
Return default height
[more]virtual void enable()
Enable the text widget
[more]virtual void disable()
Disable the text widget
[more]virtual void recalc()
Need to recalculate size
[more]virtual void resize(FXint w, FXint h)
Resize this window to the specified width and height
[more]virtual void position(FXint x, FXint y, FXint w, FXint h)
Move and resize this window in the parent's coordinates
[more]virtual FXint getContentWidth()
Get default width
[more]virtual FXint getContentHeight()
Get default height
[more]virtual FXbool canFocus() const
Returns true because a text widget can receive focus
[more]virtual void setFocus()
Move the focus to this window
[more]virtual void killFocus()
Remove the focus from this window
[more]void moveContents(FXint x, FXint y)
Scroll the contents
[more]void setMarginTop(FXint pt)
Change top margin
[more]FXint getMarginTop() const
Return top margin
[more]void setMarginBottom(FXint pb)
Change bottom margin
[more]FXint getMarginBottom() const
Return bottom margin
[more]void setMarginLeft(FXint pl)
Change left margin
[more]FXint getMarginLeft() const
Return left margin
[more]void setMarginRight(FXint pr)
Change right margin
[more]FXint getMarginRight() const
Return right margin
[more]FXint getWrapColumns() const
Return wrap columns
[more]void setWrapColumns(FXint cols)
Set wrap columns
[more]FXint getTabColumns() const
Return tab columns
[more]void setTabColumns(FXint cols)
Change tab columns
[more]FXint getBarColumns() const
Return number of columns used for line numbers
[more]void setBarColumns(FXint cols)
Change number of columns used for line numbers
[more]FXbool isModified() const
Return TRUE if text was modified
[more]void setModified(FXbool mod=TRUE)
Set modified flag
[more]FXbool isEditable() const
Return TRUE if text is editable
[more]void setEditable(FXbool edit=TRUE)
Set editable flag
[more]void setStyled(FXbool styled=TRUE)
Set styled text mode
[more]FXbool isStyled() const
Return TRUE if style buffer
[more]void setDelimiters(const FXCharset& delims)
Change delimiters of words
[more]FXCharset getDelimiters() const
Return word delimiters
[more]void setFont(FXFont* fnt)
Change text font
[more]FXFont* getFont() const
Return text font
[more]void setTextColor(FXColor clr)
Change text color
[more]FXColor getTextColor() const
Return text color
[more]void setSelBackColor(FXColor clr)
Change selected background color
[more]FXColor getSelBackColor() const
Return selected background color
[more]void setSelTextColor(FXColor clr)
Change selected text color
[more]FXColor getSelTextColor() const
Return selected text color
[more]void setHiliteTextColor(FXColor clr)
Change highlighted text color
[more]FXColor getHiliteTextColor() const
Return highlighted text color
[more]void setHiliteBackColor(FXColor clr)
Change highlighted background color
[more]FXColor getHiliteBackColor() const
Return highlighted background color
[more]void setActiveBackColor(FXColor clr)
Change active background color
[more]FXColor getActiveBackColor() const
Return active background color
[more]void setCursorColor(FXColor clr)
Change cursor color
[more]FXColor getCursorColor() const
Return cursor color
[more]void setNumberColor(FXColor clr)
Change line number color
[more]FXColor getNumberColor() const
Return line number color
[more]void setBarColor(FXColor clr)
Change bar color
[more]FXColor getBarColor() const
Return bar color
[more]void setHelpText(const FXString& text)
Set help text
[more]FXString getHelpText() const
Return help text
[more]void setTipText(const FXString& text)
Set the tool tip message for this text field
[more]FXString getTipText() const
Get the tool tip message for this text field
[more]FXint getChar(FXint pos) const
Get character at position in text buffer
[more]FXint getStyle(FXint pos) const
Get style at position in style buffer
[more]void extractText(FXchar* text, FXint pos, FXint n) const
Extract n characters of text from position pos
[more]void extractStyle(FXchar* style, FXint pos, FXint n) const
Extract n characters of style info from position pos
[more]void replaceText(FXint pos, FXint m, const FXchar* text, FXint n, FXbool notify=FALSE)
Replace m characters at pos by n characters
[more]void replaceStyledText(FXint pos, FXint m, const FXchar* text, FXint n, FXint style=0, FXbool notify=FALSE)
Replace m characters at pos by n characters
[more]void appendText(const FXchar* text, FXint n, FXbool notify=FALSE)
Append n characters of text at the end of the buffer
[more]void appendStyledText(const FXchar* text, FXint n, FXint style=0, FXbool notify=FALSE)
Append n characters of text at the end of the buffer
[more]void insertText(FXint pos, const FXchar* text, FXint n, FXbool notify=FALSE)
Insert n characters of text at position pos into the buffer
[more]void insertStyledText(FXint pos, const FXchar* text, FXint n, FXint style=0, FXbool notify=FALSE)
Insert n characters of text at position pos into the buffer
[more]void removeText(FXint pos, FXint n, FXbool notify=FALSE)
Remove n characters of text at position pos from the buffer
[more]void changeStyle(FXint pos, FXint n, FXint style)
Change style of text range
[more]void changeStyle(FXint pos, FXint n, const FXchar* style)
Change style of text range from style-array
[more]void setText(const FXchar* text, FXint n, FXbool notify=FALSE)
Change the text in the buffer to new text
[more]void setStyledText(const FXchar* text, FXint n, FXint style=0, FXbool notify=FALSE)
Change the text in the buffer to new text
[more]void getText(FXchar* text, FXint n) const
Retrieve text into buffer
[more]void setText(const FXString& text, FXbool notify=FALSE)
Change the text
[more]void setStyledText(const FXString& text, FXint style=0, FXbool notify=FALSE)
Change the text
[more]FXString getText() const
Return text in the widget
[more]FXint getLength() const
Return length of buffer
[more]FXint shiftText(FXint start, FXint end, FXint amount, FXbool notify=FALSE)
Shift block of lines from position start up to end by given amount
[more]FXbool findText(const FXString& string, FXint* beg=NULL, FXint* end=NULL, FXint start=0, FXuint flags=SEARCH_FORWARD|SEARCH_WRAP|SEARCH_EXACT, FXint npar=1)
Search for string in text buffer, returning the extent of the string in beg and end.
[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]FXint getPosAt(FXint x, FXint y) const
Return text position at given visible x,y coordinate
[more]FXint lineStart(FXint pos) const
Return position of begin of line containing position pos
[more]FXint lineEnd(FXint pos) const
Return position of end of line containing position pos
[more]FXint nextLine(FXint pos, FXint nl=1) const
Return start of next line
[more]FXint prevLine(FXint pos, FXint nl=1) const
Return start of previous line
[more]FXint rowStart(FXint pos) const
Return row start
[more]FXint rowEnd(FXint pos) const
Return row end
[more]FXint nextRow(FXint pos, FXint nr=1) const
Return start of next row
[more]FXint prevRow(FXint pos, FXint nr=1) const
Return start of previous row
[more]FXint leftWord(FXint pos) const
Return end of previous word
[more]FXint rightWord(FXint pos) const
Return begin of next word
[more]FXint wordStart(FXint pos) const
Return begin of word
[more]FXint wordEnd(FXint pos) const
Return end of word
[more]FXint validPos(FXint pos) const
Return validated position
[more]void setTopLine(FXint pos)
Make line containing pos the top line
[more]FXint getTopLine() const
Return position of top line
[more]void setBottomLine(FXint pos)
Make line containing pos the bottom line
[more]FXint getBottomLine() const
Return the position of the bottom line
[more]void setCenterLine(FXint pos)
Make line containing pos the center line
[more]void setAnchorPos(FXint pos)
Set the anchor position
[more]FXint getAnchorPos() const
Return the anchor position
[more]virtual void setCursorPos(FXint pos, FXbool notify=FALSE)
Set the cursor position
[more]void setCursorRow(FXint row, FXbool notify=FALSE)
Set cursor row
[more]FXint getCursorRow() const
Return cursor row
[more]void setCursorCol(FXint col, FXbool notify=FALSE)
Set cursor column
[more]FXint getCursorCol() const
Return cursor row, ie.
[more]FXint getCursorPos() const
Return the cursor position
[more]FXint getSelStartPos() const
Return selstartpos
[more]FXint getSelEndPos() const
Return selendpos
[more]FXbool selectAll(FXbool notify=FALSE)
Select all text
[more]virtual FXbool extendSelection(FXint pos, FXTextSelectionMode select=SELECT_CHARS, FXbool notify=FALSE)
Extend the selection from the anchor to the given position
[more]FXbool setSelection(FXint pos, FXint len, FXbool notify=FALSE)
Select len characters starting at given position pos
[more]virtual FXbool killSelection(FXbool notify=FALSE)
Unselect the text
[more]FXbool setHighlight(FXint start, FXint len)
Highlight len characters starting at given position pos
[more]FXbool killHighlight()
Unhighlight the text
[more]void makePositionVisible(FXint pos)
Scroll text to make the given position visible
[more]void setTextStyle(FXuint style)
Change text widget style
[more]FXuint getTextStyle() const
Return text widget style
[more]void setVisRows(FXint rows)
Change number of visible rows
[more]FXint getVisRows() const
Return number of visible rows
[more]void setVisCols(FXint cols)
Change number of visible columns
[more]FXint getVisCols() const
Return number of visible columns
[more]void setHiliteMatchTime(FXuint t)
Change brace and parenthesis match highlighting time, in ms.
[more]FXuint getHiliteMatchTime() const
Return brace and parenthesis match highlighting time, in ms
[more]void setHiliteStyles(const FXHiliteStyle* styles)
Set highlight styles
[more]const FXHiliteStyle* getHiliteStyles() const
Get highlight styles
[more]virtual void save(FXStream& store) const
Save to a stream
[more]virtual void load(FXStream& store)
Load from a stream
[more]virtual ~FXText()
Destructor


Inherited from FXScrollArea:

Public Methods

ovirtual FXint getViewportHeight()
ovoid setScrollStyle(FXuint style)
oFXuint getScrollStyle() const
oFXbool isHorizontalScrollable() const
oFXbool isVerticalScrollable() const
oFXScrollbar* horizontalScrollbar() const
oFXScrollbar* verticalScrollbar() const
oFXint getXPosition() const
oFXint getYPosition() const
ovoid setPosition(FXint x, FXint y)
ovoid getPosition(FXint& x, FXint& y) const


Inherited from FXComposite:

Public Methods

ovirtual void destroy()
oFXint maxChildWidth() const
oFXint maxChildHeight() const
ovirtual FXbool isComposite() const


Inherited from FXWindow:

Public Methods

oFXWindow* getParent() const
oFXWindow* getOwner() const
oFXWindow* getShell() const
oFXWindow* getRoot() const
oFXWindow* getNext() const
oFXWindow* getPrev() const
oFXWindow* getFirst() const
oFXWindow* getLast() const
oFXWindow* getFocus() const
ovoid setKey(FXuint k)
oFXuint getKey() const
ovoid setTarget(FXObject* t)
oFXObject* getTarget() const
ovoid setSelector(FXSelector sel)
oFXSelector getSelector() const
oFXint getX() const
oFXint getY() const
ovirtual FXint getWidthForHeight(FXint givenheight)
ovirtual FXint getHeightForWidth(FXint givenwidth)
ovoid setX(FXint x)
ovoid setY(FXint y)
ovoid setWidth(FXint w)
ovoid setHeight(FXint h)
ovoid setLayoutHints(FXuint lout)
oFXuint getLayoutHints() const
oFXAccelTable* getAccelTable() const
ovoid setAccelTable(FXAccelTable* acceltable)
ovoid addHotKey(FXHotKey code)
ovoid remHotKey(FXHotKey code)
oFXbool isShell() const
oFXbool isChildOf(const FXWindow* window) const
oFXbool containsChild(const FXWindow* child) const
oFXWindow* getChildAt(FXint x, FXint y) const
oFXint numChildren() const
oFXint indexOfChild(const FXWindow* window) const
oFXWindow* childAtIndex(FXint index) const
ostatic FXWindow* commonAncestor(FXWindow* a, FXWindow* b)
ovoid setDefaultCursor(FXCursor* cur)
oFXCursor* getDefaultCursor() const
ovoid setDragCursor(FXCursor* cur)
oFXCursor* getDragCursor() const
oFXint getCursorPosition(FXint& x, FXint& y, FXuint& buttons) const
oFXint setCursorPosition(FXint x, FXint y)
oFXbool isEnabled() const
oFXbool isActive() const
oFXbool hasFocus() const
ovirtual void setDefault(FXbool enable=TRUE)
oFXbool isDefault() const
ovoid setInitial(FXbool enable=TRUE)
oFXbool isInitial() const
ovirtual void raise()
ovirtual void lower()
ovirtual void move(FXint x, FXint y)
ovoid forceRefresh()
ovirtual void reparent(FXWindow* newparent)
ovoid scroll(FXint x, FXint y, FXint w, FXint h, FXint dx, FXint dy)
ovoid update(FXint x, FXint y, FXint w, FXint h)
ovoid update()
ovoid repaint(FXint x, FXint y, FXint w, FXint h)
ovoid repaint()
ovoid grab()
ovoid ungrab()
oFXbool grabbed() const
ovoid grabKeyboard()
ovoid ungrabKeyboard()
oFXbool grabbedKeyboard() const
ovirtual void show()
ovirtual void hide()
oFXbool shown() const
oFXbool underCursor() const
oFXbool hasSelection() const
oFXbool acquireSelection(const FXDragType* types, FXuint numtypes)
oFXbool releaseSelection()
oFXbool hasClipboard() const
oFXbool acquireClipboard(const FXDragType* types, FXuint numtypes)
oFXbool releaseClipboard()
ovoid dropEnable()
ovoid dropDisable()
oFXbool isDropEnabled() const
oFXbool isDragging() const
oFXbool beginDrag(const FXDragType* types, FXuint numtypes)
oFXbool handleDrag(FXint x, FXint y, FXDragAction action=DRAG_COPY)
oFXbool endDrag(FXbool drop=TRUE)
oFXbool isDropTarget() const
ovoid setDragRectangle(FXint x, FXint y, FXint w, FXint h, FXbool wantupdates=TRUE)
ovoid clearDragRectangle()
ovoid acceptDrop(FXDragAction action=DRAG_ACCEPT)
oFXDragAction didAccept() const
oFXbool inquireDNDTypes(FXDNDOrigin origin, FXDragType*& types, FXuint& numtypes)
oFXbool offeredDNDType(FXDNDOrigin origin, FXDragType type)
oFXDragAction inquireDNDAction() const
oFXbool setDNDData(FXDNDOrigin origin, FXDragType type, FXuchar* data, FXuint size)
oFXbool getDNDData(FXDNDOrigin origin, FXDragType type, FXuchar*& data, FXuint& size)
ovirtual FXbool contains(FXint parentx, FXint parenty) const
ovoid translateCoordinatesFrom(FXint& tox, FXint& toy, const FXWindow* fromwindow, FXint fromx, FXint fromy) const
ovoid translateCoordinatesTo(FXint& tox, FXint& toy, const FXWindow* towindow, FXint fromx, FXint fromy) const
ovirtual void setBackColor(FXColor clr)
oFXColor getBackColor() const
ovoid linkBefore(FXWindow* sibling)
ovoid linkAfter(FXWindow* sibling)


Inherited from FXDrawable:

Public Methods

oFXint getWidth() const
oFXint getHeight() const
oFXVisual* getVisual() const
ovoid setVisual(FXVisual* vis)


Inherited from FXId:

Public Methods

oFXApp* getApp() const
oFXID id() const
ovoid setUserData(void* ptr)
ovoid* getUserData() const


Inherited from FXObject:

Public Methods

oconst FXchar* getClassName() const
oFXbool isMemberOf(const FXMetaClass* metaclass) const


Documentation

Multiline text widget
o FXText(FXComposite* p, FXObject* tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
Construct multi-line text widget

ovirtual void create()
Create server-side resources

ovirtual void detach()
Detach server-side resources

ovirtual FXint getDefaultWidth()
Return default width

ovirtual FXint getDefaultHeight()
Return default height

ovirtual void enable()
Enable the text widget

ovirtual void disable()
Disable the text widget

ovirtual void recalc()
Need to recalculate size

ovirtual void resize(FXint w, FXint h)
Resize this window to the specified width and height

ovirtual void position(FXint x, FXint y, FXint w, FXint h)
Move and resize this window in the parent's coordinates

ovirtual FXint getContentWidth()
Get default width

ovirtual FXint getContentHeight()
Get default height

ovirtual FXbool canFocus() const
Returns true because a text widget can receive focus

ovirtual void setFocus()
Move the focus to this window

ovirtual void killFocus()
Remove the focus from this window

ovoid moveContents(FXint x, FXint y)
Scroll the contents

ovoid setMarginTop(FXint pt)
Change top margin

oFXint getMarginTop() const
Return top margin

ovoid setMarginBottom(FXint pb)
Change bottom margin

oFXint getMarginBottom() const
Return bottom margin

ovoid setMarginLeft(FXint pl)
Change left margin

oFXint getMarginLeft() const
Return left margin

ovoid setMarginRight(FXint pr)
Change right margin

oFXint getMarginRight() const
Return right margin

oFXint getWrapColumns() const
Return wrap columns

ovoid setWrapColumns(FXint cols)
Set wrap columns

oFXint getTabColumns() const
Return tab columns

ovoid setTabColumns(FXint cols)
Change tab columns

oFXint getBarColumns() const
Return number of columns used for line numbers

ovoid setBarColumns(FXint cols)
Change number of columns used for line numbers

oFXbool isModified() const
Return TRUE if text was modified

ovoid setModified(FXbool mod=TRUE)
Set modified flag

oFXbool isEditable() const
Return TRUE if text is editable

ovoid setEditable(FXbool edit=TRUE)
Set editable flag

ovoid setStyled(FXbool styled=TRUE)
Set styled text mode

oFXbool isStyled() const
Return TRUE if style buffer

ovoid setDelimiters(const FXCharset& delims)
Change delimiters of words

oFXCharset getDelimiters() const
Return word delimiters

ovoid setFont(FXFont* fnt)
Change text font

oFXFont* getFont() const
Return text font

ovoid setTextColor(FXColor clr)
Change text color

oFXColor getTextColor() const
Return text color

ovoid setSelBackColor(FXColor clr)
Change selected background color

oFXColor getSelBackColor() const
Return selected background color

ovoid setSelTextColor(FXColor clr)
Change selected text color

oFXColor getSelTextColor() const
Return selected text color

ovoid setHiliteTextColor(FXColor clr)
Change highlighted text color

oFXColor getHiliteTextColor() const
Return highlighted text color

ovoid setHiliteBackColor(FXColor clr)
Change highlighted background color

oFXColor getHiliteBackColor() const
Return highlighted background color

ovoid setActiveBackColor(FXColor clr)
Change active background color

oFXColor getActiveBackColor() const
Return active background color

ovoid setCursorColor(FXColor clr)
Change cursor color

oFXColor getCursorColor() const
Return cursor color

ovoid setNumberColor(FXColor clr)
Change line number color

oFXColor getNumberColor() const
Return line number color

ovoid setBarColor(FXColor clr)
Change bar color

oFXColor getBarColor() const
Return bar color

ovoid setHelpText(const FXString& text)
Set help text

oFXString getHelpText() const
Return help text

ovoid setTipText(const FXString& text)
Set the tool tip message for this text field

oFXString getTipText() const
Get the tool tip message for this text field

oFXint getChar(FXint pos) const
Get character at position in text buffer

oFXint getStyle(FXint pos) const
Get style at position in style buffer

ovoid extractText(FXchar* text, FXint pos, FXint n) const
Extract n characters of text from position pos

ovoid extractStyle(FXchar* style, FXint pos, FXint n) const
Extract n characters of style info from position pos

ovoid replaceText(FXint pos, FXint m, const FXchar* text, FXint n, FXbool notify=FALSE)
Replace m characters at pos by n characters

ovoid replaceStyledText(FXint pos, FXint m, const FXchar* text, FXint n, FXint style=0, FXbool notify=FALSE)
Replace m characters at pos by n characters

ovoid appendText(const FXchar* text, FXint n, FXbool notify=FALSE)
Append n characters of text at the end of the buffer

ovoid appendStyledText(const FXchar* text, FXint n, FXint style=0, FXbool notify=FALSE)
Append n characters of text at the end of the buffer

ovoid insertText(FXint pos, const FXchar* text, FXint n, FXbool notify=FALSE)
Insert n characters of text at position pos into the buffer

ovoid insertStyledText(FXint pos, const FXchar* text, FXint n, FXint style=0, FXbool notify=FALSE)
Insert n characters of text at position pos into the buffer

ovoid removeText(FXint pos, FXint n, FXbool notify=FALSE)
Remove n characters of text at position pos from the buffer

ovoid changeStyle(FXint pos, FXint n, FXint style)
Change style of text range

ovoid changeStyle(FXint pos, FXint n, const FXchar* style)
Change style of text range from style-array

ovoid setText(const FXchar* text, FXint n, FXbool notify=FALSE)
Change the text in the buffer to new text

ovoid setStyledText(const FXchar* text, FXint n, FXint style=0, FXbool notify=FALSE)
Change the text in the buffer to new text

ovoid getText(FXchar* text, FXint n) const
Retrieve text into buffer

ovoid setText(const FXString& text, FXbool notify=FALSE)
Change the text

ovoid setStyledText(const FXString& text, FXint style=0, FXbool notify=FALSE)
Change the text

oFXString getText() const
Return text in the widget

oFXint getLength() const
Return length of buffer

oFXint shiftText(FXint start, FXint end, FXint amount, FXbool notify=FALSE)
Shift block of lines from position start up to end by given amount

oFXbool findText(const FXString& string, FXint* beg=NULL, FXint* end=NULL, FXint start=0, FXuint flags=SEARCH_FORWARD|SEARCH_WRAP|SEARCH_EXACT, FXint npar=1)
Search for string in text buffer, returning the extent of the string in beg and end. The search starts from the given starting position, scans forward (SEARCH_FORWARD) or backward (SEARCH_BACKWARD), and wraps around if SEARCH_WRAP has been specified. The search type is either a plain search (SEARCH_EXACT), case insensitive search (SEARCH_IGNORECASE), or regular expression search (SEARCH_REGEX). For regular expression searches, capturing parentheses are used if npar is greater than 1; in this case, the number of entries in the beg[], end[] arrays must be npar also. If either beg or end or both are NULL, internal arrays are used. [This API is still subject to change!!]

oFXbool isPosSelected(FXint pos) const
Return TRUE if position pos is selected

oFXbool isPosVisible(FXint pos) const
Return TRUE if position is fully visible

oFXint getPosAt(FXint x, FXint y) const
Return text position at given visible x,y coordinate

oFXint lineStart(FXint pos) const
Return position of begin of line containing position pos

oFXint lineEnd(FXint pos) const
Return position of end of line containing position pos

oFXint nextLine(FXint pos, FXint nl=1) const
Return start of next line

oFXint prevLine(FXint pos, FXint nl=1) const
Return start of previous line

oFXint rowStart(FXint pos) const
Return row start

oFXint rowEnd(FXint pos) const
Return row end

oFXint nextRow(FXint pos, FXint nr=1) const
Return start of next row

oFXint prevRow(FXint pos, FXint nr=1) const
Return start of previous row

oFXint leftWord(FXint pos) const
Return end of previous word

oFXint rightWord(FXint pos) const
Return begin of next word

oFXint wordStart(FXint pos) const
Return begin of word

oFXint wordEnd(FXint pos) const
Return end of word

oFXint validPos(FXint pos) const
Return validated position

ovoid setTopLine(FXint pos)
Make line containing pos the top line

oFXint getTopLine() const
Return position of top line

ovoid setBottomLine(FXint pos)
Make line containing pos the bottom line

oFXint getBottomLine() const
Return the position of the bottom line

ovoid setCenterLine(FXint pos)
Make line containing pos the center line

ovoid setAnchorPos(FXint pos)
Set the anchor position

oFXint getAnchorPos() const
Return the anchor position

ovirtual void setCursorPos(FXint pos, FXbool notify=FALSE)
Set the cursor position

ovoid setCursorRow(FXint row, FXbool notify=FALSE)
Set cursor row

oFXint getCursorRow() const
Return cursor row

ovoid setCursorCol(FXint col, FXbool notify=FALSE)
Set cursor column

oFXint getCursorCol() const
Return cursor row, ie. indent position

oFXint getCursorPos() const
Return the cursor position

oFXint getSelStartPos() const
Return selstartpos

oFXint getSelEndPos() const
Return selendpos

oFXbool selectAll(FXbool notify=FALSE)
Select all text

ovirtual FXbool extendSelection(FXint pos, FXTextSelectionMode select=SELECT_CHARS, FXbool notify=FALSE)
Extend the selection from the anchor to the given position

oFXbool setSelection(FXint pos, FXint len, FXbool notify=FALSE)
Select len characters starting at given position pos

ovirtual FXbool killSelection(FXbool notify=FALSE)
Unselect the text

oFXbool setHighlight(FXint start, FXint len)
Highlight len characters starting at given position pos

oFXbool killHighlight()
Unhighlight the text

ovoid makePositionVisible(FXint pos)
Scroll text to make the given position visible

ovoid setTextStyle(FXuint style)
Change text widget style

oFXuint getTextStyle() const
Return text widget style

ovoid setVisRows(FXint rows)
Change number of visible rows

oFXint getVisRows() const
Return number of visible rows

ovoid setVisCols(FXint cols)
Change number of visible columns

oFXint getVisCols() const
Return number of visible columns

ovoid setHiliteMatchTime(FXuint t)
Change brace and parenthesis match highlighting time, in ms. A match highlight time of 0 disables brace matching.

oFXuint getHiliteMatchTime() const
Return brace and parenthesis match highlighting time, in ms

ovoid setHiliteStyles(const FXHiliteStyle* styles)
Set highlight styles

oconst FXHiliteStyle* getHiliteStyles() const
Get highlight styles

ovirtual void save(FXStream& store) const
Save to a stream

ovirtual void load(FXStream& store)
Load from a stream

ovirtual ~FXText()
Destructor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.