Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter NineDialog Functions (continued)

DialogSetMaximumSize Function

Overview

The DialogSetMaximumSize function sets a limitation of the size of a basic dialog page when being resized.

Syntax/Parameters

Syntax

int = DialogSetMaximumSize ( int w, int h );

Parameters

w

An int specifying the maximum width of the dialog page/window in pixels. Set to zero to release any restrictions.

h

An int specifying the maximum height of the dialog page/window in pixels. Set to zero to release any restrictions.

Return Value

Returns an int value as ERROR_NONE or a formatted error code. Use the GetLastError function to retrieve error information.

Remarks

Setting a maximum size of a dialog prevents the dialog page from being resized to a size larger than the specified value. The size includes the non-client areas of the window such as the caption.

Restricting the size does not impact the creation size. The function does not check for conflicting values with the DialogSetMinimumSize function.

This function only works on basic dialog pages.

Related Functions

Platform Support

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

Legato IDE, Legato Basic