Skip to content

Auto_Size_State - TextBox

Determines if textbox object will automatically size itself

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

Syntax

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

Description

By default, a textbox object automatically sizes itself based on the length of the label text. If the Auto_Size_State property is set to False, this object will not auto-size.

Set Auto_Size_State to False for multi-line (wrapped) text.

Object oCommentsTextBox is a TextBox
    Set Auto_Size_State to False 
    Set Size to 18 107
    Set Location to 41 6
    Set Label to "This is a long textbox label that I want to wrap to multiple lines"
    Set Justification_Mode to JMode_Left
    Set TextColor to clBlue
End_Object

Default is True.