Product Documentation
Cadence User Interface SKILL Reference
Product Version IC23.1, September 2023

hiSetFormSize

hiSetFormSize(
r_form
l_size
[ g_reattachFields ]
)
=> t / nil

Description

Resizes a form programmatically. If the optional argument g_reattachFields is non-nil, field attachments is recalculated based on the new form size and original field sizes.

Arguments

r_form

Handle to the form, which is returned by hiCreateAppForm.

l_size

New size of the form, specified as width:height or a list of width and height. The size includes the field area and the button area of the form but excludes the window manager border.

g_reattachFields

Recalculates field attachments based on the new form size and original field sizes. If this argument is nil or unspecified, fields with field attachments are resized in the same way as they are when you resize the form manually.

This argument only applies to forms with field attachments and is ignored for non-attached forms.

Values Returned

t

The form was resized.

nil

The form could not be resized.

Related Topics

Form and Field Functions

hiCreateAppForm


Return to top
 ⠀
X