|
-
May 21st, 2006, 09:31 AM
#1
Thread Starter
Frenzied Member
[02/03] Heavy GDI+ Question Regarding PRintPreview Control
Dear all,
i have a form that contains a printpreview control that shows a print document on screen.
now i want to make the user able of modifing some positions of objects on screen. (That is ok).
he can select an object from the list of objects drawn on the document to reposition by mouse. i managed to create the code for dynamically showing and modifing the objects positions.
my problem is that i can't translate mouse click positions over the preview control into a document relative position. (Due to difference of zoom factors).
for example at zoom of 50% when the user click on the middle of the preview control, the selected position is differnce when he clicks the same mouse position but at zoom factor of 100%.
I want to translate mouse click position clicked over the preview control on the form into an inside posint coordination related to the print document.
my problem now is that my user selects a drop point and clicks over it with mouse, the object is not dropped correctly in the document due to zoom factors variations.
i hope anyone can understand me in the first place.
THank you in advance
Waiting your kind Replies
bst rgds
Last edited by maged; May 24th, 2006 at 08:23 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|