VerticalScrollMaximum  Visible

Chapter 3: DataWindow Object Properties

VerticalScrollPosition

Description

The position of the scroll box in the vertical scroll bar. Use VerticalScrollMaximum with VerticalScrollPosition to synchronize vertical scrolling in multiple DataWindow objects.

Applies to

DataWindows

Syntax

PocketBuilder dot notation:

dw_control.Object.DataWindow.VerticalScrollPosition

Describe and Modify argument:

"DataWindow.VerticalScrollPosition { = scrollvalue }"

Parameter

Description

scrollvalue

A long specifying the position of the scroll box in the vertical scroll bar of the DataWindow.

Examples

Example 1

string spos1

spos1 = dw_1.Object.DataWindow.VerticalScrollPosition

Example 2

string spos1, smax, sscroll, modstring

spos1 = &

	dw_1.Describe("DataWindow.VerticalScrollPosition")

smax = &

	dw_1.Describe("DataWindow.VerticalScrollMaximum")

sscroll = String(Long(smax)/2)

modstring = &

		"DataWindow.VerticalScrollPosition=" + sscroll

dw_1.Modify(modstring)





Copyright © 2004. Sybase Inc. All rights reserved. Visible

View this book as PDF