Print Page | Close Window

Dock pane programatically

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=3254
Printed Date: 31 January 2025 at 8:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dock pane programatically
Posted By: ctorres
Subject: Dock pane programatically
Date 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




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


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




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