Print Page | Close Window

TabWorkspace - Hide Tabs

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=1920
Printed Date: 02 July 2024 at 6:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TabWorkspace - Hide Tabs
Posted By: ianp
Subject: TabWorkspace - Hide Tabs
Date Posted: 06 March 2005 at 11:40am
Is it possible to hide the tab workspace tabs when only one mdi child exists???



Replies:
Posted By: SuperMario
Date Posted: 07 March 2005 at 10:23am
You can try adding something like this to the MDIChild form:

Private Sub Form_Load()
       
    Top = -200
    Left = -200
    Width = 31000
    Height = 31000
    Form_Resize
   
    fMainForm.DocumentCount = fMainForm.DocumentCount + 1
    ShowTabWorkspace
End Sub

Private Sub Form_Unload(Cancel As Integer)
    fMainForm.DocumentCount = fMainForm.DocumentCount - 1
    ShowTabWorkspace
End Sub

Private Sub ShowTabWorkspace()
    If fMainForm.DocumentCount = 1 Then
        fMainForm.CommandBars.ShowTabWorkspace (False)
    Else
       fMainForm.CommandBars.ShowTabWorkspace (True)
    End If
End Sub

Then add this to the MDI Form:

Public DocumentCount As Long

DocumentCount = 0



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