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
Value Returned
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
Return to top