Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Force Pane to dock back to original location
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Force Pane to dock back to original location

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


Joined: 06 May 2010
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jasonpa123 Quote  Post ReplyReply Direct Link To This Post Topic: Force Pane to dock back to original location
    Posted: 21 May 2010 at 4:40pm
Is it possible in the dockingpanemanager action event, to programmatically force a pane to dock back to it's original position?
 
I realize it may appear to behave oddly to the user, but people higher up then me would like the pane to dock back to the right side of the screen regardless of where the user tries to dock the pane.
 
Any suggestions would be greatly appreciated.
 
Thanks
 
Jason
Jason
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2010 at 11:16am
Hi,

You say you want a DockingPane to dock back to it's original position regardless of where a user tries to dock them?!

There's no point allowing a user to play around with a DockingPane if you don't allow them to place it where they want. Therefore I believe you should just remove this functionality, that way the user cannot select a DockingPane and try to move this about the screen.

The following code does just that:


Private Sub DockingPaneManager_Action(ByVal Action As XtremeDockingPane.DockingPaneAction, _
                                      ByVal pane
As XtremeDockingPane.IPane, _
                                     
ByVal Container As XtremeDockingPane.IPaneActionContainer, _
                                      Cancel
As Boolean)
    On Error Resume Next

    If Action = PaneActionFloating Or Action = PaneActionAttaching Then
        Cancel = True
    End If
End Sub

Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2010 at 12:41pm
Hi,
 
I think Jason means docking pane on original location AFTER user floated the pane. If I'm not mistaken I replied in another thread that it isn't possible with current version...
 
I would like this option also and it shouldn't be to hard to implement because DP already "knows" position of panes (double clicking Pane results in docking Pane to its original location...)
 
Thanks a lot in advance
 
  
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2010 at 11:59am
Hi,
 
I have been trying to get this working but I get application errors, not always but sometimes. I see this happening once a pane is docked inside container (as tabs) dragging the pane back to another location is causing a crash. I must be doing something wrong... Please check out the code in Action event!!!
 
Thanks a lot
 
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
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.156 seconds.