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

Pin a pane programmatically

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


Joined: 07 November 2006
Location: United Kingdom
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Leather99 Quote  Post ReplyReply Direct Link To This Post Topic: Pin a pane programmatically
    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?
 
 
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Leather99 View Drop Down
Newbie
Newbie


Joined: 07 November 2006
Location: United Kingdom
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Leather99 Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
gaudetm View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 September 2006
Location: Canada
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote gaudetm Quote  Post ReplyReply Direct Link To This Post Posted: 13 November 2006 at 1:15am
upgrade to 10.3 to fix that focus problem
Back to Top
JSram View Drop Down
Groupie
Groupie


Joined: 22 October 2004
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote JSram Quote  Post ReplyReply Direct Link To This Post 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

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: 28 November 2006 at 12:02am
Hi,
Use PaneActionExpanded instead PaneActionExpanding.
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.141 seconds.