Skip to main content

HSplit

The HSplit widget is a layout widget that divides one area into several panes. Set the size ratio of each pane, or drag the divider to resize them.

info

This widget is locked on the Free plan. It's available on the Pro and Enterprise plans.

Definition and role

The HSplit widget divides its interior into several panes (SplitItem). A divider is drawn between the panes, and you can set the number of panes, their size ratios, and the divider's thickness, color, indent, and corner radius.

  • Category: Layouts
  • Default number of panes: 2
  • Default divider: shown — white, 10px thick

Features

FeatureDescription
Area splittingDivides the area into as many panes (SplitItem) as itemCount specifies — 2 to 99.
Size ratioSet each pane's size ratio with its flex value (splitItemNFlex).
Divider draggingTurn isFixedDivider off to unlock the divider, then drag it to resize the two adjacent panes.
Divider stylingSet whether the divider is shown, along with its thickness, color, indent, and corner radius.

How to use

  1. Open the Layouts category in the left widget palette.
  2. Drag the HSplit item onto the canvas.
  3. In the Properties panel on the right, set the number of panes with itemCount.
  4. Adjust each pane's size ratio with its splitItemNFlex value.
  5. If needed, set whether the divider is shown and locked (isShowDivider, isFixedDivider), along with its thickness and color.

Properties

PropertyDescriptionDefaultValue / Type
itemCountNumber of panes (SplitItem)2Integer (2~99)
isShowDividerWhether the divider is showntrue (shown)true / false
isFixedDividerWhether the divider is locked. A locked divider can't be dragged to resize panestrue (locked)true / false
dividerThicknessDivider thickness10Number (px)
dividerIndentIndent at the start of the divider0Number (px)
dividerEndIndentIndent at the end of the divider0Number (px)
dividerColorDivider color#FFFFFF (white)Color
dividerBorderRadiusCorner radius of the divider0Number (px)
splitItem1FlexSize ratio (weight) of the first pane1Integer (1~1000)
splitItem2FlexSize ratio (weight) of the second pane. Raise itemCount and splitItem3Flex … are created automatically, one per pane1Integer (1~1000)

Notes and tips

warning

To resize panes by dragging the divider, turn isFixedDivider off (false). The default is locked (true), so until you change it, dragging the divider does nothing.

tip

Each pane's size comes from the ratio of the splitItemNFlex values. Two panes with flex 1 and 2, for example, end up sized 1:2. Raise itemCount and the matching flex properties are added automatically.

Learn more

tip

For the full set of Widget Controls (Property, Method, and Event) that drive this widget from a script, visit HSplit Widget Control.