titleWidth

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the titleWidth of <button> to <pixels>
Synonymslabelwidth
Associationsbutton
Summary

Specifies the amount of a button's width used to display the button's name or label property to the left of the button.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
set the titleWidth of button "Options" to 90
set the titleWidth of button "Standard" to 0
Values
NameTypeDescription
Value

The titleWidth of a button is a non-negative integer. By default, the titleWidth property of newly created buttons is set to zero.

RelatedKeyword: integer, button
Property: label, menuMode, name, width
Object: button
Glossary: property, non-negative, popup menu
Description

Use the titleWidth property to create popup menus with a title.

The titleWidth is taken from the total width of the button. This means that setting a titleWidth makes the button narrower, and you may have to increase the width property to accommodate both title and button.

Tagsui