Skip to main content

thumbSize

Type​

property

Summary​

Specifies how large a scrollbar's draggable thumb is.

Syntax​

set the thumbSize of <scrollbar> to <number>

Description​

Use the thumbSize property to specify the size of a scrollbar's draggable thumb.

Normally, the thumbSize is proportional to the proportion of content visible on the screen. For example, if a third of the content can be seen and the rest is always scrolled off, the scrollbar thumb should cover a third of the scrollbar area, so the number should be one-third of the difference between the scrollbar's startValue and its endValue.

If the proportionalThumbs property is set to false, this property has no effect.

Examples​

set the thumbSize of scrollbar "Contents Group" to 500
set the thumbSize of scrollbar 1 to \
(the height of group "Main"/the formattedHeight of group "Main")

Value​

NameTypeDescription

value

The number is a number between the scrollbar's startValue and endValue.

glossary: scrollbar thumb, property

object: scrollbar

property: thumbPosition, endValue, formattedHeight, proportionalThumbs, startValue, formattedWidth

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?