Livecode Wiki
Advertisement

Used with the set command to set the properties of newly created scrollbars.Syntax:

templateScrollbar

Examples:

set the style of the templateScrollbar to scale

Use the templateScrollbar keyword to set up default properties to be used for any new scrollbars you create.

The templateScrollbar can be thought of as a special, abstract object(glossary). It is not an actual scrollbar(keyword), but it has all the properties of a scrollbar(keyword). The ID property of the templateScrollbar is zero.

You can use the set command to set the properties of the templateScrollbar before creating a scrollbar. The new scrollbar(keyword) has the properties of the templateScrollbar, by default. Changing the properties of the templateScrollbar does not affect existing scrollbars.

The properties of the templateScrollbar can be returned to the default settings using the reset command.

You can refer to the templateScrollbar using any of the following forms: templateScrollbar

   the templateScrollbar
   templateScrollbar()


The templateScrollbar keyword is implemented internally as a function and appears in the functionNames. However, it cannot be used as a function in an expression.

See also: functionNames (function),newScrollbar (message),scrollbar (object),properties (property),ID (property),

Advertisement