|
XmTextGetSubstringWcs(3) -- A Text function that retrieves a portion of a wide character internal text buffer
|
XmTextGetSubstringWcs retrieves a copy of a portion of the internal text buffer of a Text widget that is stored in a wide character format. The function copies a specified number of characters from a given start position in the internal text buffer into a buffer provided by the application. A NULL terminator is placed at the end of the copied data. widget Specifies the Text widget ID. start Specif... |
XmTextGetTopCharacter(3) -- A Text function that accesses the position of the first character displayed
|
XmTextGetTopCharacter accesses the position of the text at the top of the Text widget. If there is no text in the Text widget (in other words, XmNvalue contains an empty string), then XmTextGetTopCharacter returns 0. Suppose that the XmNtopCharacter resource has been set to a value greater than the number of characters in the text widget. In this case, XmTextGetTopCharacter returns an XmTextPositi... |
XmTextInsert(3) -- A Text function that inserts a character string into a text string
|
XmTextInsert inserts a character string into the text string in the Text widget. The character positions begin at 0 (zero) and are numbered sequentially from the beginning of the text. For example, to insert a string after the fourth character, the parameter position must be 4. This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or Xm... |
XmTextInsertWcs(3) -- A Text function that inserts a wide character string into a Text widget
|
XmTextInsertWcs inserts a wide character string into the Text widget at a specified location. The character positions begin at 0 (zero) and are numbered sequentially from the beginning of the text. For example, to insert a string after the fourth character, the position parameter must be 4. This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyC... |
XmTextPaste(3) -- 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 ver... |
XmTextPasteLink(3) -- A Text function that inserts a link to the clipboard selection
|
XmTextPasteLink inserts a link to the clipboard selection at the insertion cursor. This routine calls the widget's XmNdestinationCallback procedures with the selection member of the XmDestinationCallbackStruct set to CLIPBOARD and with the operation member set to XmLINK. The Text widget itself performs no transfers; the XmNdestinationCallback procedures are responsible for inserting the link to t... |
XmTextPosition(3) -- Data type for a character position within a text string
|
XmTextPosition is an integer data type that holds a character's position within a text string for Text and TextField. An XmTextPosition value conceptually points to the gap between two characters. For example, consider a text string consisting of N characters. A value of 0 refers to the position immediately prior to the first character. A value of 1 refers to the position in between the first and... |
XmTextPosToXY(3) -- 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. In the case of horizontal writing, the position is the origin of the character. In the case of vertical writing, the position is the vertical origin of the character. widget Specifies the Text widget ID position Specifies the character position in the... |
XmTextRemove(3) -- 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 XmNm... |
XmTextReplace(3) -- 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 0 (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 pa... |
XmTextReplaceWcs(3) -- 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 fo... |
XmTextScroll(3) -- A Text function that scrolls text
|
XmTextScroll scrolls text by a given number of lines in a Text widget. The sign of the number is interpreted according to the value of the XmNlayoutDirection resource. 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. Note that the text will scroll only as long a... |
XmTextSetAddMode(3) -- 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 res... |