[CRASH] Dock pane to original position |
Post Reply |
Author | |
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Posted: 21 October 2010 at 2:02pm |
Hi,
My intention was to dock a pane to it's original position after the pane was floated.
Most of the time it seem to work OK but when docking a pane to another pane (shown as tabs) and docking the pane to another position the app crashes. Maybe I did something wrong... so help from support would be appreciated (or someone else who knows exactly how it should be coded) I created a test to show what I mean.
Thanks a lot in advance
Edit: I used V13.4.0 for this test project
|
|
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.... |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi, Even [CRASH] inside description doesn't seem to wake up support. Please, tell me what I have to do to get your attention. |
|
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.... |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Request support via www.codejock.com. You will get a ticket and they will hopefully respond. |
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Aaron, I can't confirm that its bug. Its incorrect usage. You can't call SetLayout inside PaneActionDocked - just imagine that we dock 3-4 panes PaneActionDocked will be called for each of them but after your Setlayout some pointers won't be valid. Can you describe better what you going to make, maybe there is better solution.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Oleg, OK, if this is incorrect usage of CreateLayout you are right it isn't bug
I'm trying to create a layout that is predefined and user is allowed to float panes but isn't allowed to dock panes to another position. So the previous floated pane has to be docked to same position as before it was floated. Just as double clicking on pane caption, the pane is docked to it's original position. That is what I would like to have :)
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.... |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
It looks so weird for user - he moved pane to some location, see hatch rectangle where t will appear, release mouse and see it in wrong location. Guess better disable docking/floating or cancel PaneActionDocking for non original containers.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
It indeed looks weird but if I don't have any other options to work with... If I set .Options = PaneNoDockable the user isn't allowed to dock the floated pane anymore (also double clicking pane caption doesn't work) Could it be possible to implement property DockPaneToOriginalPosition? Any other solution is also welcome |
|
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.... |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
maybe you can restrict only for examply to allow dock to Left / Right side of client part only ?
Its not easy to formulate DockPaneToOriginalPosition - what if user float each panes first and then try to dock them in reversed order... what problem for appliaction if some panes will be switched ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Oleg,
One of our customers don't want the users to mess around with their "layout" but wants to be able to float a pane and "do their thing". After "doing their thing" the user has to dock the pane back but if I allow this their layout will be changed all the time because users don't listen what their supervisers order them to do So I would like to dock the pane to the original position as before the pane was floated. I tried with above test project to restore the layout but it crashed. So all solutions are welcome
Thanks
|
|
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.... |
|
Willowmaster
Senior Member Joined: 12 July 2010 Location: Netherlands Status: Offline Points: 180 |
Post Options
Thanks(0)
|
Maybe you can save the layout as a string and set all the panes to be non floatable when the first pane becomes floatable. When the pane is docked back you can set the panes back to floatable and load the layout. I hope this makes sense to you. :)
|
|
Hemesh
Senior Member Joined: 10 August 2010 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
I've not got 13.4 installed, but your example it doesn't crash on my 13.3 installation.. d'oh!
|
|
Product: Xtreme SuitePro (ActiveX) version 18.5.0
Platform: Windows 7 Enterprise (64-bit) Language: Visual Basic 6.0 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Thanks for trying my sample. Did you try to dock pane to another pane (showing as tabs) ? That is the problem !!!
Thanks
|
|
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.... |
|
Hemesh
Senior Member Joined: 10 August 2010 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
Yeah, that was really odd that. Been trying a few things but without too much luck yet . I'm continuing to have a play though as i'm sure there must be something that can be done to enforce the panes to dock to an alternative pane if set. Might have to set up your own class to record the original layout and docked neighbours..
|
|
Product: Xtreme SuitePro (ActiveX) version 18.5.0
Platform: Windows 7 Enterprise (64-bit) Language: Visual Basic 6.0 |
|
Willowmaster
Senior Member Joined: 12 July 2010 Location: Netherlands Status: Offline Points: 180 |
Post Options
Thanks(0)
|
The following code seems to work quite nice for me. But I'm using 11.1.3 as codejock version:
Private Sub wndDockingPane_Action(ByVal Action As XtremeDockingPane.DockingPaneAction, ByVal Pane As XtremeDockingPane.IPane, ByVal Container As XtremeDockingPane.IPaneActionContainer, Cancel As Boolean)
Static blnSkip As Boolean If Not blnSkip Then If Action = PaneActionDragging Then Me.wndDockingPane.GetLayout paneLayout End If If Action = PaneActionDocked Or Action = PaneActionAttached Then blnSkip = True Me.wndDockingPane.SetLayout paneLayout blnSkip = False Cancel = True End If End If End Sub I haven't fully tested it.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.3.1
Platform: Windows XP (32bit) - SP 3 (on VMWare) Language: Visual Basic 6.0 |
|
Willowmaster
Senior Member Joined: 12 July 2010 Location: Netherlands Status: Offline Points: 180 |
Post Options
Thanks(0)
|
Hello Aaron,
Have you checked the sample code yet? I'm curious if it has helped you.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.3.1
Platform: Windows XP (32bit) - SP 3 (on VMWare) Language: Visual Basic 6.0 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Thank you for looking at it
@Willowmaster: Your code seems to be working OK.
To Oleg: Why isn't this right way to store layout? Do have a better way to solve this problem?
Thanks
|
|
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.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |