Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dwtlistboxsetpos(3dwt) [ultrix man page]

DwtListBoxSetPos(3Dwt)													    DwtListBoxSetPos(3Dwt)

       DwtListBoxSetPos  -  Makes a specified position (item number in the list) the top visible position in a list box, or as close to the top as

       void DwtListBoxSetPos(widget, position)
	    Widget widget;
	    int position;

       widget	 Specifies the ID of the list box widget whose specified item number in the list you want displayed in the top position.

       position  Specifies the item number in the list displayed in the top position in the list box.

       The DwtListBoxSetPos function makes the specified position (the item number in the list) the top visible position in a list box.  The func-
       tion  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 DwtNvisibleItemsCount 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 be displayed at the top of the list box.
       Instead, items 6 through 10 would be displayed.	Setting position to 4 would make items 4 through 8 be displayed.  If DwtNvisibleItemsCount
       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(library call) 										   XmListPosToBounds(library call)

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 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 associ- ated 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. widget Specifies the ID of the List widget. position Specifies the position of the specified item. A value of 1 indicates the first item in the list; a value of 2 indicates the sec- ond item; and so on. A value of 0 (zero) specifies the last item in the list. x Specifies a pointer to the returned x-coordinate of the item. y Specifies the pointer to the returned y-coordinate of the item. width Specifies the pointer to the returned width of the item. height Specifies the pointer to the returned height of the item. For a complete definition of List and its associated resources, see XmList(3). RETURN
If the item at the specified position is not visible, returns False, and the returned values (if any) are undefined. Otherwise, this func- tion returns True. RELATED
XmList(3) and XmListYToPos(3). XmListPosToBounds(library call)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Network standalone Unix box

I am using the Linksys router as my hub to network my Win 2000 PC and Unix box to the cable modem. However, I can only get connection for my Win 2000 PC. The Unix box was able to get connection initially (yesterday) but when I reboot the machine this morning, the network went dead. What did I do... (6 Replies)
Discussion started by: conflansun
6 Replies

2. Cybersecurity

opening ports

I need to open a port in linux to allow a connect() from another box to succeed. I have the linux box listening on port 3000 on INADDR_ANY, and a Windows box does a connect to the IP of the linux box on that same port. The Linux box refuses the connection. I think it's because all the ports are... (9 Replies)
Discussion started by: dryheat
9 Replies

3. Post Here to Contact Site Administrators and Moderators

netscape 4.5.1

Were you aware that the forum entries don't show up in netscape 4.5.1. This is true on an NT box and a solaris box. I changed my colors around on my winders box and checked to always use my colors. Unfortunately my company doesn't seem in any hurry to upgrade. It just means I have to ftp code... (7 Replies)
Discussion started by: gillbates
7 Replies

4. UNIX for Advanced & Expert Users

Authentication token error?!?!

Hi all, I have upgraded my old RedHat 6.2 box to RedHat 7.3. I had couple hundreds of users on that box so i just migrated all the user account to a new box by transfering home directories, and appending to /etc/passwd /etc/shadow /etc/group. I have preserved all permittions. Everything works... (8 Replies)
Discussion started by: solvman
8 Replies

5. UNIX for Advanced & Expert Users

Multiple Terminals

Dear Members, I have aquired a load of old Wyse dumb terminals. I have a Linux system set up that I want to be the host for all of these. Now, I know these don't use cat5 or standard networking. They are all done through serial (com) ports. However, I researched this more and found a converter... (25 Replies)
Discussion started by: Phobos
25 Replies

6. UNIX for Advanced & Expert Users

Multiple (thousands) of Cron Instances

Hey all, I have a box running SUSE SLES 8 and in the past few months the box will randomly spawn thousands of instances of /USR/SBIN/CRON to the point where the box will lock up entirely. Upwards of 14000 instances! I imagine it's using up all of the available files that can be opened at one... (10 Replies)
Discussion started by: sysera
10 Replies

7. Shell Programming and Scripting

how to log top command

i have an HPUX box in the office, as my daily routine i always check the load on my servers. i use the "top" command to see that. i would like to create a log file out of it so i can make it run once a day and check the logs. the problem is that the "top" command is like the "tail -f" command where... (7 Replies)
Discussion started by: inquirer
7 Replies

8. Solaris

Faulty PSU - but its still working !?!

Hello We have a power supply in an x4100 (x86) and it seems to be faulty but it is still working!?! (this box only has one PSU). We are getting Orange flashing warning light on the front of the box and the LED labelled “rear PSu” is solid orange ...We don't seem to have had any syslog error... (8 Replies)
Discussion started by: hcclnoodles
8 Replies

9. UNIX for Advanced & Expert Users

System hanged. help required.

HI, I have a Fedora running box. I am not able to ping/login. I guess it got hanged. Can any one help me how to login to that box with out restart? (8 Replies)
Discussion started by: praveen_b744
8 Replies

10. Solaris

An urgent call for help

I am new with Sun and havn't been working with it for more then a week now, but I have ran into a problem. I have a Sun V210 box with 2 Fujitsu hard drives. I had everything working on the box (solaris 8), but I was told that some more things needed to be configured. Rather then risking messing the... (6 Replies)
Discussion started by: bsdixon
6 Replies

11. HP-UX

HPUX & Top Command

Hello, I'm a newbie to HPUX so please be patient :) I'm looking at top and it only shows 3 of the 8 cpu's: 0 4 and 5. But the box has 8 cpu's according to the 'machinfo' command. There are 4 processes using 10% "%CPU" each but it shows the box as 90% idle...??? Also, I don't see any... (16 Replies)
Discussion started by: mj62mj62
16 Replies

12. Shell Programming and Scripting

Setting environmental variable for all the users in the box

Hi, I have Sun solaris x64 box in which i need to set a Environment variable for all the users in the box. This Environment varible is used by the application on the box. Could any one please help me in setting the Environment variable. Thanks, Firestar (6 Replies)
Discussion started by: firestar
6 Replies

13. UNIX for Advanced & Expert Users

Entire Input command not visible in Unix prompt

Hi, While typing the Unix command, entire command is not visible.When the input command is long, it is not visible. I want the entire command to be displayed when i type it. Please help to resolve this issue. Thanks Sampath (7 Replies)
Discussion started by: sampath.giri
7 Replies

14. Shell Programming and Scripting

Want to box the output

I have on script1 which provide the output text... I want to make box around that output to make it more beautiful. As the output lines for the script1 are not fixed, I can not hard code the design pattern. Can anyone provide me the code to make design.? ... (9 Replies)
Discussion started by: Nakul_sh
9 Replies

15. Red Hat

Could any one tell me how to assign IP to a linux box.

Hi All, Could any one please help me how to assign IP to a linux box permanently. IP should not be changed even after Rebooting the machine.:b::b::b: (8 Replies)
Discussion started by: vamshigvk475
8 Replies