Type | Description | |||
SplitBarModeEnum | A SplitBarModeEnum expression that determines the split bar's mode. |
Any of the following properties can be used to anchor controls/components/objects to the left/top/right/bottom sides of the split bar:
The LimitRB property specifies the expression that determines the limit to drag the splitter to right/bottom side of its container. The LimitLT property specifies the expression that determines the limit to drag the splitter to left/top side of its container.
Here's the steps you need to follow in order to use the eXSplitBar control:
For instance, let's say we have the following layout:
so we have two split bars ( horizontal and vertical ), and three buttons/commands. One splitter should resizes the left-most button, and the rest, and the vertical split bar show resize the top-most button and the bellow one.
In
you can select the split bar in design mode, and specify the objects in the left/top and right/bottom parts of the split bar as in the following screen shot, using the ObjectsLT and ObjectsRB properties:
In
you need to use the AddObjectLT and AddObjectRB methods as in the following samples.
C++ Builder :
SplitBar1->AddObjectLT(TVariant(Button1->Handle)); SplitBar1->AddObjectRB(TVariant(Button2->Handle)); SplitBar1->AddObjectRB(TVariant(SplitBar2->DefaultInterface)); SplitBar1->AddObjectRB(TVariant(Button3->Handle));
C# for /COM on /NET Framework :
axSplitBar1.AddObjectLT(button1); axSplitBar1.AddObjectRB(button2); axSplitBar1.AddObjectRB(axSplitBar2); axSplitBar1.AddObjectRB(button3);
Delphi :
with SplitBar1 do begin AddObjectLT(Button1.Handle); AddObjectRB(Button2.Handle); AddObjectRB(SplitBar2.DefaultInterface); AddObjectRB(Button3.Handle); end
Visual Basic for /COM on /NET Framework:
With AxSplitBar1 .AddObjectLT(Button1) .AddObjectRB(Button2) .AddObjectRB(AxSplitBar2) .AddObjectRB(Button3) End With
Visual C++:
EXSPLITBARLib::ISplitBarPtr spSplitBar1 = GetDlgItem(IDC_SPLITBAR1)->GetControlUnknown(); spSplitBar1->AddObjectLT( (long)::GetDlgItem( m_hWnd, IDC_BUTTON1 ) ); spSplitBar1->AddObjectRB( (long)::GetDlgItem( m_hWnd, IDC_BUTTON2 ) ); spSplitBar1->AddObjectRB( GetDlgItem(IDC_SPLITBAR2)->GetControlUnknown() ); spSplitBar1->AddObjectRB( (long)::GetDlgItem( m_hWnd, IDC_BUTTON3 ) );