orientation

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
get the orientation of <scrollbar>
Associationsscrollbar
Summary

Reports whether a scrollbar is vertical or horizontal--that is, whether its height or width property is greater.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
if the orientation of scrollbar 2 is vertical then beep
Values
NameTypeDescription
Value

The orientation of a scrollbar is "vertical" or "horizontal". This property is read-only and cannot be set.

RelatedKeyword: scrollbar
Glossary: property
Property: height, properties, rectangle, width
Description

Use the orientation property to find out whether a scrollbar is horizontal or vertical.

If the scrollbar's height is greater than or equal to its width, the scrollbar is vertical. If the width is greater than the height, the scrollbar is horizontal.

To change a scrollbar's orientation, change its width and height properties.

Tagsui