XControls unitXEdits unitXSplitPanels.pas unit

    This unit contains definition of XSplitPanel and XStatus classes and several other classes needed to its implementation. XSplitPanel is requiring of XAligns.pas and calls UseAligner in its constructor.
   Using of XSplitPanel allows to place controls more easy, dividing its area onto several mouse-sizeable panels vertically or horizontally. It is possible to set initial size of inner panels and its ability to be sizeable with mouse. Do not forget to call UseSplitSizer to allow sizing with mouse.

XSplitPanel

XSplitPanel properties:


XInnerPanel

    While working with XSplitPanel, it is possible to access its inner panels using property Panels[ Idx ].

CAUTION! Panels are enumerated starting from 1 not from 0.

Inner panels are read only, but it is useful to know its ascendency and main properties. Inner panels are derived from XPanel (and have Caption property as well as its ancestor) and have additional properties:


XStatus

    XStatus is very similar to TStatusBar in VCL. But it is more power, because it is derived from XSplitPanel and allows to resize its inner panels with mouse.

XStatus properties are the same as XSplitPanel ones. The single difference is that XStatus is created bottom-aligned with certain (not too large) heihgt.


TASKS

Creating statusbar using XStatus is very easy task:

var SB : XStatus;

...

SB := XStatus.Create( Applet.MainForm );
SB.Count := 3;
SB.Panels[ 1 ].Caption := 'Status1';
SB.Panels[ 2 ].Caption := 'Status2';
SB.Panels[ 3 ].Caption := 'Status3';

...

   All that You need to provide XStatus or XSplitPanel with ability to be resizeable using mouse is to call UseSplitSizer anywhere in Your project. This will turn on add-on XSplitSizing.pas, which also calls UseStdMouse.
   For those of You, who see the first time term "add-on", please read more carefully introduction. I only remind that XCL in differ to Delphi VCL, allows to create extending modules for existing classes, which can expand capabilities of such classes without creating of parallel branch in class tree. These mudules, called "add-on's" can be used in applet optionally or not used at all, and in that last case no code is added to executable. So, in XCL You can choose if to equip your applet with some additional capabilities or to economy its size.
   And in case of this add-on XSplitSizing, You can either use it and allow to resize inner panels with mouse or not to use it and economy size of your exe-file.


goto XCL page

goto home page