Skip to content

piMaxWidth - cToolTipController

Sets the maximum width for the ToolTip window

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

Syntax

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

Description

Set piMaxWidth to the maximum width (in pixels) for the ToolTip window.

The maximum width does not indicate the ToolTip window's actual width. Rather, if a ToolTip string exceeds the maximum width, the control breaks the text into multiple lines, using spaces to determine line breaks. If the text cannot be segmented into multiple lines, it is displayed on a single line, which may exceed the maximum ToolTip width.

Default is -1.

Col 1 Col 2
Note: A value of -1 means that the control itself will determine what to do. Normally, this means that the width has some limit, but the text will be truncated when it exceeds the limit. That limit can differ depending on the OS.