Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter NineDialog Functions (continued)

PageControlSetWidth Function

Overview

The PageControlSetWidth function sets the content width for the control.

Syntax/Parameters

Syntax

int = PageViewSetWidth ( int id, [dword width] );

Parameters

id

An int containing the control ID of the page control.

width

An optional dword specifying a pvalue for the width of the window. If omitted, the control is instructed to set its content width to the width of the control.

Return Value

Returns an int as ERROR_NONE or a formatted error code on failure. Common errors include: ERROR_RANGE if id is an invalid control ID for the open dialog or ERROR_INVALID_HANDLE if no dialog is open. Use the GetLastError function to retrieve error information.

Remarks

The Page Control renders to a default box model width or the width specified by the HTML code. The initial width of a Page Control is the default width as set for the application. The width can be specified in any fixed CSS value such as “6in”, “400px”, or “100mm” but must be specified as a pvalue.

The width, when set to the control size or a specific size, is based on 100% zoom.

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic