fixing center of window to be 0,0 with FreeformLayer [message #229538] |
Sun, 21 January 2007 14:19 |
Vineet Sinha Messages: 31 Registered: July 2009 |
Member |
|
|
Hi,
I am using FreeformLayer as the top-level figure and am adding children
to it. However I want the 0,0 position to be the center of the window.
There are two cases that I need (and am having problems with):
1> When a 20x20 figure is added at (-10,-10) at the beginning, I want
the figure to be at the center of the editor, i.e. the center of the
editor is (0,0)
2> When a user resizes the editor, I want to be able to make sure the
new center of the view is the same as the old center of the view -
currently the old top-left remains as the new top-left.
I have only been able to get these working via hacks, and would
appreciate any tips in the right direction.
Regards,
Vineet
|
|
|
Powered by
FUDForum. Page generated in 0.02634 seconds