.DT XxExt18LIst - Online Linux Manual PageSection : 3x
Updated :

NAMEThe Internationalized Extended List widget

SYNOPSIS#include <Xm/Ext18List.h>

DESCRIPTIONThis widget contains a multi-column list with headers along the top and a search area along the bottom. The list has scrollbars along the right and bottom edges that allow vertical and horizontal scrolling both by column and by pixel. The portion of the list data that is currently visible can be altered by scrollbar actions, widget resource setting and the redisplay of the list data after a string search has been successful. The sorting of elements within a particular column is also supported. To sort the list by the elements in a given column, select the column's title. To search for a particular string in the list, type the string value to be searched for in the list's associated text field and then press the "Find" pushbutton. The search for the string begins in the currently selected row, after the location of the previously searched for string, or at the first column and first row if there is no column selected. If the string is not found in that row, then the search continues through all rows after and then before, the currently selected row. If the string is found, the display of the list is adjusted to make the string visible. If the string was not found, or if the string is visible, the application will issue a warning beep. Pointer button one allows the user to select a row or a column for sorting. The callbacks on the doubleClickCallback list are called when the user double clicks pointer button one. If the list data can contain a row pixmap to display at the extreme left of the row.

Normal ResourcesNameClassTypeDefault columnTitlesColumnTitlesString *NULL doubleClickCallbackCallbackCallbackNULL entryDataEntryDataXm18RowInfo*NULL findLabelXmStringXmStringFind firstColumnFirstLocationshort0 firstColumnPixmapsFirstColumnPixmapsBooleanFalse firstRowFirstLocationshort0 fontListFontListFontList"fixed" heightDimensionVerticalDimension300 numColumnsNumColumnsshort0 numRowsNumRowsshort0 selectedColumnSelectedColumnshort0 selectionPolicySelectionPolicySelectionPolicyXmEXTENDED_ SELECT showFindbooleanbooleanTrue singleSelectionCallbackCallbackNULL sortFunctionsFunctionFunctionNULL titleTitleStringname of widget widthDimensionHorizontalDimension300 All resource names begin with XmN and all resource class names begin with XmC.

columnTitlesThis is an array of length numColumns of strings displayed at the top of each column. The data is allocated and maintained by the client.

doubleClickCallbackAll routines in this list will be called whenever the user double clicks on a row in the list.

entryDataThis resource is the data associated with each row in the list. The data is an array of Xm18RowInfo structures of length numRows allocated by the client. The data is allocated and maintained by the client. The Xm18RowInfo structure is defined below.

findLabelThe label to be shown on the find button.

firstColumnThis resource allows the client to adjust the current view of the list data to have a new top left column location. When setting this resource, firstRow should also be updated.

firstColumnPixmapsThis resource specifies that the pixmap stored in the row info structure should be used instead of Xm18RowInfo values[0]. If pixmaps are present, the rows may be dragged by pressing on the pixmap with pointer button three. If this resource is True, then values[0] is never referenced. If False, then the Xm18RowInfo data pixmap is never referenced.

firstRowThis resource allows the client to adjust the current view of the list data to have a new top left row location. When setting this resource, firstColumn should also be updated.

fontListThis is an OSF/Motif style font list. The first font in this list will be used to display all text in the Extended List widget. The Extended List widget currently supports only one font.

heightThis is the overall height value assigned to the Extended List widget. Modifying this resource will affect scrollbar size and location.

numColumns

numRowsThese resources specify the number of columns and rows the widget expects to display. These resources are used as the maximum indices for many of the other resources in this widget. Care should be taken when modifying these resources to ensure that the other values have also been modified.

selectedColumnThis is the index of the currently selected column. This also the column by which the list is being sorted.

selectionPolicyDefines the interpretation of the select action. This resource can have the values XmSINGLE_SELECT or XmEXTENDED_SELECT. Other values result in undefined behavior.

showFindThis boolean manages and unmanages the find button

singleSelectionCallbackAll routines in this list will be called whenever the user clicks on a line in the list. A pointer to the Xm18RowInfo structure corresponding to the line selected is passed as call_data. If in extended select mode the value of call_data is undefined.

sortFunctionsThis is an array of functions, one for each column, called to determine the ordering of the rows in the column, similar to qsort.

titleThis is the title that is displayed at the top of the Extended List widget. If this value is NULL, the title area will not be shown.

widthThis is the overall width value assigned to the Extended List widget. Modifying this resource will affect scrollbar size and location.

Specifying Children ResourcesThe Extended List widget is composed of many simple widgets. In order to achieve full functionality of the Toolkit, it is sometimes desirable to set attribute values directly on those widgets. The widget ids of the sub-widgets can be obtained by using the XtNameToWidget() function provided by the Xt Intrinsics. .ta 5,10,15,20,25,30,35 .df XmExt18List <named by application> XmLabel title XmScrollbar vertBar XmScrollBar horizBar XmFrame frame XmPushButton find XmText findText

Using the Resource DatabaseThe Extended List widget is actually a collection of pieces. It provides the geometry layout for the collection as well as tying together the pieces to form a consistent package. Many of the resources that are documented as being part of the Extended List widget are really part of the internal list sub-component. The Extended List widget will pass these values through to the proper child when they are set at time of creation or with XtSetValues or XtGetValues. However, when setting a resource via the resource database you must use either the name of the child or the general specification (*) rather than the specific one (.).

The Xm18RowInfo StructureThe Xm18RowInfo structure is used to contain the entryData associated with each Row in the Extended List. .ta 5,10,15,25,30,35 .df typedef struct _Xm18RowInfo{ /*
 * Used by the IList widget
 */ String * values;/* The array of column strings */ Pixmap pixmap;/* mini-icon pixmaps. */ Boolean selected;/* row selected. */ /* * Provided for the convenience of the application programmer */ short * sort_id; XtPointer data; /* * Private to the Extended List widget (do not modify these) */ short pix_width;/* of the pixmap. */ short pix_height;/* of the pixmap. */ short pix_depth;/* of the pixmap. */ Boolean old_sel_state; } Xm18RowInfo;
valuesThis is an array of strings of length numColumns which represents the strings displayed in each column of this row. The data is allocated and maintained by the client. If firstColumnPixmaps is True, then value[0] is never referenced. pixmapThis is the pixmap displayed to the left of this row. If firstColumnPixmaps is True then this value is never referenced and mayn remain unset. If no pixmap is desired for this row, even though firstColumnPixmaps is True, set the value of pixmap to None. Color pixmaps may be used. sort_idThis is provided for the convenience of the client and is expected to be used as a sort index for this row. One value should be specified for each column of the row. See "sortFunctions" below for details. dataThis is provided for the convenience of the client and may be used for any purpose. It is intended to be used as an identifier for the object pointed to by this row selectedThis value is True if this row is selected; may be set by the application. Neither sort_id nor data are used by the Extended List widget; they exist solely for the convenience of the programmer.

Translations and ActionsThe following are the default translation bindings used by the icon button: ~Ctrl ~Shift <Btn1Down>:ButtonDown() Ctrl ~Shift <Btn1Down>:ButtonDown(Toggle) ~Ctrl Shift <Btn1Down>:ButtonDown(Extend) Button1 <Motion>:Motion() <Btn1Up>:ButtonUpOrLeave() The following actions are supported by the icon button:

ButtonDown(type)Processes a button press action that may begin with either a select or a double click. The type argument can be either Toggle or Extend. These values determine which mode of an extended select will be initiated on this button event. Consult the OSF/Motif Style Guide for details.

Motion()Processes motion events to allow the selection region to be modified when in extended selection mode. It is assumed that this action is called between a ButtonDown() and ButtonUpOrLeave() action.

ButtonUpOrLeave()Cleans up after ButtonDown() and Motion().

Callback RoutinesAll procedures on the Extended List's singleSelectionCallback and doubleClickCallback lists will have a pointer to a Xm18RowInfo structure passed to them in the call_data field. This structure is defined above. Note: if a single SelectionCallback is registered on an extended list in extended_se- lect_mode, the value of call_data is undefined. void (callback)(Widget w, XtPointer client_data, XtPointer call_data) wthe Extended List widget client_datathe client data specified by the application call_dataa pointer to an Xm18RowInfo structure corrsponding the the row selected

Sort Functiontypedef int (Xm18SortFunction) (short column, Xm18RowInfo * row1, Xm18RowInfo * row2); columnthe column currently being sorted row1, row2the two rows being compared. The return value must be an integer less than, equal to, or greater than 0, depending on whether the first argument is less than, equal to, or greater than the second.

Convenience Routines

'>

XmExt18ListGetSelectedRowsXm18RowInfo ** XmExt18ListGetSelectedRows (Widget w) wextended list widget Use the XmExt18ListGetSelectedRows function to find the rows that currently are selected in an extended list. The Xm18RowInfo ** returned by this function contains a NULL terminated array of Xm18RowInfo pointers. The calling routine is responsible for freeing the returned pointer with XtFree(). The function will return NULL if no elements are selected.

XmCreateExtended18ListWidget XmCreateExtended18List(Widget parent, String name, ArgList args, Cardinal num_args) parentparent of the extended list widget to be created
namename of the extended list widget to be created
argsarguments to pass to XtCreateWidget for the extended list
num_argsnumber of arguments passed
This convenience routine simply takes the passed parameters and calls XtCreateWidget, returning the widget created.

XmExt18ListUnselectAllItemsvoid XmExt18ListUnselectAllItems( Widget w ) wthe extended list widget to be modified Unselects all rows of the passed extended list widget and returns nothing.

XmExt18ListUnselectItemvoid XmExt18ListUnselectItem(Widget w, Xm18RowInfo *row_info) wextended list widget
row_infopointer to the row which is to be unselected.
Unselects the row designated by row_info of the passed extended list widget w

COPYRIGHTCopyright (c) 1992 by Integrated Computer Solutions, Inc.
0
Johanes Gumabo
Data Size   :   44,014 byte
man-XmExt18List.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 201,345
Visitor ID   :     :  
Visitor IP   :   3.129.210.35   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|XmExt18List.3|1|DT|.DT )         (rof_unit_scale_ch|30|XmExt18List.3|167|5,10,15,20,25,30,35|.ta 5,10,15,20,25,30,35 )         (rof_ta|15|XmExt18List.3|167|5,10,15,20,25,30,35|.ta 5,10,15,20,25,30,35 )         (parse_manual_page_|249|XmExt18List.3|168|df|.df )         (rof_unit_scale_ch|30|XmExt18List.3|202|5,10,15,25,30,35|.ta 5,10,15,25,30,35 )         (rof_ta|15|XmExt18List.3|202|5,10,15,25,30,35|.ta 5,10,15,25,30,35 )         (parse_manual_page_|249|XmExt18List.3|203|df|.df )