Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Can I hide a tab in the workspace?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can I hide a tab in the workspace?

 Post Reply Post Reply
Author
Message
RedFin View Drop Down
Groupie
Groupie
Avatar

Joined: 26 March 2008
Location: Australia
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedFin Quote  Post ReplyReply Direct Link To This Post Topic: Can I hide a tab in the workspace?
    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


Back to Top
RedFin View Drop Down
Groupie
Groupie
Avatar

Joined: 26 March 2008
Location: Australia
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedFin Quote  Post ReplyReply Direct Link To This Post Posted: 11 June 2011 at 11:50pm
I have resolved this by putting the treeview control in the "client" area of the tab workspace.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.078 seconds.