Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.67 KB

GuiSplitContainer.rst

File metadata and controls

64 lines (43 loc) · 1.67 KB

GuiSplitContainer

A container that splits its area between two child controls.

Inherit:

GuiContainer

Description

A GuiSplitContainer can be used to dynamically subdivide an area between two child controls. A splitter bar is placed between the two controls and allows to dynamically adjust the sizing ratio between the two sides. Splitting can be either horizontal (subdividing top and bottom) or vertical (subdividing left and right) depending on orientation.

By using fixedPanel, one of the panels can be chosen to remain at a fixed size (fixedSize).

Example:

// Create a vertical splitter with a fixed-size left panel.
%splitter = newGuiSplitContainer()
{
   orientation = "Vertical";
   fixedPanel = "FirstPanel";
   fixedSize = 100;

   newGuiScrollCtrl()
   {
      newGuiMLTextCtrl()
      {
         text = %longText;
      };
   };

   newGuiScrollCtrl()
   {
      newGuiMLTextCtrl()
      {
         text = %moreLongText;
      };
   };
};

Fields