Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Refresh
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Refresh

 Post Reply Post Reply
Author
Message
tomamoss View Drop Down
Newbie
Newbie


Joined: 19 December 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote tomamoss Quote  Post ReplyReply Direct Link To This Post Topic: Refresh
    Posted: 19 December 2006 at 3:33am
Hi
I have just three picturebox on my form.
These will go into three panes that are linked into tabs.
 
When the code is run below the pictureboxes dont get put into their correct panes until the corsponding tab is clicked.
 
Any help would be most welcome.
 
Thanks
Tom
 
Dim PaneTab1 As Pane
Dim PaneTab2 As Pane
Dim PaneTab3 As Pane
 
Private Sub Form_Load()
   Set PaneTab1 = DockingPaneManager.CreatePane(1, 1350, 1200, DockTopOf)
   PaneTab1.Title = "Tab1"
   Set PaneTab2 = DockingPaneManager.CreatePane(1, 1350, 1200, DockTopOf)
   PaneTab2.Title = "Tab2"
   PaneTab2.AttachTo PaneTab1
   Set PaneTab3 = DockingPaneManager.CreatePane(1, 1350, 1200, DockTopOf)
   PaneTab3.Title = "Tab3"
   PaneTab3.AttachTo PaneTab2
   PaneTab1.Select
End Sub

Private Sub DockingPaneManager_AttachPane(ByVal Item As XtremeDockingPane.IPane)
Select Case Item.Title
    Case "Tab1"
       Item.Handle = Picture1.hWnd
    Case "Tab2"
        Item.Handle = Picture2.hWnd
    Case "Tab3"
        Item.Handle = Picture3.hWnd
End Select
End Sub
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 19 December 2006 at 8:46am
Hi, yes it is designed bahaviour. You can add
 
PaneTab3.Handle = Picture3.hWnd
PaneTab2.Handle = Picture2.hWnd
...
in Form_Load
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.109 seconds.