Skip to main content

titleWidth

Type​

property

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.

Syntax​

set the titleWidth of <button> to <pixels>

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.

Examples​

set the titleWidth of button "Options" to 90
set the titleWidth of button "Standard" to 0

Value​

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.

glossary: property, non-negative, popup menu

keyword: integer, button

object: button

property: label, menuMode, name, width

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?