Setup is this - I have a vb6 application where I place a picture box on a form, place a wmf file in the picture box, then expand the picture box to completely cover the form. The wmf file is a form containing several boxes. I need to be able to determine the x y coordinates for each of the boxes in the wmf form. After determining the coordinates for a particular box, I would write the coordinates to a text file from within the program. I would repeat this process for each box in the wmf form identifying each wmf boxs by number, starting point of the box, and length.
This application would be used to set the wmf box coordinates for boxes in many wmf forms that are processed by another application, where the operator is able to select a particular wmf form from a group of forms, populate the form by placing information only in the wmf boxes , then print the form.
For the purpose of this request, I just need help in determining the coordinates for a particular wmf form and possibly determining the length of each box (begin x y and end x y) I will be using a fixed length font in the program that uses the information from this program so the text box length would translate directly to the number of characters in the box.
Can I do this directly or do I need to create a program text box, and move the text box over each of the boxes in the wmf form? I
If this is necessary, I would need some pointers how to move the text box over each of the pre printed boxes in the particular wmf form, chen click the mouse pointer to determine the x y coordinates.