HP OpenVMS Systems Documentation |
DECwindows Extensions to Motif
The default is Null. Access is CSG. DXmSvnNexpectHighlightingA Boolean resource that, when True, creates a rectangle large enough to highlight the entries. The default is False. Access is CSG.DXmSvnNextendConfirmCallbackCallback made when the user double clicks MB1 with multiple entries selected. To determine which entries are selected, the application must call the DXmSvnGetNumSelections and the DXmSvnGetSelections routines.The callback reason is DXmSvnCRExtendConfirm. Other callback fields are as follows:
The default is Null. Access is CSG. DXmSvnNfixedWidthEntriesA Boolean resource that, when True, specifies that all entries, including the selectable white space to the right of each entry, will be the same width. Fixed width entries are the width of the display window. The default is True. Access is CSG.DXmSvnNfontListThe default font when no level font is specified. The default is DXmDefaultFont. Access is CSG.DXmSvnNfontListLevel0The default font list used by level 0 entries. The default is Null. Access is CSG.DXmSvnNfontListLevel1The default font list used by level 1 entries. The default is Null. Access is CSG.DXmSvnNfontListLevel2The default font list used by level 2 entries. The default is Null. Access is CSG.DXmSvnNfontListLevel3The default font list used by level 3 entries. The default is Null. Access is CSG.DXmSvnNfontListLevel4The default font list used by level 4 entries. The default is Null. Access is CSG.DXmSvnNforceSeqGetEntryA Boolean resource that, when True, specifies that the SVN widget generate the DXmSvnNgetEntryCallback callbacks in sequential order only. The default is False. Access is CSG.DXmSvnNgetEntryCallbackCallback made when the SVN widget requires information about an entry. The application should respond by calling the DXmSvnSetEntry routine. Control should not be returned from the callback until this call and subsequent calls are made to the DXmSvnSetComponentPixmap, DXmSvnSetComponentText, or DXmSvnSetComponentWidget routines.The callback reason is DXmSvnCRGetEntry. Other callback fields are as follows:
The default is Null. Access is CSG. DXmSvnNghostHeightThe height of the pixmap for a specific type of highlighted image, or "ghost", that follows the entries as they are dragged. The default is 0. Access is CSG.DXmSvnNghostPixmapThe pixmap for a specific type of highlighted image, or "ghost", that follows the entries as they are dragged. The default is Null. Access is CSG.DXmSvnNghostWidthThe width of the pixmap for a specific type of highlighted image, or "ghost", that follows the entries as they are dragged. The default is 0. Access is CSG.
DXmSvnNghostXRelative x position on the screen where the dragging "ghost" (a specific type of highlighted image that follows the entries as they are dragged) is attached to the cursor. The default is 0. Access is CSG.DXmSvnNghostYRelative y position on the screen where the dragging "ghost" (a specific type of highlighted image that follows the entries as they are dragged) is attached to the cursor. The default is 0. Access is CSG.DXmSvnNhelpRequestedCallbackCallback made when the user requests help. The callback reason is DXmSvnCRHelpRequested. Other callback fields are as follows:
Note that the values for the entry_number and loc_cursor_entry_number fields vary depending on how the user requests help, as follows:
The default is Null. Access is CSG. DXmSvnNindentMarginThe number of pixels each entry level should be indented. The default is 16 pixels. Access is CSG.DXmSvnNliveScrollingA Boolean resource that, when True, allows scrolling in outline and column display mode, but not in tree mode. If an application uses the existing index window instead, this resource must be set to False. The default is True. Access is CSG.DXmSvnNprimaryPercentageThe percentage of the display window that is in the primary side of the column view. The default is 50 percent. Access is CSG.DXmSvnNprimaryWindowWidgetThe identifier (widget ID) of the primary window widget in the SVN display. The default is Null. Access is G (read-only).DXmSvnNmultipleSelectionsA Boolean resource that, when True, allows the user to specify multiple selections. The default is True. Access is CSG.DXmSvnNnavWindowTitleThe title for a pop-up navigation window. The default is Null. Access is CSG.DXmSvnNnumberOfEntriesThe number of entries. The initial value is 0. This value increases or decreases as entries are changed by the DXmSvnAddEntries and DXmSvnDeleteEntries routines. Access is G (read-only).DXmSvnNoutlineHScrollWidgetThe identifier (widget ID) of the primary horizontal scroll bar. The default is Null. Access is G (read-only).DXmSvnNpaneWidgetThe identifier (widget ID) of the pane widget. The default is Null. Access is G (read-only).DXmSvnNpopupMenuCallbackCallback made after an MB3 click that notifies the application to generate a pop-up menu for this entry.The callback reason is DXmSvnCRPopupMenu. Other callback fields are as follows:
The default is Null. Access is CSG. DXmSvnNsecondaryBaseXThe base x position of the secondary window in the column view. The default is 0. Access is CSG.DXmSvnNsecondaryComponentsUnmappedA Boolean resource that, when True, specifies that secondary components still exist even though they are not visible in the column view. The default is False. Access is CSG.DXmSvnNsecondaryWindowWidgetThe identifier (widget ID) of the secondary widget in the SVN display. The default is Null. Access is G (read-only).DXmSvnNselectAndConfirmCallbackCallback made when the user double clicks MB1 on a single entry, indicating that the user wants to expand or collapse (contract) the entry. The application can determine which entry has been selected by either examining the entry_number and component_number fields of the callback data structure or by calling the DXmSvnGetSelections routine.This callback is also called when all three of the following conditions exist:
In such an instance, the individual calls are from the highest entry number selected through the lowest entry number selected. The callback reason is DXmSvnCRSelectAndConfirm. Other callback fields are as follows:
The default is Null. Access is CSG.
DXmSvnNselectionModeSpecifies what is to be selected. The selection mode, which is used by the column view, is indicated by one of the following values:
The default is DXmSvnKselectEntry. Access is CSG. DXmSvnNselectionsDraggedCallbackThe user has used MB2 to drag selected entries to another location. Note that the use of this resource is valid only when application-controlled dragging has not been set (with the DXmSvnNdraggingCallback and DXmSvnNdraggingEndCallback callbacks).The callback reason is DXmSvnCRSelectionsDragged. Other callback fields are as follows:
The default is Null (dragging will not occur). Access is CSG. DXmSvnNshowPathToRootA Boolean resource that, when True, shows the path to the root, which is the first entry level in the display (level 0). This path is represented by a horizontal line over which the hierarchy of entry levels (each indented) is displayed. The default is True. Access is CSG.DXmSvnNstartColumnComponentThe number of the component that begins the secondary column. The default is 0, which indicates that no components should be displayed in the secondary column. Access is CSG.DXmSvnNstartLocationCursorAllows the application to specify the entry where the location cursor will be displayed when the SVN widget is first activated. You can set this resource only at widget creation time; it cannot be changed thereafter. The default position of the location cursor is entry number 1. Access is C.DXmSvnNtransitionsDoneCallbackCallback made when the user has released MB1 following an application-controlled drag operation.The callback reason is DXmSvnCRTransitionsDone. Other callback fields are as follows:
The default is Null. Access is CSG. DXmSvnNtreeArcWidthThe width for the arc of the outline that delineates the boundary between each tree display mode entry. The default is 15 pixels. Access is CSG.DXmSvnNtreeCenteredComponentsA Boolean resource that, when True, centers components vertically within an entry. The SVN widget automatically alters the size of the entries to fit the centered components. The default is False. Access is CSG.DXmSvnNtreeEntryOutlinesA Boolean resource that, when True, displays an outline around tree mode entries. The default is True. Access is CSG.DXmSvnNtreeEntryShadowsA Boolean resource that, when True, adds shadowing to the outline surrounding tree mode entries. The default is True. Access is CSG.DXmSvnNtreeIndexAllA Boolean resource that, when True, specifies that all tree mode entries appear in the index window when the user is scrolling. The default is True. Access is CSG.DXmSvnNtreeLevelSpacingSpecifies how much space, in pixels, to insert between tree levels. The default is 5 pixels. Access is CSG.DXmSvnNtreePerpendicularLinesA Boolean resource that, when True, specifies that lines connecting the entries in tree mode are perpendicular instead of diagonal. The default is True.DXmSvnNtreeSiblingSpacingSpecifies how much space, in pixels, to insert between sibling tree mode entries. The default is 5 pixels. Access is CSG.DXmSvnNtreeStyleSpecifies the style (format) of a tree display, as indicated by one of the following values:
The default is DXmSvnKoutlineTree. Access is CSG. DXmSvnNtruncateTextA Boolean resource that, when True, truncates text that is too long for the display. The default is False. Access is CSG.DXmSvnNuseScrollButtonsA Boolean resource that, when True, creates outer arrows on a scroll bar, which the user can click on to move the display. The default is True. Access is CSG. Callback Structure
Note that all callbacks do not use all the fields listed except reason, which is common to all. Callback Field Descriptions
Callback ReasonsThe following table lists the reasons and the valid callback fields for each: Keyboard BindingsThe following table describes how specific keys function within the SVN environment. The table also lists the Motif name and LK401 keyboard equivalent for each key. See the OSF/Motif Style Guide and the DECwindows Companion to the OSF/Motif Style Guide for additional information about DECwindows Motif keyboard bindings. 1Note that on an LK201 keyboard, Prev is Prev Screen, Next is Next Screen, and Alt is Compose Character. DescriptionThe DXmCreateSvn routine allows you to create a hierarchical structure of information that is presented to a user in an organized manner and in a way that lets the user navigate in, and select from, that structure. Your application need only tell the SVN widget about the organization of the data and respond to SVN widget callbacks; the SVN widget is responsible for actually displaying the data. |