06-22-2017 07:05 PM
What is the property or method for enabling pan mode (aka move, aka "the hand") in a 2D axis display object in the view panel?
So, View.ActiveSheet.ActiveArea.DisplayObject.*Something here?*
Solved! Go to Solution.
06-25-2017 12:49 PM
I am not able to find this either. I suspect it does not exist.
06-27-2017 03:41 AM
Please try this command:
view.ActiveSheet.ActiveArea.DisplayObj.ZoomCursor = "MoveZoomCursor"
Greetings
Walter
07-10-2017 11:45 AM
Setting the zoomcursor property to "MoveZoomCursor" doesn't seem to do anything. Setting it to "StandardCursor" will turn off the pan mode, but nothing seems to turn it on.
07-11-2017 12:25 AM
If I have a curve in a 2D axis system in VIEW and have run the script command above, then I’m able to move the curve while holding the right mouse key pushed and moving the mouse.
This works fine in DIAdem 2012, 2014, 2015 and 2017 – even if you have a zoomed part of the curve or the whole curve displayed.
Greetings
Walter
07-12-2017 12:44 PM
Must be my implementation. How are you setting the command? Are you clicking the script panel, running a script, then going back to view? or is the script attached to one of the script hot keys (Shift - F1, etc)?
07-13-2017 12:46 AM
I thought you were looking for the script code to enable the “pan mode”. Anyway, to activate the “pan mode” you have these options:
Greetings
Walter
07-13-2017 10:22 AM
Sorry, I think it's a misunderstanding. I was simply asking how you had implemented it.
However, I just now set the property in a blank script, and it works as expected. It still doesn't work from my dialog box, so it must be something else going on.
But in any case, I now know the problem is with my code, so time to put my debugging hat on.
Thanks.