Print Page | Close Window

Pin a pane programmatically

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=5450
Printed Date: 28 September 2024 at 11:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Pin a pane programmatically
Posted By: Leather99
Subject: Pin a pane programmatically
Date Posted: 07 November 2006 at 7:23am
Hi there,
 
I have looked through all of the documentation and I can not see a way to pin a pane using code. Is this currently possible?
 
(I am running version 9.81).
 
So I am looking to do something like:
 
DockingPaneManager.Panes(1).PinOpen
 
Or
 
DockingPaneManager.Panes(1).AutoHide = False
 
 
Any ideas?
 
 



Replies:
Posted By: SuperMario
Date Posted: 07 November 2006 at 8:56am
DockingPaneManager.Panes(1).Hidden = False

Can't remember if this works in that old of a version, maybe time to upgrade


Posted By: Leather99
Date Posted: 07 November 2006 at 10:50am
Hi there,
 
thanks for the response - it worked a treat.
 
The only issue is it appears to steal focus. Is there any way to prevent this?


Posted By: gaudetm
Date Posted: 13 November 2006 at 1:15am
upgrade to 10.3 to fix that focus problem


Posted By: JSram
Date Posted: 27 November 2006 at 6:51pm
Hi,

I have a problem with this (10.3.1). I have 3 panes at left set .Hidden=True at form load. Then I have this code in Action event

    Select Case Action
        Case PaneActionExpanding
             DockingPaneManager.Panes(Pane.Id).Hidden = False

This works so far as the expanded Pane gets pinned, but... if you unpin the Pane it seem like the panes container is left behind on the screen and if I don't close the form quickly VB6 IDE crashes after a few seconds - Run-time error '2147417848 (80010108)': Method 'Hidden' of object 'IPane' failed :-(.

Another observations is that if I don't have that .Hidden = False line there and I click the pin the Pane is closed instead of pinned as if I had clicked the X button. With just 1 Pane it Exands and colapses emediately and is then dissapeared (closed), but if I add a second Pane it pinns, but then starts the problems...

Another thing to think of here is if I click to expand one of my other panes, the currently expanded pane is closed as well. I guess this is something I can or even have to handle by code in the Action_Event.

Regards,
Joakim



Posted By: Oleg
Date Posted: 28 November 2006 at 12:02am
Hi,
Use PaneActionExpanded instead PaneActionExpanding.


-------------
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