Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dwtlistboxsetitem(3dwt) [ultrix man page]

DwtListBoxSetItem(3Dwt) 												   DwtListBoxSetItem(3Dwt)

       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.

       void DwtListBoxSetItem(widget, item)
	    Widget widget;
	    DwtCompString item;

       widget	 Specifies the widget ID.

       item	 Specifies the item to be made the first item in the list box.

       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


Check Out this Related Man Page

XmListPosToBounds(3X)													     XmListPosToBounds(3X)

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)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

A short history of UNIX by

<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)
Discussion started by: Neo
0 Replies

2. Answers to Frequently Asked Questions

Lost root password / Can't login as root

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)
Discussion started by: Perderabo
0 Replies

3. Programming

How do you detect keystrokes in canonical mode?

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)
Discussion started by: Ultrix
4 Replies

4. UNIX for Dummies Questions & Answers

Linux (Ubuntu) = Unix (NOT IMPORTANT - NO RUSH)

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)
Discussion started by: Linux_Guy
10 Replies

5. IP Networking

Can I change my hostname without messing things up?

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)
Discussion started by: Ultrix
4 Replies