Creating an object in code on mouse click.

If you are a C/C++/C# developer and have any questions about using our products from your application here is the place to post them.
Post Reply
beandog
Posts: 33
Joined: Wed Dec 14 2005

Creating an object in code on mouse click.

Post by beandog »

Is there a mechanism to retrieve the location on the current page determined by a screen position? I need to dynamically create a Picture-type object of a specific size under the cursor with a set image when a user clicks on the document.
beandog
Posts: 33
Joined: Wed Dec 14 2005

Post by beandog »

Whoops! Of course, the Mouse events on the viewer give page coordinates. Sorry for the trouble.
beandog
Posts: 33
Joined: Wed Dec 14 2005

Loading picture file into picture object?

Post by beandog »

Well, I got that first one worked out, but now I can't figure out how to tell the Picture object to load a file. I tried setting the FileName to the image file I wanted to display (a .gif), but nothing happened.
beandog
Posts: 33
Joined: Wed Dec 14 2005

Corrupt .GIF file.

Post by beandog »

Again, sorry for the trouble. After a couple hours, I discovered I was dealing with a corrupt file.
Post Reply