|Snapping bottom of figure to grid [message #230334]
||Fri, 09 February 2007 00:02
| Calman Steynberg
Registered: July 2009
I've been trying to snap the bottom of a figure to the grid, but I |
havent been able to get it to work.
From what I understand, I need to subclass SnapToHelper, and override
either snapRectangle or snapPoint, but after that I'm lost.
I tried changing the snapLocations and the snapDirections, but once I
put a different value in there, the figure just stops snapping. The ONLY
things that seem to work is PositionConstants.HORIZONTAL and
Could someone point me at some sample code that does this, or maybe tell
me what I need to do to get this to work?
Any help would be greatly appreciated.
Powered by FUDForum
. Page generated in 0.02089 seconds