[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 467
  • Last Modified:

Tab control within a splitter pane

I have created a dialog based app that uses a frame window to display a list and a tree control (using a splitter window). I need to modify the tree control pane (a CTreeView) so that it displays a set of tabs at the bottom, allowing the user to toggle between the tree and a list control. Do I create a CTabCtrl derived class and add the tree, or place the tree and tab controls inside a CCtrlView?
0
JamieR
Asked:
JamieR
  • 2
  • 2
1 Solution
 
gelbertCommented:
You can use CFormView instead of CTreeView in splitter window pane. Then you have to place on the dialog template Tab control and Tree control(s).You can place as many as you want CTreeCtrls then show/hide them when user swith tabs.
0
 
JamieRAuthor Commented:
Sorry, I may not have been descriptive enough....

I need to keep the (dynamic) splitter pane to separate the treeview from the listview. It is purely the treeview pane that I wish to use to display different types of information, based on the tab selection.

Essentially, what I need is something very similar to the Workspace window in DevStudio (except without the dockability).


0
 
gelbertCommented:
May be I just do not understand exactly what you want. But it sounds to me that you want window with splitter bar and listview in one pane and tree view in the other pane plus tabs at the bottom of treeview pane. Fine. My suggestion gives you exactly what you want. There only trade of is that you always have to make sure that window of CTreeCtrl is has width of pane window and height of pane window minus size of tabs.
0
 
JamieRAuthor Commented:
Of couse! Thanks, Gelbert.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now