KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

SplitContainer

 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Tue Mar 22, 2005 2:57 pm    Post subject: SplitContainer Reply with quote

Shawn

I am thinking about using the SplitContainer object since it appears to handle listviews better that just trying to use the splitter object. I am curious if you could tell which properties/methods you have included.

Also, is this object still in a great deal of flux or have you pretty much finished it? I don't want to put something into production that you know you are going to be changing property names.

On a side note, when do you think you will be updating the help file? There seems to be a lot of new things that are not in the current one.

Thanks again for such a great tool!

_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Mar 22, 2005 4:33 pm    Post subject: Reply with quote

I am going to update the CHM file when Build 46 is out of Beta. What is in much flux right now is the GridView - until the props and methods are nailed-down, i dont want to document anything on it. I can't release the CHM because there IS GridView stuff in there (that may change).

In terms of the SplitContainer - the props and methods are rock-solid because they are a straight port from dotnet, let me put together something quickly and post to this space. Stay tuned.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Mar 22, 2005 4:59 pm    Post subject: Reply with quote

Ok, here is the skinny on SplitContainer ...

A SplitContainer is a control comprised of two Panels seperated by a splitter. The panels are already "pre-created" for you. Microsoft has named them Panel1 and Panel2 (which I think is bad name, but non-the-less). You can "access" these panels using the Panel1 and Panel2 properties.

There are a couple of other properties as well ...

The Orientation property gets or sets whether the splitter is horiztonal or vertical. A vertical splitter implies that one panel is on the left (Panel1) and the other panel is on the right (Panel2). A horizontal implies that one panel is on top (Panel1) and the other is on the bottom (Panel2).

SplitterDistance sets the distance (in pixels) of the splitter itself, from the left (for vertical splitters) and from the top (for horizontal splitters).

More than one SplitContainer control can also be nested, with the second SplitContainer control oriented horizontally, to create top and bottom panels.

Controls are created as children of the Panels, and can be positioned and docked like any other control in a container.

Here is a quick example showing nested splitters, split vertically (the default) and horizontally - they are color-coded for your viewing enjoyment ;0)

Code:

Break On

$System = CreateObject("Kixtart.System")

$Form = $System.Form()
$Form.Size = 640, 480

$MainSplitter = $Form.SplitContainer()
$MainSplitter.Dock = "Fill"
$MainSplitter.SplitterDistance = 0.25 * $MainSplitter.ClientWidth

$MainSplitter.Panel1.BackColor = "Red"
$MainSplitter.Panel2.BackColor = "Blue"

$RightSplitter = $MainSplitter.Panel2.SplitContainer()
$RightSplitter.Dock = "Fill"
$RightSplitter.Orientation = 0 ; 0=Horizontal 1=Vertical

$RightSplitter.Panel1.BackColor = "Green"

$Form.Center
$Form.Show
While $Form.Visible()
 $=Execute($Form.DoEvents)
Loop

Exit 0
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Mar 22, 2005 5:04 pm    Post subject: Reply with quote

One cool feature of SplitContainer is that the Splitter has "proportional resizing", that is to say - as you resize the form, the splitter moves proportionally and resizes to fit the form (the splitter moves). Provides for a much more professional look (imho).
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Tue Mar 22, 2005 5:19 pm    Post subject: Reply with quote

mucho appreciated, that thing, need to test it somewhen.

Note to myself: try to get more time for fun stuff Mad

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Tue Mar 22, 2005 5:53 pm    Post subject: Reply with quote

Thanks! I am sure I will have a question or two, but that will definately get me started.
_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Tue Mar 22, 2005 5:59 pm    Post subject: Reply with quote

I am going to show my ignorance.

Is the Splitter object supposed to really only be used on a Panel objecet?

_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Tue Mar 22, 2005 6:31 pm    Post subject: Reply with quote

*Warning: Uninformed statement

I believe Shawn is saying that the SplitContainer has two Panels you create controls in. The SplitContainer control itself can be looked at as a single control just like a textbox or listview. It can be created pretty much anywhere on a form (I believe).

Panel1 is the area to the top/right of the splitter, and Panel2 is the area to the bottom/left of the splitter. These panels are not related to the Panel control that Kixforms has.

_________________
-Ben
Back to top
View user's profile Send private message
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Tue Mar 22, 2005 6:39 pm    Post subject: Reply with quote

Bonji

I know. Thanks.

I guess I should have said "On a side note..."

_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Tue Mar 22, 2005 6:41 pm    Post subject: Reply with quote

Hmm...I'm thinking I misunderstood something.

Oh well, wouldn't be the first time!

_________________
-Ben
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Mar 22, 2005 7:02 pm    Post subject: Reply with quote

Is there still a question out there ?

Bonji is spot-on with the description. The SplitContainer is whats called - a compound control, made up of three seperate controls, but viewed as a single control. The only other control like it, is the ComboBox, which is made up of a TextBox and a ListBox.

The only thing not spot-on is that SplitContainer Panels are true Panels - just like the regular stand-alone Panel - they are Panels - and they respond to the same set of messages.

In terms of the old Splitter objects, they should work with any control, not just Panels. But there were issues with them. Stand-alone Splitter objects are kinda goofy (i think), they were tough to understand and use (even when using dotnet Visual Studio. This is the big reason why Microsoft came out with SplitContainer - to depracate those goofy splitter objects - which is exactly what they have done (and documented) ... I want to see Splitter objects disappear too. I am certainly not going to pursue enhancing of fixing them with too much zeal ;0)

-Shawn
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Tue Mar 22, 2005 7:18 pm    Post subject: Reply with quote

That's good to know about the panels.

I'll be looking to remove splitter controls from my script and replacing them with the new and improved splitcontainer.

Thanks again Shawn!

_________________
-Ben
Back to top
View user's profile Send private message
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Tue Mar 22, 2005 7:43 pm    Post subject: Reply with quote

Shawn

You answered the question. I think I am done.

Thanks

_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Tue Mar 22, 2005 10:07 pm    Post subject: Reply with quote

ja, get rid of the splitters soon bud Dizzy
_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Mar 22, 2005 10:46 pm    Post subject: Reply with quote

Splitters ? What are Splitters ? Don't recall Kixforms hav'n Splitters ;0)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group