ExSplitBar Frequently Asked Questions
ExSplitBar FAQ | Exontrol Docs
1:
The control's release notes can be found on our web site, looking for the Release Notes column in the control's main page. Click here for direct link.
2:
The ExSplitBar control provides automatic resizing and repositioning of controls and windows within a form, dialog, or window. When the Mode property is set to exSplitBarHorz, the control resizes the controls located above or below it, while exSplitBarVert resizes the controls located to its left or right. Unlike other components of the same type, the ExSplitBar control works across a wide range of programming environments, including Microsoft Office (Microsoft Access, Microsoft Excel, and Microsoft Word), Visual Basic, Visual FoxPro, .NET Framework, Delphi, C++, C++ Builder, dBASE Plus, and more.

In short, the ExSplitBar component splits a form, dialog, or window into two sections: left/top and right/bottom. To use the control, you only need to specify which objects, controls, or windows belong to each side of the split bar. The control automatically resizes and repositions these objects as the user drags the split bar to a new position.

Here's the steps you need to follow in order to use the ExSplitBar control:

  • Insert the ExSplitBar library/reference to your project ( follow the "inserting the component to a form/dialog" here )
  • Place ExSplitBar control to your form/dialog/window
  • Specify the objects in the left/top and right/bottom parts of the split bar, using the ObjectsLT / ObjectsRB or AddObjectLT / AddObjectRB available at runtime.

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

  • C# for /NET Assembly
  • Microsoft Office ( Access, Excel, Word )
  • Visual Basic 6
  • Visual Basic for /NET Assembly
  • Visual FoxPro

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

  • C++ Builder
  • C# for /COM on /NET Framework
  • Delphi
  • dBASE Plus
  • Visual Basic for /COM on /NET Framework
  • Visual C++

The following C++ Builder sample shows how to add the objects to the split bar, using the AddObjectLT and AddObjectRB methods:

SplitBar1->AddObjectLT(TVariant(Button1->Handle));
SplitBar1->AddObjectRB(TVariant(Button2->Handle));
SplitBar1->AddObjectRB(TVariant(SplitBar2->DefaultInterface));
SplitBar1->AddObjectRB(TVariant(Button3->Handle));

The following C# sample shows how to add the objects to the split bar, using the AddObjectLT and AddObjectRB methods (/COM on /NET Framework):

axSplitBar1.AddObjectLT(button1);
axSplitBar1.AddObjectRB(button2);
axSplitBar1.AddObjectRB(axSplitBar2);
axSplitBar1.AddObjectRB(button3);

The following Delphi sample shows how to add the objects to the split bar, using the AddObjectLT and AddObjectRB methods:

with SplitBar1 do
begin
	AddObjectLT(Button1.Handle);
	AddObjectRB(Button2.Handle);
	AddObjectRB(SplitBar2.DefaultInterface);
	AddObjectRB(Button3.Handle);
end

The following dBASE Plus sample shows how to add the objects to the split bar, using the AddObjectLT and AddObjectRB methods:

this.EXSPLITBARACTIVEXCONTROL1.nativeobject.AddObjectLT(this.PUSHBUTTON1.hwnd)
this.EXSPLITBARACTIVEXCONTROL1.nativeobject.AddObjectRB(this.PUSHBUTTON2.hwnd)
this.EXSPLITBARACTIVEXCONTROL1.nativeobject.AddObjectRB(this.EXSPLITBARACTIVEXCONTROL2.nativeobject.hwnd)
this.EXSPLITBARACTIVEXCONTROL1.nativeobject.AddObjectRB(this.PUSHBUTTON3.hwnd)

Note: If the object you want to add to one side of the split bar does not provide an hwnd property, or its hwnd property returns 0, place the object inside a container and use the container's hwnd property with the AddObjectLT or AddObjectRB methods.

The following VB.NET sample shows how to add the objects to the split bar, using the AddObjectLT and AddObjectRB methods (/COM on /NET Framework):

With AxSplitBar1
	.AddObjectLT(Button1)
	.AddObjectRB(Button2)
	.AddObjectRB(AxSplitBar2)
	.AddObjectRB(Button3)
End With

The following Visual C++ sample shows how to add the objects to the split bar, using the AddObjectLT and AddObjectRB methods:

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 ) );
3:
The watermark/logo is displayed when the control is not properly licensed. To remove the watermark/logo, you need to ensure that your application is correctly licensed. The steps to do this depend on whether you are using the /COM version or the /NET version of the control.

In case you are using the:

  • /COM version, just install and use the registered setup ( the one that asks for a development license key ) on your development machine.
  • /NET version, you need to specify the runtime license key as explained in the redist.txt file.

When you purchased the component you have received your runtime license key. Your application must call the RuntimeKey property of the component before calling any other property of the control

The following VB.NET sample shows how to set the RuntimeKey property:

Public Class Form1
	Public Sub New()
		exontrol.EXSPLITBARLib.exsplitbar.RuntimeKey = "your runtime license key"

		InitializeComponent()
	End Sub
End Class

The following C# sample shows how to set the RuntimeKey property:

public Form1()
{
    exontrol.EXSPLITBARLib.exsplitbar.RuntimeKey = "your runtime license key";

    InitializeComponent();
}
4:
Yes, this is possible. Just as the split bar can move instead of resize when dragged, the same behavior can be applied to objects specified in the ObjectsLT and ObjectsRB properties. To make an object move rather than resize, add the same object to both the ObjectsLT and ObjectsRB properties. Similarly, if you use the AddObjectLT method, you must also add the same object using the AddObjectRB method. This way, the split bar recognizes that the common object must be moved rather than resized.

For instance, let's say we have the following ObjectsLT and ObjectsRB properties:

  • ObjectsLT is "Command1,Command2"
  • ObjectsRB is "Command1, Command3,Command4"

indicates that the Command1 object is an object to be moved, when the split bar is moved, else any other object is resized/relocated according to the movement of the split bar.

5:
The ExSplitBar control is designed to be compatible with a wide range of programming environments, making it versatile for developers working in different platforms. So far, we have successfully tested the control in the following environments:
  • C# for /NET Assembly
  • C# for /COM on /NET Framework
  • C++ Builder
  • Delphi
  • dBASE Plus
  • Microsoft Office ( Access, Excel, Word )
  • Visual Basic 6
  • Visual Basic for /NET Assembly
  • Visual Basic for /COM on /NET Framework
  • Visual C++
  • Visual FoxPro

If you are using a different environment, you can obtain a registered copy of the control free of charge by providing three samples:

  • Simple
  • Move
  • Appearance

and steps required for the control to make it work on your environment.

Once you have these, please contact us, and we will be happy to add your environment to the list, and you will receive the registration copy of the component.

Please check: How can I use the split bar?

How-To Questions
FAQ