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

hiGetDefaultWidgetSpacing

hiGetDefaultWidgetSpacing(
[ ?widgetsAreRelated t | nil ]
)
=> x_value

Description

Returns the recommended number of pixels between UI elements. The spacing between related elements, such as a group of Boolean buttons, is smaller than elements, which are not related.

Argument

?widgetsAreRelated

  

Spacing size between UI elements.

Default value: nil

Value Returned

x_value

Number of pixels between UI elements.

Example

myForm=(hiCreateLayoutForm
     'myForm
"Grouped Buttons"
(hiCreateVerticalBoxLayout 'rootLayout
?items
(list
(hiCreateVerticalBoxLayout 'vlyt
?frame "Related items"
?spacing (hiGetDefaultWidgetSpacing ?widgetsAreRelated t)
?items (list
(hiCreateBooleanButton ?name 'bb ?buttonText "Apples")
(hiCreateRadioField ?name 'rf
?choices (list "Gala" "Honeycrisp" "Braeburn")
?defValue "Braeburn"
?prompt "Type:")
))))
?buttonLayout 'Close
?initialSize (300:100))
hiDisplayForm(myForm)

Related Topics

Thumbnail View Functions


Return to top
 ⠀
X