How do I create a pane with multiple documents ? |
Post Reply |
Author | |
elmue
Groupie Joined: 05 June 2010 Location: Germany Status: Offline Points: 24 |
Post Options
Thanks(0)
Posted: 28 June 2010 at 2:04pm |
Hello
Is there a way to create something like on this image ? I want a dockable pane that contains a tab control with multiple documents in it. I want one pane which contains all Html documents, another pane that contains all Css files, etc... I didn't find a sample that shows how to do this. Is this possible ? How ? Thanks Elmü |
|
Carlos Rocha
Groupie Joined: 11 February 2008 Location: Portugal Status: Offline Points: 92 |
Post Options
Thanks(0)
|
In SuitePro (ActiveX) I use method AttachTo() to create tabbed panes:
oPane2:AttachTo(oPane1) oPane3:AttachTo(oPane1) |
|
SuitePro 20.3.0
OS: Windows 10 Language: Visual Objects 2.8 |
|
elmue
Groupie Joined: 05 June 2010 Location: Germany Status: Offline Points: 24 |
Post Options
Thanks(0)
|
You did not understand my question.
|
|
Carlos Rocha
Groupie Joined: 11 February 2008 Location: Portugal Status: Offline Points: 92 |
Post Options
Thanks(0)
|
I think I did
Create HtmlTabControl for html documents, ImagesTabControl for images, and CssTabControl for css files. Put each TabControl in the corresponding Pane, like PaneHtml, PaneImages as PaneCss. Then attach PaneImages and PaneCss to PaneHtml to get the tabbed interface for the panes PaneImages:AttachTo(PaneHtml) PaneCss:AttachTo(PaneHtml) You'll get an user interface like in the image. |
|
SuitePro 20.3.0
OS: Windows 10 Language: Visual Objects 2.8 |
|
elmue
Groupie Joined: 05 June 2010 Location: Germany Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Attaching the 3 panes together is easy.
This is not the topic of my posting. But how do I get multiple HTML Views into one Pane with a Tab control above? And how do I get multiple CSS Views into one Pane with a Tab control above? Your abtract theories are not very helpfull without any further details or code. Did you ever program that ? Try to put your theories into code and you will notice that it is not as easy as you think! Another problem is that the docking pane manager reserves a space for the MDI childs. But in this case I don't have any MDI child at all! All the space is filled with panes! |
|
Carlos Rocha
Groupie Joined: 11 February 2008 Location: Portugal Status: Offline Points: 92 |
Post Options
Thanks(0)
|
So, what you want is to create the TabControls inside the panes?
All my UI is made with tab controls inside Panes, but I use the ActiveX version, and my program language is Visual Objects, not VB. My code would not be very useful. What I do is something like this (not real code): oDock := XtremeDockingPane{} oDock:HideClient := true oPaneHtml := oDock:CreatePane(1, 100, 100, DockTopOf, nil) oPaneCss := oDock:CreatePane(2, 100, 100, DockTopOf, nil) oPaneCss:AttachTo(oPaneHtml) oTabHtml := XtremeTabControl{} oTabHtml:AutoResizeClient := true oTabHtml:InsertItem(0, "Html 1", oChildHtml1, 0) oTabHtml:InsertItem(1, "Html 2", oChildHtml2, 0) oPaneHtml:SetHandle(oTabHtml:hWnd) oTabCss := XtremeTabControl{} oTabCss:AutoResizeClient := true oTabCss:InsertItem(0, "Css 1", oChildCss1, 0) oTabCss:InsertItem(1, "Css 2", oChildCss2, 0) oPaneCss:SetHandle(oTabCss:hWnd) oChildHtml1, oChildHtml2, oChildCss1 and oChildCss2 are the documents you want to show. |
|
SuitePro 20.3.0
OS: Windows 10 Language: Visual Objects 2.8 |
|
younicke
Senior Member Joined: 11 March 2005 Status: Offline Points: 107 |
Post Options
Thanks(0)
|
those tab controls are actually mdi child forms...
just use mdi form and commandbars and then use the showtabworkspace for commandbars |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
You need CXTPTabClientWnd for the upper tabs. The lower tabs are indeed docking-tabs!
|
|
PokerMemento - http://www.pokermemento.com/
|
|
elmue
Groupie Joined: 05 June 2010 Location: Germany Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Hello
znakeeye: > You need CXTPTabClientWnd for the upper tabs Yes I know that. But do you think that you simply put a CXTPTabClientWnd into a pane and that's it ? No this will not work. It's much more complicated! Carlos Rocha: > What I do is something like this (not real code): Thanks for your code. I suppose that XtremeTabControl corresponds to CXTPTabControl in MFC. But your code did not help me because there is a CDocument and a CView that I must put into the Tab Control. In your code these details don't exist, which make life hard. So none of your answers here helped me. I invested a lot of hours and now it works. I published my code here: http://forum.codejock.com/forum_posts.asp?TID=16939&PID=59284#59284 Hope it helps someone. Elmü |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |