graphic Drag/drop challenge

  • Thread starter Thread starter Tina
  • Start date Start date
T

Tina

I have to develop a program that will have two panes. The left pain is a
Tiff of a Loan Form. the right panel has a bunch of text boxes that are
populated from a database with text data. I have to allow the user to drag
the contents from the text boxes on the right and drop a rendering of the
onto the form. So, for instance, I drag the name of the loan applicant onto
the form and when it gets close to the place where name goes it will have a
snap capability that will make it easy for the user to drop it in exactly
the right place and it must be in the right font and point size.

I don't know how to do this. Is it possible in a managed code application?
Thanks,
T
 
I have to develop a program that will have two panes. The left pain is a
Tiff of a Loan Form. the right panel has a bunch of text boxes that are
populated from a database with text data. I have to allow the user to
drag the contents from the text boxes on the right and drop a rendering of
the onto the form. So, for instance, I drag the name of the loan
applicant onto the form and when it gets close to the place where name
goes it will have a snap capability that will make it easy for the user to
drop it in exactly the right place and it must be in the right font and
point size.

I don't know how to do this. Is it possible in a managed code application?
Thanks,
T

That sounds quite interesting :-)

Could you use a panel or picture box on the left with the tiff as a
background image, and then position text boxes or labels in the places
where the text needs to be inserted? Is so it's straightforward drag and
drop between text boxes/labels. It won't insert the data in the tiff of
course, you would need to capture it from the text boxes/labels, or
perhaps do some sort of screen grab of the tiff and text boxes.
 
A Tiff image is an image. The first thing you need to do is to define how
your app will know what fields are in the form, where they are positioned
(x/y coordinates) in the image, what font is used in the form that the Tiff
image is a picture of, and what pixel size the font is in the image, as it
may be different than the original paper form's font pixel size. Then you
will have to store that metadata about the Tiff image form somewhere, and
make it available to your application. When you add the data from the
TextBoxes, you will need to generate an new image that has the new data
painted over the original. Then you will need to save the new image
somewhere. Before you get to the technical coding details of this, you need
to work out the design specifically and completely.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
 
Back
Top