Pin a pane programmatically |
Post Reply |
Author | |
Leather99
Newbie Joined: 07 November 2006 Location: United Kingdom Status: Offline Points: 4 |
Post Options
Thanks(0)
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?
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
DockingPaneManager.Panes(1).Hidden = False
Can't remember if this works in that old of a version, maybe time to upgrade |
|
Leather99
Newbie Joined: 07 November 2006 Location: United Kingdom Status: Offline Points: 4 |
Post Options
Thanks(0)
|
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?
|
|
gaudetm
Senior Member Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
Post Options
Thanks(0)
|
upgrade to 10.3 to fix that focus problem
|
|
JSram
Groupie Joined: 22 October 2004 Status: Offline Points: 42 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Use PaneActionExpanded instead PaneActionExpanding.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |