splitter,control,with,panes,found,initial,cod
Quick Search for:  in language:    
splitter,control,with,panes,found,initial,cod
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
RentACoder Stats

 Code:  lines
 Jobs: 0 postings

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for RentACoder.
Wrapping Scrolling Text
By Paranoid_Androi d on 7/2


Create A Dummy File
By AML on 7/2


Click here to see a screenshot of this code!Captionbar manipulation!
By Peter Hebels on 7/2

(Screen Shot)

A Game Of War
By Co0nest on 7/2


Click here to see a screenshot of this code!KeyGen Example
By Bengie|NET on 7/2

(Screen Shot)

Click here to see a screenshot of this code!OpenBrowser v1.9
By Orlando Jerez on 7/2

(Screen Shot)

SendMessageBySt ring() Example
By Jaime Muscatelli on 7/2


Click here to see a screenshot of this code!FirstSunday
By Jan Paul Penning on 7/2

(Screen Shot)

Click here to see a screenshot of this code!Ikonz v1.0
By Gaurav Creations on 7/2

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

A Splitter Control

Print
Email
 
winzip icon
Submitted on: 2/3/2000
By: Mark Joyal 
Level: Intermediate
User Rating: By 39 Users
Compatibility:

Users have accessed this code 12087 times.
 
 
     This is a splitter control with 2 panes. I found the initial code out on the web somewhere, but it had a few bugs and was missing a few features I wanted, so I added the ability to colorize the splitter bar and the code now fires an event when the splitter is resized to allow for controls within controls to handle a resize. I also cleaned up the code and fixed a few bugs. BTW : You can add splitters within splitters to create more than just 2 panes.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for langauges that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 2 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
2/3/2000 11:27:58 AM:Carl Pinto
this is great I was looking for 
something to do this!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/15/2000 7:07:39 AM:cris
How can i use it to split a form and 
make 2 controls, listview and textbox, 
resize height in the way windows 
explorer does, but in the other 
direction?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/14/2000 9:28:22 AM:Eric Tomlinson
Can you give some idea on how to set it 
up for use?  I'm a novice and can't get 
it to split correctly.  Tried inserting 
controls into it etc.  HELP!!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/15/2000 9:37:54 AM:Phace
No documentation.  How do you use it?  
I see two child objects, how do they 
work.  This would be a nice piece if 
there was even some small 
documentation.  I mean there's not even 
a sample application using this control!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/25/2000 4:47:13 AM:john
Definitely needs some documentation. A 
quick and dirty sample app with some 
comments on usage would be sufficient.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/4/2000 3:39:26 PM:Elco
jeah I can't get this thing to work.. 
some comments in the source that's all 
no docs whatsoever :(
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/4/2000 4:31:03 PM:author
dear god people, this isnt brain 
science.  it doesnt get too much easier 
than this.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/4/2000 4:32:00 PM:Mark Joyal
okay, my reply got truncated so 
try#2
1) drop splitter control on 
form
2) drop controls to split onto 
splitter container
3) set 
splitter.child1 = 
control_to_split_1
4) set 
splitter.child2 = 
control_to_split_2
5) run
jeez, it 
doesnt get much easier unless you want 
to pay big money to sheridan software.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/14/2000 10:26:53 AM:Rich
Is there anyway to make a child2 a Form?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/16/2000 4:07:18 AM:yvikram

  this is a great stuff. but i need 
to know how fixed length columns can be 
imported as such in ms excell or in dts 
wizard in MS-Sql...ie., splitting the 
columns
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/29/2001 1:08:23 PM:Dave
Brilliant!  5 stars.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/10/2001 1:58:48 PM:kcain
I am having trouble resizing the 
control in the my forms resize sub, if 
there are any splitter1.width = ? or 
.height changes it doesnt work, the 
form tries to resize but wont work
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/4/2001 3:18:45 AM:Joo-Haeng Lee (aka Lixter)
Combination of vertical and horizontal 
bars (3 areas) works so easily. 
*****
Option Explicit
Private Sub 
Form_Load()
    Splitter1.Orientation 
= splitVertical
Splitter1.SplitPercent = 50
    Set 
Splitter1.Child1 = TreeView1
    Set 
Splitter1.Child2 = Splitter2
Splitter2.Orientation = 
splitHorizontal
    Set 
Splitter2.Child1 = ListView1
    Set 
Splitter2.Child2 = Text1
End 
Sub
Private Sub 
Form_Resize()
Me.Splitter1.Height = 
Me.ScaleHeight - 2 * 
Me.Splitter1.Top
Me.Splitter1.Width = 
Me.ScaleWidth
End Sub
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/17/2002 7:29:27 AM:Dan F
Excellent piece of code. 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/25/2002 4:13:50 PM:Andrew Saturn
kcain: divide the width and height by 
15, then go from there :]
it seems 
the control forces TWIP 
maybe?...
heres what I used (but I 
have a weird form)
Splitter1.Width = 
(Me.Width / 15) - (Splitter1.Left + 
8)
Splitter1.Height = (Me.Height / 15) 
- (Splitter1.Top + 8)
sorry of 
this reply is wayyy too late
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | RentACoder Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.