Skip to content

piButtonWidthMax - cToolbar

Defines the maximum width, expressed in pixels, that each button can be

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer piButtonWidthMax
Access Type Syntax
Read Access: Get piButtonWidthMax to IntegerVariable
Write Access: Set piButtonWidthMax to IntegerVariable/Value

Description

piButtonWidthMax defines the maximum width, expressed in pixels, that each button can be. Typically, all buttons have the same width, and this property allows you to determine what the maximum must be.

If a button's label is too wide to fit in this button size, the text will wrap onto multiple lines, as determined by the piTextRowsMax property.

Col 1 Col 2
Note: Normally all buttons have the same width. However, if either the pbList or a button's pbAutoSize property is True, then each button can have a different width.

Default is -1.