Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

wscroll_set(3W)

wsetsigmask(3W)

weventpoll(3W)

winput_read(3W)

WSCROLL_GET(3W)

NAME

wscroll_get − interrogate scroll bar information

SYNOPSIS

#include <window.h>
int wscroll_get(fd,which,mode,value,min,max,size);
int fd;
int which;
int *mode,*value,*min,*max,*size;

DESCRIPTION

fd is an integer file descriptor of an opened graphics window type device interface. 

which
identifies whether to interrogate the vertical or horizontal scroll bar, and must be one of:

SCROLLBAR_V
Vertical scroll bar (in the right hand border)

SCROLLBAR_H
Horizontal scroll bar (in the bottom border)

mode
returns the mode of the specified scroll bar, and will consist of the OR of:

SCROLLBAR_ELEVATOR
the elevator is enabled.

SCROLLBAR_ARROWS
the arrows are enabled.

SCROLLBAR_USERMODE
The scroll bar is enabled in user mode (otherwise it is in pan mode). If SCROLLBAR_USERMODE and SCROLLBAR_ELEVATOR are both set, the following parameters are also returned:

value The position (on a scale of min to max) of the elevator. 

min The value to be associated with the upper or left end of the elevator. 

max The value to be associated with the lower or right end of the elevator. 

size The size (on a scale of min to max) of the elevator. 

DISCUSSION

Wscroll_get returns information about the vertical or horizontal scroll bar elevators and arrows in the border of a window. 

HARDWARE DEPENDENCIES

Series 500:
Scroll bar capabilities are not supported on Series 500; they work only on Series 300.

SEE ALSO

wscroll_set(3W), wsetsigmask(3W), weventpoll(3W), winput_read(3W). 

DIAGNOSTICS

A return of -1 indicates failure; otherwise 0 is returned.  See errno(2) for more information.

Hewlett-Packard Company  —  HP-UX Release 8.0: January 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026