|
Xm/XmTextPaste(o) -- A Text function that inserts the clipboard selection
|
XmTextPaste inserts the clipboard selection at the insertion cursor of the destination widget. If XmNpendingDelete is True and the insertion cursor is inside the current selection, the clipboard selection replaces the selected text. This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are exec... |
Xm/XmTextPosition(o) -- Data type for a character position within a text string
|
XmTextPosition is the data type for a character position within a text string. The text position is an integer representing the number of characters from the beginning of the string. The first character position in the string is 0. |
|
Xm/XmTextPosToXY(o) -- A Text function that accesses the x and y position of a character position
|
XmTextPosToXY accesses the x and y position, relative to the upper left corner of the Text widget, of a given character position in the text buffer. widget Specifies the Text widget ID position Specifies the character position in the text for which the x and y position is accessed. This is an integer number of characters from the beginning of the buffer. The first character position is 0. x Specifies the pointer in which the x position, relative to the upper left corner of the widget, is returne... |
Xm/XmTextRemove(o) -- A Text function that deletes the primary selection
|
XmTextRemove deletes the primary selected text. If there is a selection, this routine also calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed first and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. widget Specifies the Text widget ID. For a complete definition of ... |
Xm/XmTextReplace(o) -- A Text function that replaces part of a text string
|
XmTextReplace replaces part of the text string in the Text widget. The character positions begin at zero and are numbered sequentially from the beginning of the text. An example text replacement would be to replace the second and third characters in the text string. To accomplish this, the parameter from_pos must be 1 and to_pos must be 3. To insert a string after the fourth character, both parameters, from_pos and to_pos, must be 4. This routine calls the widget's XmNvalueChangedCallback and v... |
Xm/XmTextReplaceWcs(o) -- A Text function that replaces part of a wide character string in a Text widget
|
XmTextReplaceWcs replaces part of the wide character string in the Text widget. The character positions begin at zero and are numbered sequentially from the beginning of the text. An example text replacement would be to replace the second and third characters in the text string. To accomplish this, the from_pos parameter must be 1 and the to_pos parameter must be 3. To insert a string after the fourth character, both the from_pos and to_pos parameters must be 4. This routine calls the widget's ... |
Xm/XmTextScroll(o) -- A Text function that scrolls text
|
XmTextScroll scrolls text in a Text widget. widget Specifies the Text widget ID lines Specifies the number of lines of text to scroll. A positive value causes text to scroll upward; a negative value causes text to scroll downward. For a complete definition of Text and its associated resources, see XmText(3X). |
Xm/XmTextSetAddMode(o) -- A Text function that sets the state of Add Mode
|
XmTextSetAddMode controls whether or not the Text widget is in Add Mode. When the widget is in Add Mode, the insert cursor can be moved without disturbing the primary selection. widget Specifies the Text widget ID state Specifies whether or not the widget is in Add Mode. A value of True turns on Add Mode; a value of False turns off Add Mode. For a complete definition of Text and its associated resources, see XmText(3X).... |
Xm/XmTextSetEditable(o) -- A Text function that sets the edit permission
|
XmTextSetEditable sets the edit permission state of the Text widget. When set to True, the text string can be edited. widget Specifies the Text widget ID editable Specifies a Boolean value that when True allows text string edits For a complete definition of Text and its associated resources, see XmText(3X). |
Xm/XmTextSetHighlight(o) -- A Text function that highlights text
|
XmTextSetHighlight highlights text between the two specified character positions. The mode parameter determines the type of highlighting. Highlighting text merely changes the visual appearance of the text; it does not set the selection. widget Specifies the Text widget ID left Specifies the position of the left boundary of text to be highlighted. This is an integer number of characters from the beginning of the text buffer. The first character position is 0. right Specifies the position of the r... |
Xm/XmTextSetInsertionPosition(o) -- A Text function that sets the position of the insert cursor
|
XmTextSetInsertionPosition sets the insertion cursor position of the Text widget. This routine also calls the widget's XmNmotionVerifyCallback callbacks if the insertion cursor position changes. widget Specifies the Text widget ID position Specifies the position of the insertion cursor. This is an integer number of characters from the beginning of the text buffer. The first character position is 0. For a complete definition of Text and its associated resources, see XmText(3X).... |
Xm/XmTextSetMaxLength(o) -- A Text function that sets the value of the current maximum allowable length of a text string entered from the
|
XmTextSetMaxLength sets the value of the current maximum allowable length of the text string in the Text widget. The maximum allowable length prevents the user from entering a text string from the keyboard that is larger than this limit. Strings that are entered using the XmNvalue (or XmNvalueWcs) resource, or the XmTextSetString (or XmTextSetStringWcs) function ignore this resource. widget Specifies the Text widget ID max_length Specifies the maximum allowable length of the text string For a co... |
Xm/XmTextSetSelection(o) -- A Text function that sets the primary selection of the text
|
XmTextSetSelection sets the primary selection of the text in the widget. It also sets the insertion cursor position to the last position of the selection and calls the widget's XmNmotionVerifyCallback callbacks. widget Specifies the Text widget ID first Marks the first character position of the text to be selected last Marks the last position of the text to be selected time Specifies the time at which the selection value is desired. This should be the same as the time of the event that triggere... |
Xm/XmTextSetSource(o) -- A Text function that sets the source of the widget
|
XmTextSetSource sets the source of the Text widget. Text widgets can share sources of text so that editing in one widget is reflected in another. This function sets the source of one widget so that it can share the source of another widget. Setting a new text source destroys the old text source if no other Text widgets are using that source. To replace a text source but keep it for later use, create an unmanaged Text widget and set its source to the text source you want to keep. widget Specifies... |
Xm/XmTextSetString(o) -- A Text function that sets the string value
|
XmTextSetString sets the string value of the Text widget. This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed first and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. It also sets the insertion cursor position to the beginning of the string and calls th... |