![]() |
![]() HP OpenVMS Systems Documentation |
![]() |
DECwindows Extensions to Motif
DXmCSTextGetString
Retrieves all the text from the compound string text widget. Format
Return ValueA pointer to a compound string holding all the current text in the compound string text widget. Arguments
DescriptionThe DXmCSTextGetString routine retrieves the current compound string from the compound string text widget. The application is responsible for freeing the storage associated with the compound string by calling the Intrinsic routine XtStringFree. See the DXmCreateCSText, DXmCSTextSetString, and DXmCSTextReplace routines for related information. See also the X Window System Toolkit manual for more information about using the Intrinsic routines. DXmCSTextGetTopPosition
Retrieves (returns) the logical position of the first character in the displayed text. Format
Return ValueAn integer that represents the logical position of the first character in the text buffer. Arguments
DescriptionThe DXmCSTextGetTopPosition routine returns the logical position of the first character in the displayed text. If the direction is left to right, the first character is at the top left of the display. If the direction is right to left the first character is at the top right of the display. DXmCSTextHasSelection
Indicates whether the compound string text widget currently owns the primary selection. Format
Return ValueA Boolean value that, when True, indicates that the widget currently owns the primary selection. Arguments
DescriptionThe DXmCSTextHasSelection routine returns True if the compound string text widget currently owns the primary selection and False if it does not. DXmCSTextHorizontalScroll
Scrolls text horizontally. Format
Arguments
DescriptionThe DXmCSTextHorizontalScroll routine scrolls text horizontally (left or right) by the given number of pixels. DXmCSTextInsert
Inserts new text into the compound string text widget. Format
Return ValueA value that represents the status (success or failure) of the insertion operation, as follows: Arguments
DescriptionThe DXmCSTextInsert routine inserts new text into the compound string text widget at the specified logical position, returning the success or failure of that operation. DXmCSTextNumLines
Retrieves (returns) the number of visible lines in the compound string text widget. Format
Return ValueAn integer that represents the number of visible lines. Arguments
DescriptionThe DXmCSTextNumLines routine returns an integer that represents the number of lines in the compound string text widget that are visible to the user. DXmCSTextPaste
Pastes the data from the clipboard into the text at the current cursor position. Format
Return ValueA Boolean value that, when True, indicates that the data was pasted successfully from the clipboard into the text. Arguments
DescriptionThe DXmCSTextPaste routine pastes the data from the clipboard into the text at the current cursor position, returning the success or failure of that operation. (See the OSF/Motif Programmer's Reference and the OSF/Motif Programmer's Guide for more information about the clipboard.) See the DXmCreateCSText, DXmCSTextCopy, DXmCSTextCut, and DXmCSTextRemove routines for related information. DXmCSTextPosToXY
Retrieves (returns) the x and y position of a specified character in the text. Format
Return ValueA Boolean function that, when True, returns the x and y position of the character in text. When False, no x and y position is returned. Arguments
DescriptionThe DXmCSTextPosToXY routine converts the logical position of a specified character in the text to the corresponding x- and y-coordinates. See the DXmCSTextXYToPos routine for related information. DXmCSTextRemove
Removes the currently selected (highlighted) text. Format
Return ValueA Boolean value that, when True, indicates that the text was removed successfully. Arguments
DescriptionThe DXmCSTextRemove routine removes the currently selected (highlighted) text, returning the success or failure of that operation. See the DXmCreateCSText, DXmCSTextCopy, DXmCSTextCut, and DXmCSTextPaste routines for related information. DXmCSTextReplace
Replaces a specified segment of text in a compound string text widget. Format
Return ValueA value that represents the status (success or failure) of the replace operation, as follows: Arguments
DescriptionThe DXmCSTextReplace routine replaces part of the text in the compound string text widget. Within the widget, positions are numbered starting at 0 and increasing sequentially. For example, to replace the second and third characters in the text, from_pos should be 1 and to_pos should be 3. To insert text after the fourth character, from_pos and to_pos should both be 4. See the DXmCreateCSText, DXmCSTextSetString, and DXmCSTextGetString routines for related information. DXmCSTextSetAddMode
Controls whether the CSText widget is in Add Mode. Format
Arguments
DescriptionThe DXmCSTextSetAddMode routine controls whether the CSText widget is in Add Mode, which, when True, allows the user to move the insertion cursor without affecting the primary selection. DXmCSTextSetEditable
Specifies whether the text in the widget can be edited by the user. Format
Arguments
DescriptionThe DXmCSTextSetEditable specifies whether text in the compound string text widget can be edited by the user, returning either True or False to indicate the permission state. See the DXmCreateCSText and DXmCSTextGetEditable routines for related information. DXmCSTextSetHighlight
Changes the highlighting of the compound string text located between two specified logical positions. Format
Arguments
DescriptionThe DXmCSTextSetHighlight routine changes the highlighting of the compound string text located between two specified positions, by removing the highlighting or by implementing underlining or reverse video. This visual change in the display does not affect (set) the selections. DXmCSTextSetInsertionPosition
Sets the insertion cursor to the specified logical position in the text. Format
Arguments
DescriptionThe DXmCSTextSetInsertionPosition routine sets the insertion cursor to the specified logical position (indicated by number of characters) in the text. See the DXmCSTextGetInsertionPosition for related information. DXmCSTextSetMaxLength
Sets the maximum allowable length of the text in the compound string text widget. Format
Arguments
DescriptionThe DXmCSTextSetMaxLength routine sets the maximum allowable length of the text in the compound string text widget. It prohibits the user from entering text longer than this limit. See the related routines DXmCreateCSText and DXmCSTextGetMaxLength. DXmCSTextSetSelection
Designates the specified text as the current primary selection by highlighting it in the compound string text widget. Format
Arguments
DescriptionThe DXmCSTextSetSelection routine designates the specified text as the current primary selection by highlighting it in the compound string text widget. Within the text window, first marks the position of the first character in the text and last marks the last character. The field characters start at 0 and increase sequentially. DXmCSTextSetString
Replaces all the text in the compound string text widget with new text. Format
Arguments
DescriptionThe DXmCSTextSetString routine replaces all the text in the compound string text widget with new text specified by the value argument. See the DXmCreateCSText and DXmCSTextGetString routines for related information. DXmCSTextSetTopPosition
Sets the logical position of the first character in the displayed text. Format
Arguments
DescriptionThe DXmCSTextSetTopPosition routine sets the logical position of the first character in the displayed text. If the direction is left to right, the first character is at the top left of the display. If the direction is right to left the first character is at the top right of the display. DXmCSTextShowPosition
Displays text located at a specified position. Format
Arguments
DescriptionThe DXmCSTextShowPosition displays the text located at a specified position, which is the logical position of a character in that text. DXmCSTextVerticalScroll
Scrolls text vertically. Format
Arguments
DescriptionThe DXmCSTextVerticalScroll routine scrolls text vertically by the given number of lines. See the DXmCSTextHorizontalScroll routine for related information.
|