Port  PowerTipText

Chapter 3: Property Descriptions and Usage

Position

The position porperty has different meanings and values for the scroll bar and toolbar controls.

Applies to

HScrollBar, VScrollBar controls

Description

Position specifies where the scroll box or thumb will appear when the scroll bar is first displayed during execution.

Usage


In a painter

StepsTo set the initial position of the scroll box or thumb:

  1. Type a number that is between the values you have specified in MinPosition and MaxPosition.


In scripts

The Position property for scroll bar controls takes an integer value. It should be used in conjunction with MaxPosition and Min Position.

For example, if the scroll bar's minimum is 0 and maximum is 100, this statement positions the scroll box 80 percent of the way toward the bottom.

vsb_1.Position = 80

Applies to

Toolbar controls

Description

Determines where on the window the toolbar is docked. Values are:

Usage


In a painter

StepsTo select an alignment for a toolbar:

  1. Enter an enumerated value in the Position list box on the General page of the control’s Properties view.


In scripts

The Position property takes an enumerated value of type ToolbarAlignment. The following example displays the toolbar at the top of a parent window:

tlbr_myToolbar.Position = AlignAtTop!





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

View this book as PDF