Add Splitter

A splitter can be added to a form to divide the form in two sections with a movable splitter bar in between.

  1. Add a cResizeSplitter from the Visual Studio toolbox to the form.
  2. Select the splitter.
  3. In the Visual Studio property window, choose a Target and a Type for the two sides of the splitter. Targets can be any existing form in the application or controls on the current form.

Figure 1: Example use of splitter

To group controls on one side of a splitter it is possible to use a cPanel control. Add a cPanel to your form and add controls to it. Then it is possible to choose the cPanel control as a target to the cResizeSplitter. It is possible to combine targets in many ways. You can have cPanel controls on both sides, you can have a cPanel on First Side and a cChildTable on the Second Side, you can have a Form on the First Side and a cPanel on the Second Side and so on.

Figure 2: Example of using cPanels for grouping controls when using a splitter