Print Page | Close Window

Can I hide a tab in the workspace?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=18530
Printed Date: 30 January 2025 at 6:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Can I hide a tab in the workspace?
Posted By: RedFin
Subject: Can I hide a tab in the workspace?
Date Posted: 10 June 2011 at 3:23am

Hi,

I have created this form -

The treeview on the left is in the first pane. When an item in the treeview is clicked, a new pane is created and attached, and a control is dynamically loaded into the new pane -

'Increment counter
      mlQueryCount = mlQueryCount + 1

'Create new pane and attach it
      Set pneLast = DockingPane1.Panes(DockingPane1.PanesCount)
      Set pneNew = DockingPane1.CreatePane(mlQueryCount, Me.ScaleWidth, Me.ScaleHeight,            DockRightOf, pneLast)
      DockingPane1.AttachPane pneNew, pneLast

'after the first one, we need to instantiate a new control
      If mlQueryCount > 1 Then Load ucQuery(mlQueryCount)

'make the query control visible
      ucQuery(mlQueryCount).Visible = True

'attach the query to the new docking pane
      pneNew.Title = Node.Text
      pneNew.SetHandle ucQuery(mlQueryCount).hwnd

It all works fine except for the blank tab at the left hand end.  I am assuming this tab is there for the first pane (ie. the treeview).  Does anyone have an idea of how I can make the tab invisible (without making the treeview invisible of course)....or, should I be approaching this differently.


Thanks,

Rohan





Replies:
Posted By: RedFin
Date Posted: 11 June 2011 at 11:50pm
I have resolved this by putting the treeview control in the "client" area of the tab workspace.



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