Print Page | Close Window

Creating MDI forms stacked on top of...

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1787
Printed Date: 18 November 2024 at 1:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Creating MDI forms stacked on top of...
Posted By: oyalhi
Subject: Creating MDI forms stacked on top of...
Date Posted: 16 February 2005 at 6:23am

I created and MDI form with

  Set m_Workspace = CommandBars.ShowTabWorkspace(True)
  m_Workspace.EnableGroups

I have 9 windows, when the application runs, I can drag the title bar and move 1 window to bottom of another MDI window.  It looks like (the second window that has been dragged to bottom) it has been docked under the other forms.  I do this for the other windows and it works great.  I have 5 windows on top with clickable titles and 4 windows on the bottom of them agained tabbed and with clickable windows.

My question is this: How can I do this programatically?

Thanks and regards,




Replies:
Posted By: SuperMario
Date Posted: 16 February 2005 at 10:28am
I'm not sure exactly what you are asking without seeing a picture.  Maybe you are looking for the DoWorkspaceCommand method.


Posted By: oyalhi
Date Posted: 16 February 2005 at 1:55pm

SuperMario,

I want to create a "New Horizontal Tab Group" to the bottom half of the window, and the other windows to attach to that window: "Move to Next Tab Group" programatically.

It is difficult to explain without a picture; however I'll give it another shot.

Let's say you have an MDI form and child windows.  Application starts with no windows.  I create one child window and it covers the whole client area and the title is tabbed.  Now I create another window, this window also covers the whole client area.  I can switch between windows by clicking to their tabs.

Now I click one of the forms title tab, and drag it to the lower half of the main window and release the button.  I can now see both windows, one is on the top half with its title tab visible and the other on the bottom half and the title tab is visible.

Please let me know if I was succesfull at explaining it.

Regards, Omer



Posted By: SuperMario
Date Posted: 16 February 2005 at 2:25pm
Try This:
    LoadNewDoc
    CommandBars.TabWorkspace.DoWorkspaceCommand XTP_ID_WORKSAPCE_NEWHORIZONTAL

Note that The DoWorkspaceCommand will automatically load a new MDI Child.


Posted By: oyalhi
Date Posted: 16 February 2005 at 4:15pm

After loading an MDI child DoWorkspaceCommand works beatifully.  My problem is solved.  However, I do not understand what you mean by:

Note that The DoWorkspaceCommand will automatically load a new MDI Child.

I have to load the MDI child before and then the command.  Otherwise it would not know which child to load, right?




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net