Frink1234 Posted March 5, 2005 Posted March 5, 2005 I've been searching but have not been able to find a plug-in which allows one to draw on a graphic inside a container field in FMP7. Is there such a plug-in? If not, would the following be possible to script? 1. A graphic file is in a container field. 2. Copy the graphic into memory. 3. Open MSPaint 4. Paste graphic into MSPaint 5. Draw on graphic in MSPaint. 6. Copy altered graphic into memory. 7. Paste altered graphic back into container field. Can this be run with minimal user intervention?
transpower Posted March 6, 2005 Posted March 6, 2005 You could use Send Event to run MSPaint. The rest of your steps look fine, and you could run this from a button.
Frink1234 Posted March 6, 2005 Author Posted March 6, 2005 Thanks, that's what I thought. Can I use ^C and ^V in the script or does this have to be manually entered by the user?
DykstrL Posted March 7, 2005 Posted March 7, 2005 This is not a cross-platform solution: Create a blank, white image in Paint and make it the size that you need, save it, and copy it into the container field. If the user double-clicks in the container field, it will open the blank file in Paint, ready to be drawn (painted) on. Save it and close, click out of the field should save the changed image. The secret(?) is that if you create the file in a certain software, such as Paint, Word, etc., and the user also has that software installed, the same software will open when the container field is activated. I use this method in a couple of hosted solutions. It works and gives me a little control over the size of the image in the container field. I use a 'blank' the size that I want so the size is controlled to a point.
DykstrL Posted March 7, 2005 Posted March 7, 2005 This is not a cross-platform solution: Create a blank, white image in Paint and make it the size that you need, save it, and copy it into the container field. If the user double-clicks in the container field, it will open the blank file in Paint, ready to be drawn (painted) on. Save it and close, click out of the field should save the changed image. The secret(?) is that if you create the file in a certain software, such as Paint, Word, etc., and the user also has that software installed, the same software will open when the container field is activated. I use this method in a couple of hosted solutions. It works and gives me a little control over the size of the image in the container field. I use a 'blank' the size that I want so the size is controlled to a point.
DykstrL Posted March 7, 2005 Posted March 7, 2005 This is not a cross-platform solution: Create a blank, white image in Paint and make it the size that you need, save it, and copy it into the container field. If the user double-clicks in the container field, it will open the blank file in Paint, ready to be drawn (painted) on. Save it and close, click out of the field should save the changed image. The secret(?) is that if you create the file in a certain software, such as Paint, Word, etc., and the user also has that software installed, the same software will open when the container field is activated. I use this method in a couple of hosted solutions. It works and gives me a little control over the size of the image in the container field. I use a 'blank' the size that I want so the size is controlled to a point.
Frink1234 Posted March 7, 2005 Author Posted March 7, 2005 That sounds like a solution that might work for me. Can you clarify to me how you are "activating the container field" to open Paint by double-clicking on it? When I double click on an empty container field it opens Windows sound recorder. If I double click on a container with a .BMP in it, absolutely nothing happens. Do I have to use windows file associations? Right now I have my bitmaps associated with ACDSee.
Frink1234 Posted March 7, 2005 Author Posted March 7, 2005 That sounds like a solution that might work for me. Can you clarify to me how you are "activating the container field" to open Paint by double-clicking on it? When I double click on an empty container field it opens Windows sound recorder. If I double click on a container with a .BMP in it, absolutely nothing happens. Do I have to use windows file associations? Right now I have my bitmaps associated with ACDSee.
Frink1234 Posted March 7, 2005 Author Posted March 7, 2005 That sounds like a solution that might work for me. Can you clarify to me how you are "activating the container field" to open Paint by double-clicking on it? When I double click on an empty container field it opens Windows sound recorder. If I double click on a container with a .BMP in it, absolutely nothing happens. Do I have to use windows file associations? Right now I have my bitmaps associated with ACDSee.
Frink1234 Posted March 7, 2005 Author Posted March 7, 2005 OK - I figured it out. You have to insert it as an object. Thanks for the tip!
Frink1234 Posted March 7, 2005 Author Posted March 7, 2005 OK - I figured it out. You have to insert it as an object. Thanks for the tip!
Frink1234 Posted March 7, 2005 Author Posted March 7, 2005 OK - I figured it out. You have to insert it as an object. Thanks for the tip!
artypants Posted March 10, 2005 Posted March 10, 2005 Nice that this works for you. This double-click option does not work on a Mac. I am looking around the forum for some help like this on a Mac but it looks like some very serious applescript (MAC OS) code.
artypants Posted March 10, 2005 Posted March 10, 2005 Nice that this works for you. This double-click option does not work on a Mac. I am looking around the forum for some help like this on a Mac but it looks like some very serious applescript (MAC OS) code.
artypants Posted March 10, 2005 Posted March 10, 2005 Nice that this works for you. This double-click option does not work on a Mac. I am looking around the forum for some help like this on a Mac but it looks like some very serious applescript (MAC OS) code.
Recommended Posts
This topic is 7198 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now