|
|
|
|
How
it works
SplitBar XT positions and resizes controls by
memorizing the initial look of your form when it loads.
Then
after each resize or splitter move, SplitBar XT will reposition and resize all the controls
based
on anchoring rules you set for each control. Of course all this is
done without code!
To anchor
a control, you just enter a letter in its tag field corresponding
to the top, bottom, left or right border. Each control can be
anchored to the split bar or to the borders of the SplitBar
XT container. This way, all the imaginable situations can be handled in a
minute by combining multiple anchors. The
hard work is done by SplitBar XT saving you days of coding!
|
| |
| |
 |
 |
|
|
|
|
 |
|
Over 10
properties are included to set horizontal or vertical split, split width,
minimum pane size, snap to edge, splitter picture, and more...
Events are
raised after moving the split bar or resizing it.
Details on properties and events can be found in the
help file available for download. |
|
 |
 |
 |
 |
|
|
Example:
Place a SplitBar XT on your form. Then place 2 text boxes, 1
combo and 2 command buttons on it: refer to the picture below
|
|

|
|
|

|
|
|
|
|
|
|
|
|
|
|
In the tag property of each text box and button enter the following
letters: (lower case anchor to the split bar and upper case anchor to
the borders of the SplitBar XT control)
| Name |
Tag |
Effect |
| Combo1 |
r |
width
resizes with split bar |
| Text1 |
rH |
width
resizes with split bar and Height resizes with borders |
| Text2 |
mWH |
position
moves horizontally with split bar, width and height resizes with
borders |
| Command1 |
mYW |
position
moves horizontally with split bar, vertically with borders and
width resizes with split bar |
| Command2 |
XY |
position
moves horizontally and vertically with borders |
|
|
|
|
|
|
|
|
|
Paste the following lines in the form resize event:
(This is optional)
Private Sub Form_Resize()
SplitBar1.Height = Me.Height
SplitBar1.Width = Me.Width
End Sub
That's it,
you're done, in less than 2 minutes the result looks like this |
|
|
|
|
|
|
|
|
|
|
Notice how
command1 moves and resizes, command2 moves without resizing but Combo1 resizes without moving.
Text1 and Text2 resizes vertically and horizontally!
Every possible situation can be achieved by combining letters
in the Tag property. You can even nest several SplitBar XT in each
others.
|
|
|