Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

With this code I get one treeview to the left, one splitter in the middle and a listview on the right. But how can I put another splitter (but this horizontal) to the right dividing the list view into for example two listviews???

 

thanks

 

// Create TreeView, ListView, and Splitter controls.

TreeView* treeView1 = new TreeView();

ListView* listView1 = new ListView();

Splitter* splitter1 = new Splitter();

 

// Set the TreeView control to dock to the left side of the form.

treeView1->Dock = DockStyle::Left;

// Set the Splitter to dock to the left side of the TreeView control.

splitter1->Dock = DockStyle::Left;

// Set the minimum size the ListView control can be sized to.

splitter1->MinExtra = 100;

// Set the minimum size the TreeView control can be sized to.

splitter1->MinSize = 100;

// Set the ListView control to fill the remaining space on the form.

listView1->Dock = DockStyle::Fill;

 

 

Control* temp0 [] = {listView1, splitter1, treeView1};

 

this->Controls->Contains(temp0);

Posted

Yes, I have done what I wanted to do... but now I see where is the problem...

cannot do two horizontal divisions which are divided with a vertical one.

Because I make a veritcal then a horizontal to the right but then I cannot come back to the left to make another division.

 

Anyone knows?

 

tahnks

Posted

I want to do this:

 

Is it necessary to use CSplitterWnd???? Has it got to be static or dynamic?!??!?

 

Have you got any example for it in c++ .net?????

 

Please help !! :(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...