HP OpenVMS Systems Documentation |
DECwindows Extensions to Motif
You can use SVN to display hierarchical information in three different formats, or modes:
Each SVN line, or entry, in your hierarchy can display as many as thirty pieces of information (called components) depending on the amount of information users need. The components can be of three data types: text, pixmaps, and widgets. The SVN widget includes additional support routines (also described in this document) that allow your application to insert and remove components, set the text associated with a component, set a component to be hidden, set and determine a component's width, and determine a component's number. When you create an SVN widget, note that applications must be able to communicate with the widget through Toolkit routine calls that request information about and manipulate selections. As such, when you use the DXmCreateSvn routine to create the SVN widget, you must include the following SVN callbacks:
See the DECwindows Motif Guide to Application Programming for a complete description of the SVN widget. See also the following SVN routines for related information.
DXmCSContainsStringCharSet
Examines XmString segments for ISO_LATIN_1 characters. Format
Return ValueA Boolean value that, when True, indicates that all XmString segments contain characters from the ISO_LATIN_1 character set. Arguments
DescriptionThe DXmCSContainsStringCharSet routine examines all XmString segments in the application for characters belonging to the ISO_LATIN_1 character set. If non-ISO_LATIN_1 characters are detected, this routine will return False. DXmCSTextClearSelection
Clears (cancels) the global selection highlighted in the compound string text widget. Format
Arguments
DescriptionThe DXmCSTextClearSelection routine clears (cancels) the global selection highlighted in the compound string text widget. See the DXmCreateCSText, DXmCSTextGetSelection, and DXmCSTextSetSelection routines for related information. DXmCSTextCopy
Copies the currently selected (highlighted) text to the clipboard. Format
Return ValueA Boolean value that, when True, indicates that the text has been successfully copied to the clipboard. Arguments
DescriptionThe DXmCSTextCopy routine copies the selected (highlighted) text in the compound string text widget to the clipboard, 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, DXmCSTextCut, DXmCSTextPaste, and DXmCSTextRemove routines for related information. DXmCSTextCut
Deletes the currently selected (highlighted) text after copying it to the clipboard. Format
Return ValueA Boolean value that, when True, indicates that the text has been successfully copied to the clipboard and then deleted. Arguments
DescriptionThe DXmCSTextCut routine deletes (cuts) the selected (highlighted) text in the compound string text widget after copying the text to the clipboard, 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, DXmCSTextPaste, and DXmCSTextRemove routines for related information. DXmCSTextDisableRedisplay
Temporarily prevents the visual update of the DXmCSText widget Format
Arguments
DescriptionThe DXmCSTextDisableRedisplay routine prevents redisplay of the specified DXmCSText widget even though its visual attributes have been modified. The visual appearance of the widget remains unchanged until DXmCSTextEnableRedisplay is called. This allows an application to make multiple changes to the widget without causing intermediate visual updates. DXmCSTextEnableRedisplay
Forces the visual update of the DXmCSText widget. Format
Arguments
DescriptionThe DXmCSTextEnableRedisplay is used in conjunction with DXmCSTextDisableRedisplay, which suppresses visual update of DXmCSText. When DXmCSTextEnableRedisplay is called, it determines if any visual attributes have been set or modified for the specified widget since DXmCSTextDisableRedisplay was called. If so, it forces the widget to update its visual display for all of the intervening changes. Any subsequent changes that affect visual appearance cause the widget to update its visual display. DXmCSTextGetEditable
Indicates whether the text in the compound string text widget can be edited by the user. Format
Return ValueA Boolean value that, when True, indicates that the user can edit the text in the compound string text widget. When False, the user cannot edit the text. Arguments
DescriptionThe DXmCSTextGetEditable routine indicates, by returning True or False, whether the text in the compound string text widget can be edited by the user. See the DXmCreateCSText and DXmCSTextSetEditable routines for related information. DXmCSTextGetInsertionPosition
Retrieves (returns) the logical position of the insertion cursor. Format
Return ValueAn integer that represents the logical position of the cursor, by number of characters from the beginning of the text buffer. Arguments
DescriptionThe DXmCSTextGetInsertionPosition routine retrieves the logical position of the insertion cursor by returning an integer that indicates the distance (in number of characters) between the cursor and the beginning of the text buffer. See the DXmCSTextSetInsertionPosition for related information. DXmCSTextGetLastPosition
Retrieves (returns) the logical position of the last character in the text. Format
Return ValueAn integer that represents the logical position of the last character in the text buffer. Arguments
DescriptionThe DXmCSTextGetLastPosition routine retrieves the logical position of the last character in the text by returning an integer. The position may correspond to a line feed. DXmCSTextGetMaxLength
Retrieves (returns) current maximum allowable length of the text in the compound string text widget. Format
Return ValueAn integer that represents the maximum allowable length, in characters, of the text in the compound string text widget. Argument
DescriptionThe DXmCSTextGetMaxLength routine retrieves the current maximum allowable length of the text in the compound string text widget by returning an integer. See the DXmCreateCSText and DXmCSTextSetMaxLength routines for related information. DXmCSTextGetSelection
Retrieves the text selected in the compound string text widget. Format
Return ValueA pointer to the selected text compound string. Argument
DescriptionThe DXmCSTextGetSelection routine retrieves the text selected (highlighted) in the compound string text widget. It returns a Null pointer if no text is selected in the widget. The application is responsible for freeing the storage associated with the text by calling the Intrinsic routine XtStringFree. DXmCSTextGetSelectionInfo
Retrieves (returns) the left and right positions of the currently selected text. Format
Return ValueA Boolean value that, when False, indicates that there is no currently selected text; otherwise, the value is True. Arguments
DescriptionThe DXmCSTextGetSelectionInfo routine, when True, returns the left and right logical positions corresponding to the currently selected (highlighted) text. If no text is selected, this routine returns False.
|