Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - how to disable pane movement
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to disable pane movement

 Post Reply Post Reply
Author
Message
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Topic: how to disable pane movement
    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 !

 

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: 12 October 2005 at 2:12am

Hello,

Catch Action event.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post 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 !
Back to Top
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2005 at 3:25pm
Any suggestions ?
Back to Top
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2005 at 6:14pm
How about:

DockingPaneManager.Options.DefaultPaneOptions = PaneNoFloatable
Back to Top
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post 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 ...
Back to Top
mcaldwell View Drop Down
Newbie
Newbie


Joined: 07 September 2005
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote mcaldwell Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2005 at 3:17am

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

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: 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
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: 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


Edited by SuperMario
Back to Top
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post 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 ?

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: 27 October 2005 at 9:57am
tobi,
It is a work in progress and is an effort to give Codejock customers better help.
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: 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.
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.