Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Creating MDI forms stacked on top of...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Creating MDI forms stacked on top of...

 Post Reply Post Reply
Author
Message
oyalhi View Drop Down
Newbie
Newbie
Avatar

Joined: 27 January 2005
Location: Turkey
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote oyalhi Quote  Post ReplyReply Direct Link To This Post Topic: Creating MDI forms stacked on top of...
    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,

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
oyalhi View Drop Down
Newbie
Newbie
Avatar

Joined: 27 January 2005
Location: Turkey
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote oyalhi Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
oyalhi View Drop Down
Newbie
Newbie
Avatar

Joined: 27 January 2005
Location: Turkey
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote oyalhi Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.