Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Can you hide forms on TabbedWorkspace
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can you hide forms on TabbedWorkspace

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

Joined: 10 January 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote kdube Quote  Post ReplyReply Direct Link To This Post Topic: Can you hide forms on TabbedWorkspace
    Posted: 10 January 2008 at 11:53am
Hi, I am working with the Shortcut Bar and Command Bar on an MDI Application.  I am using the CommandBar to show a tabbed MDI interface
 
(using)
 
Set Workspace = Me.CommandBars1.ShowTabWorkspace(True)
 
 
this works OK however because I have a couple of forms on my shortcut bar (that are used for navigation), the tabbed workspace shows these forms as on its tabbed pane. 
 
I want to not show these forms as tabs on the workspace... is this possible?
 
Thanks in Advance
 
Kevin Dube
Back to Top
hades View Drop Down
Newbie
Newbie


Joined: 04 January 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote hades Quote  Post ReplyReply Direct Link To This Post Posted: 13 January 2008 at 11:02pm

don't make it an mdi child...you should also set the Z order. if you still want it as a mdi child, try setting it from where you call it(manually using code).

Back to Top
kdube View Drop Down
Newbie
Newbie
Avatar

Joined: 10 January 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote kdube Quote  Post ReplyReply Direct Link To This Post Posted: 16 January 2008 at 9:28am
Actually I didn't quite tell you the correct situation... the forms that are showing up that I do not want to show up are actually just minimized icons (but are still mdi child windows) on my mdi application.   So I think I have to keep them as MDI children.. but the question still remains is there a way to not show them in the tabbed folders...
Back to Top
kdube View Drop Down
Newbie
Newbie
Avatar

Joined: 10 January 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote kdube Quote  Post ReplyReply Direct Link To This Post Posted: 21 January 2008 at 11:57am
here is the answer from technical support:
 
You can use TabControlItem.Visible propery to hide tab.

call it after you add form or in Workspace_NewItem event:

to hide after you show form

  frmD.Show
  Workspace.Refresh
  Workspace.FindItem(frmD.hwnd).Visible = False


to hide in event:
Private Sub Workspace_NewItem(ByVal Item As XtremeCommandBars.ITabControlItem)
  Item.Visible = False
End Sub  
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.125 seconds.