Print Page | Close Window

Can you hide forms on TabbedWorkspace

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=9277
Printed Date: 08 October 2024 at 10:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Can you hide forms on TabbedWorkspace
Posted By: kdube
Subject: Can you hide forms on TabbedWorkspace
Date 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



Replies:
Posted By: hades
Date 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).



Posted By: kdube
Date 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...


Posted By: kdube
Date 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  



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