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

Dock pane programatically

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


Joined: 22 November 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ctorres Quote  Post ReplyReply Direct Link To This Post Topic: Dock pane programatically
    Posted: 22 November 2005 at 7:00am

Hi,

How can i manage to use the Action event so when the user tries to close a pane it just docks using the standard animation. If i just hide the pane will instanlly disappear.

This is my code:

Private Sub dpMain_Action(ByVal Action As XtremeDockingPane.DockingPaneAction, ByVal Pane As XtremeDockingPane.IPane, Cancel As Boolean)
    If Action = PaneActionDocking Or Action = PaneActionClosing Then
        Cancel = True
        Pane.Hide
    End If
End Sub

Thanks.

 

Camilo

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: 22 November 2005 at 1:15pm

Remove "Action = PaneActionDocking"

 

If Action = PaneActionClosing Then

       Cancel = True
        Pane.Hide
End If

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ctorres View Drop Down
Newbie
Newbie


Joined: 22 November 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ctorres Quote  Post ReplyReply Direct Link To This Post Posted: 22 November 2005 at 1:37pm

Oleg,

The real issue is that i don't want to use the .hide method because it will just instanlly disappear the pane and what i want is that the usual animation of closing takes place.

Thanks for your response.

Camilo

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.125 seconds.