Print Page | Close Window

Refresh

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=5836
Printed Date: 07 July 2024 at 4:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Refresh
Posted By: tomamoss
Subject: Refresh
Date 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



Replies:
Posted By: Oleg
Date 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



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