Skip to content

PaneTextWidth - cStatusBar

Returns the width, in pixels, of the string, sText

Type: Function
Return Data Type: Integer

Parameters

Parameter Type Description
sText WString The text to display

Syntax

Function PaneTextWidth WString sText Returns Integer

Call Example

Get PaneTextWidth sText to IntegerVariable

Description

PaneTextWidth returns the width, in pixels, of the string, sText. You can then use this to set the piWidth of a panel.

You can only use this function when the statusbar has had its window created. Therefore, you should check the Window_Handle property before you use this.

Return Value

The width, in pixels, of the string, sText