Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - TabWorkspace - Hide Tabs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TabWorkspace - Hide Tabs

 Post Reply Post Reply
Author
Message
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Topic: TabWorkspace - Hide Tabs
    Posted: 06 March 2005 at 11:40am
Is it possible to hide the tab workspace tabs when only one mdi child exists???
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: 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
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.156 seconds.