I have a dynamic form where the users can import jpg images into the form.?This works just fine, but when they reset the form, the image box minimizes and the users are unable to re-use the box without exiting the program and re-entering.?Basically, my users are going to create a flowchart in Paint or Word, save the image as jpg and place it into the form.?They will be using Adobe Reader, so it appears the field needs to be an image field.?Is there any way I can make the field reset to it's starting size and position??A copy of the form is attached.
Reset button hides image boxHi,
I added...
DiagramText.rawValue = null;
DiagramText.h = ''0.8782in'';
Diagram.rawValue = null;
Diagram.h = ''0.6813in'';
to the reset button. Rev 1 attached.
Good luck,
Niall
Reset button hides image boxOutstanding!?Thank you very much!!
Hi Niall,
I downloaded mwfbi's sample and added the h values for the diagram fields to the reset button and it didn't work. Why is it that the rawValue has to be blanked first? This is just for my own edification, thanks in advance.
djaknow
I guess I responded too quickly.?Now, the image will show up, the box will expand, I can reset the form, and it looks good (as I wanted),?The problem is that the next image you try to place in the document, the image is smaller and the box will no longer expand to fit.?Also, I can't get the same formula to work in another image field.?Is there something else that you did?
Form is attached.
Hi,
A couple of things are going on here. When I used the ''.h'' property that overrode the expand to fit height. The trouble then was to change this to the ''.minH'' property; however when the imageField is null the min height went to zero.
Therefore I have left the script in the click event as it was (just the full reference for the exhibit imageField:
DiagramText.rawValue = null;
DiagramText.h = ''0.8782in'';
Diagram.rawValue = null;
Diagram.h = ''0.6813in'';
Exhibit.ExhibitBox.rawValue = null;
Exhibit.ExhibitBox.h = ''0.6813in'';
Then in the mouseUp event of each imageField I had the following which restored the ''expand to fit height'' functionality.
this.minH = ''0.6813in'';
Appears to work now. Good luck,
Niall?
You are awesome!!?Thank you!!
You're very welcome!!
Hi djaknow,
Sorry for not getting back sooner. I suspect that if the .h value was greater than the current height it would have increased the height of the imageField. But with an image in the field, using the .h property set to a lesser value than the current would be a conflict and thus it leaves the imageField height alone.
Just guessing..
Niall
No comments:
Post a Comment