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

hiGetFieldMinSize

hiGetFieldMinSize( 
g_formRegionOrLayout 
s_fieldName 
) 
=> l_widthHeightPrompt / nil

Description

Returns the minimum size for the field widget and prompt.

Arguments

g_formRegionOrLayout

  

Any of the following:

  • hiLayout form
  • Scroll region or tab page in hiLayout form
  • hiLayout

s_fieldName

A symbol name of the field

Values Returned

l_widthHeightPrompt

  

Returns a list of the minimum width and height of a widget and the minimum width of a prompt if the prompt is to the left or right of the field. Otherwise, it returns the minimum height of a prompt, if the prompt is above the field.

nil

If the arguments are invalid, then a warning message is displayed and nil is returned.

Examples

Returns the minimum sizes for the field widget and prompt. If the field does not have a prompt, 0 is returned for the minimum size of the prompt. The default minimum sizes for most of these fields is 0. The default minimum width for a text field is 15.

hiSetFont()
=> t
hiGetFieldMinSize( hiFontForm 'fontText )
=> (0 0 0)
hiGetFieldMinSize( hiFontForm 'hiFontTextName )
=> (15 0 0)

Related Topics

Form and Field Functions


Return to top
 ⠀
X