Environment VB6
This is a simple User-Control for easily creating a "splitter-window-like" outfit with any two controls on your VB-form.
Steps to generate this:
- Place the ctlSplitterEx on your form an size it.
- Place two other control on your form which you want to be splitted. The size & position on these controls doesn't matter. They will be resized and placed at runtime so they will hide the cltSplitterEx at runtime nearly completely.
- Attach the two controls to the ctlSplitterEx by invoking ctlSplitterEx.AttachObject
- Define the TileMode to horizontally/vertically by setting ctlSplitterEx.TileMode - Property. [default: horizontally]
- Define the position of the tilebar by setting the ctlSplitterEx.TilePercenze - Property. [default: 30%]
Example to generate a splitter window with a textbox on the right an a button on the left:
'
'
private Sub Form_Load()
me.ctlSplitterEx1.AttachObjects me.Text1, me.Command1, true
me.ctlSplitterEx1.TileMode = TILE_VERTICALLY
End Sub
'
'
If you enjoy this control send me an email.
Download zipped source and demo project (3k)
Comments
Splitter Control
Posted by ncampbell on 07/31/2008 10:16amI have an application that was designed by a former employee and I'm only now making changes to it. Randomly (but more often than not) I get an error "Method 'AttachObjects' of object '_ctlSplitterEx' failed" I have googled this error to death and stepped through the program and have found that when I get to the sub procedure "FindOwnInstance" For i = 0 To UserControl.ParentControls.Count - 1 If TypeOf UserControl.ParentControls.Item(i) Is ctlSplitterEx Then <------------------ this is where it errors out! If UserControl.ParentControls.Item(i).hwnd = Myhwnd Then Set m_oMe = UserControl.ParentControls.Item(i) Exit For End If End If Next ------------------------------------------------------ This application has been programmed in VB 6.0 and I'm totally at a loss! Can you help?
Reply3 panel split
Posted by mocolt on 12/01/2004 01:31amHow do I make this into 3 panel split? 1 panel on the left and 2 on the left (1 on top of each other). Can someone help me?
ReplyExcellent
Posted by Legacy on 10/19/2003 12:00amOriginally posted by: Brian G
Works perfectly, top notch stuff, thank you very much!
Reply
Good Work, but is there a way...
Posted by Legacy on 10/17/2003 12:00amOriginally posted by: Peter C
ReplyJust great!
Posted by Legacy on 09/16/2003 12:00amOriginally posted by: Roger Paini
This is great code! Very useful!
Reply
Control Splitter
Posted by Legacy on 09/13/2003 12:00amOriginally posted by: Ramniwas Yadav
I find it very useful for my Project.
Thnaks for thi stype of Help
ReplyHow do I do this ...
Posted by Legacy on 09/10/2003 12:00amOriginally posted by: eamonn
ReplySplitter Position
Posted by Legacy on 07/08/2003 12:00amOriginally posted by: Peter Maslin
hi there
Great controll , but how do you get/set the splitter position , i cant find anything in the controll to allow me to set where the splitter bar is.
Peter
ReplyI Have a little problem whit yor control
Posted by Legacy on 11/08/2002 12:00amOriginally posted by: Rupelstinsky
i've already used yor control in several forms but now I'm trying it with a form who has other 30 controls and shows an error on the memory
Do you know smth about it?
Thanks in advanced
ReplyIt's what I was looking for.
Posted by Legacy on 03/14/2002 12:00amOriginally posted by: �lvaro
Hi,
Actually, your control is very good and it actually fits the specs I have for my forms.
Thanks!
Reply
Loading, Please Wait ...