Changes between Version 3 and Version 4 of FRAME_POSITION_R0
- Timestamp:
- 12/10/08 19:11:49 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FRAME_POSITION_R0
v3 v4 7 7 8 8 == Overview == 9 The frames could have different position in relation to the page. They could overlap but the frame should be able to fit into the page size.9 The frames could have different position(coordinates) in relation to the upper left angle of the page. They could overlap and the frame should always be able to fit into the page. Therefore whenever a negative coordinate occurs(because of a drag and drop for example) the page size and position should be recalculated so that this frames coordinate is 0. All other frames should recalculate their coordinates as well so that their relative positions are kept. 10 10 11 11 == Task requirements == … … 14 14 15 15 == Task result == 16 The result of this task is source code.16 The result of this task is source code. 17 17 18 18 == Implementation idea == 19 * Create Position class extending !ProObject with properties for the frames upper left position 20 * Add Position position property to the Frame 21 19 * Create Position class extending !ProObject with properties for the frames upper left position. 20 * Add Position position property to the Frame. 21 * Recalculate all coordinates when needed so that the conditions are kept for all frames. 22 22 23 23 == Related == 24 24 25 25 == How to demo == 26 * Create frame with concrete coordinates and check if they are correct. Try creating a frame with incorrect coordinates. Change the frames coordinates and check that its position is updated. 26 * Create frame with concrete coordinates and check if they are correct. 27 * Try creating a frame with incorrect coordinates. 28 * Change the frames coordinates and check that its position is updated.