DwtListBoxSetItem(3Dwt)DwtListBoxSetItem(3Dwt)Name
DwtListBoxSetItem - Makes a specified item (if it exists) the first visible item in a list box, or as close to the top as possible. The
item always becomes visible.
Syntax
void DwtListBoxSetItem(widget, item)
Widget widget;
DwtCompString item;
Arguments
widget Specifies the widget ID.
item Specifies the item to be made the first item in the list box.
Description
The DwtListBoxSetItem function makes the specified item (if it exists) the first visible item in a list box. The function determines which
item in the list box is displayed at the top of the list box, the choice of which is limited by the DwtNitemsCount and DwtNvisibleItem-
sCount attributes to the list box widget. When DwtNvisibleItemsCount is greater than 1 and less than DwtNitemsCount, the list box widget
fills the list box with the maximum visible items regardless of the position value.
For example, if DwtNitemsCount is 10 and DwtNvisibleItemsCount is 5, you cannot make item 8 display at the top of the list box. Instead,
items 6 through 10 would be displayed. Setting item to the fourth item in the list would make items 4 through 8 display. If DwtNvisi-
bleItemsCount is 1, you can make any item in the list be displayed at the top of the list box.
See Also
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtListBoxSetItem(3Dwt)
Check Out this Related Man Page
XmListPosToBounds(3X)XmListPosToBounds(3X)NAME
XmListPosToBounds - A List function that returns the bounding box of an item at a specified position in a list
SYNOPSIS
#include <Xm/List.h>
Boolean XmListPosToBounds (widget, position, x, y, width, height)
Widget widget;
int position;
Position *x;
Position *y;
Dimension *width;
Dimension *height;
DESCRIPTION
XmListPosToBounds returns the coordinates of an item within a list and the dimensions of its bounding box. The function returns the asso-
ciated x and y coordinates of the upper left corner of the bounding box relative to the upper left corner of the List widget, as well as
the width and the height of the box. The caller can pass a NULL value for the x, y, width, or height parameters to indicate that the
return value for that parameter is not requested. Specifies the ID of the List widget. Specifies the position of the specified item. A
value of 1 indicates the first item in the list; a value of 2 indicates the second item; and so on. A value of 0 specifies the last item
in the list. Specifies a pointer to the returned x coordinate of the item. Specifies the pointer to the returned y coordinate of the
item. Specifies the pointer to the returned width of the item. Specifies the pointer to the returned height of the item.
For a complete definition of List and its associated resources, see XmList(3X).
RETURN VALUE
If the item at the specified position is not visible, returns False, and the returned values (if any) are undefined. Otherwise, returns
True.
SEE ALSO XmList(3X), XmListYToPos(3X)XmListPosToBounds(3X)
<h1>A short history of UNIX</h1>
<p>In the late 1960's Ken Thompsom joined the computing-science research group at Bell
Laboratories, which is the research arm of the giant American corporation ATT. He and many
colleagues had been collaborating with MIT and GE on the development of an... (0 Replies)
We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
I'm writing a command shell, and I want to be able to detect when the user presses an arrow key (otherwise it just prints [[A, [[B, etc.). I know it's relatively easy (although somewhat more time-consuming) to detect keystrokes in noncanonical mode, but I've noticed that the bash shell detects... (4 Replies)
I'm learning off Linux (Ubuntu) right now. I want to move up to Unix, but I don't want to rush like I did when it came to Windows --> to Linux. What is the best Unix OS that fits in pretty well with Ubuntu.
In other words is there kind of an equal Linux with Unix?
Also what do I need to... (10 Replies)
I noticed my hostname is <my-full-name>s-macbook.local. I'm not sure exactly what information leaves the local network, and whether the hostname is included, but if it is, this would mean people on the Internet can look at my hostname and see who I am. Before anyone says that's not possible,... (4 Replies)