Print Page | Close Window

how to disable pane movement

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=3016
Printed Date: 17 June 2024 at 1:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to disable pane movement
Posted By: tobi
Subject: how to disable pane movement
Date Posted: 11 October 2005 at 10:30am

Is it possible to prevent a docking pane (with caption bar) from being moved ?
The docking pane should not be able to be moved or floated !

 




Replies:
Posted By: Oleg
Date Posted: 12 October 2005 at 2:12am

Hello,

Catch Action event.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: tobi
Date Posted: 12 October 2005 at 8:15am
Iīve tried to cancel the "PaneActionDocking" action, but then I canīt open and pin the docking pane !


Posted By: tobi
Date Posted: 19 October 2005 at 3:25pm
Any suggestions ?


Posted By: nighthawk
Date Posted: 19 October 2005 at 6:14pm
How about:

DockingPaneManager.Options.DefaultPaneOptions = PaneNoFloatable


Posted By: tobi
Date Posted: 20 October 2005 at 12:05pm
Iīve tried that already, but with that option the pane can still be dragged to left, right, top and bottom of the window ...


Posted By: mcaldwell
Date Posted: 27 October 2005 at 3:17am

I am wanting to do the same thing.  Any luck with this issue?  Thanks...



Posted By: SuperMario
Date Posted: 27 October 2005 at 7:48am
As I understand it, you want _All_ actions disabled?

Private Sub DockingPaneManager_Action(ByVal Action As XtremeDockingPane.DockingPaneAction, ByVal Pane As XtremeDockingPane.IPane, Cancel As Boolean)
    On Error Resume Next  
    Cancel = True
End Sub


Posted By: SuperMario
Date Posted: 27 October 2005 at 8:35am
To also allow pinning:
  
Private Sub DockingPaneManager_Action(ByVal Action As XtremeDockingPane.DockingPaneAction, ByVal Pane As XtremeDockingPane.IPane, Cancel As Boolean)

On Error Resume Next

    If Action = PaneActionFloating Or Action = PaneActionAttaching Then
        Cancel = True
    End If
    If Action = PaneActionDocking Then
        Cancel = Not Pane.Hidden
    End If

End Sub


Posted By: tobi
Date Posted: 27 October 2005 at 9:43am

Dear Supermario,

thatīs it ! Thank you very much ...

Another question: I saw you did some "Question/Answer" posts on some other topics. Is there any way to access your Question/Answer archive ?



Posted By: SuperMario
Date Posted: 27 October 2005 at 9:57am
tobi,
It is a work in progress and is an effort to give Codejock customers better help.


Posted By: SuperMario
Date Posted: 27 October 2005 at 10:13am
Ok tobi,
Here is the link to the CommandBars ActiveX Knowledge Base.

http://www.codejock.com/support/kb_activex/commandbars/

also can be accessed though this links:

http://www.codejock.com/support/kb.asp

Hope you like them.



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