<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Where did that border come from?</title>
	<atom:link href="http://forms.stefcameron.com/2007/03/24/where-did-that-border-come-from/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2007/03/24/where-did-that-border-come-from/</link>
	<description>Building intelligent forms using Adobe LiveCycle Designer.</description>
	<pubDate>Fri, 29 Aug 2008 03:29:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Khoa</title>
		<link>http://forms.stefcameron.com/2007/03/24/where-did-that-border-come-from/#comment-22401</link>
		<dc:creator>Khoa</dc:creator>
		<pubDate>Tue, 01 Jul 2008 05:31:19 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=70#comment-22401</guid>
		<description>I have solved the problem. Here is the solution for those who have the same problem:

When you want to hightlight textbox with red : 

Set the automatically border as describe by Cameron to "VISIBLE" also set it color to red ( or any color) you want .  You also need to set the inner border (textbox border ) to "HIDDEN" so it only use the outer border.

Once the mandatory fields have data in it , reverse the process. Set the outerborder to Hidden and set inner border to visible ALSO set it stroke to "lowered". That will do the trick. If anyone have problem. Please let me know.</description>
		<content:encoded><![CDATA[<p>I have solved the problem. Here is the solution for those who have the same problem:</p>
<p>When you want to hightlight textbox with red : </p>
<p>Set the automatically border as describe by Cameron to &#8220;VISIBLE&#8221; also set it color to red ( or any color) you want .  You also need to set the inner border (textbox border ) to &#8220;HIDDEN&#8221; so it only use the outer border.</p>
<p>Once the mandatory fields have data in it , reverse the process. Set the outerborder to Hidden and set inner border to visible ALSO set it stroke to &#8220;lowered&#8221;. That will do the trick. If anyone have problem. Please let me know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khoa</title>
		<link>http://forms.stefcameron.com/2007/03/24/where-did-that-border-come-from/#comment-22308</link>
		<dc:creator>Khoa</dc:creator>
		<pubDate>Mon, 30 Jun 2008 03:19:56 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=70#comment-22308</guid>
		<description>hm..

That doesnt work. 

There are so wierd behaviors when working with form in adobe livecycle designer 8. Initially, when the form start up, i executed app.alert() to print out the properties of a textbox before any modifcation . It comes up with the following property:

1. outer border ( the border that automatically set as you mention above) = hidden
2. outer border color = red

3. inner border ( ui.#textEdit.border.edge.color) = black (0,0,0);
4. inner border stroke   = "lowered";

so Basically it's just like any other text box. When i clicked on the validate button which highlight the textbox border in red ( i set the ui.#textEdit.border.edge.color = (0,0,0) and its stroke to "lowered"). it works fine. However when i enter some data in the field and wrote some code to change the textEdit border back to oringial property (3,4) and expect it to go back to original appearance. But it displays some wierd edges. For example 3 edges in red and 1 in black.

Sorry if my descripotion doesnt make any sense. Do you have any idea?</description>
		<content:encoded><![CDATA[<p>hm..</p>
<p>That doesnt work. </p>
<p>There are so wierd behaviors when working with form in adobe livecycle designer 8. Initially, when the form start up, i executed app.alert() to print out the properties of a textbox before any modifcation . It comes up with the following property:</p>
<p>1. outer border ( the border that automatically set as you mention above) = hidden<br />
2. outer border color = red</p>
<p>3. inner border ( ui.#textEdit.border.edge.color) = black (0,0,0);<br />
4. inner border stroke   = &#8220;lowered&#8221;;</p>
<p>so Basically it&#8217;s just like any other text box. When i clicked on the validate button which highlight the textbox border in red ( i set the ui.#textEdit.border.edge.color = (0,0,0) and its stroke to &#8220;lowered&#8221;). it works fine. However when i enter some data in the field and wrote some code to change the textEdit border back to oringial property (3,4) and expect it to go back to original appearance. But it displays some wierd edges. For example 3 edges in red and 1 in black.</p>
<p>Sorry if my descripotion doesnt make any sense. Do you have any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2007/03/24/where-did-that-border-come-from/#comment-22267</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sun, 29 Jun 2008 17:02:57 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=70#comment-22267</guid>
		<description>Khoa,

I do recall seeing what you're explaining but I haven't seen it recently so my guess is that this issue was addressed in a later version of Acrobat than the one you're currently using. You could try changing the handedness of the border to see if that makes a difference: setting it to "left" will cause the border to be painted to the left hand side of the vector that defines the nominal extent of the field and setting it to "right" will cause it to be painted to the right hand side. The default is "even" which draws it directly on the vector. Perhaps by setting the handedness to "left", it might paint over that black border you're seeing but I'm not certain. You can set the handedness like this:

&lt;pre&gt;&lt;code&gt;mandatoryField.border.hand = "left";&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Khoa,</p>
<p>I do recall seeing what you&#8217;re explaining but I haven&#8217;t seen it recently so my guess is that this issue was addressed in a later version of Acrobat than the one you&#8217;re currently using. You could try changing the handedness of the border to see if that makes a difference: setting it to &#8220;left&#8221; will cause the border to be painted to the left hand side of the vector that defines the nominal extent of the field and setting it to &#8220;right&#8221; will cause it to be painted to the right hand side. The default is &#8220;even&#8221; which draws it directly on the vector. Perhaps by setting the handedness to &#8220;left&#8221;, it might paint over that black border you&#8217;re seeing but I&#8217;m not certain. You can set the handedness like this:</p>
<pre><code>mandatoryField.border.hand = "left";</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khoa</title>
		<link>http://forms.stefcameron.com/2007/03/24/where-did-that-border-come-from/#comment-22028</link>
		<dc:creator>Khoa</dc:creator>
		<pubDate>Thu, 26 Jun 2008 05:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=70#comment-22028</guid>
		<description>Hi Cameron,

I have a very similar problem regarding to the object border. For instance, i have a mandatory field which will get red border if there is no data in the field. When the object hightlighted with red border, it also has a black line surrounding the object. It is like two borders (inner one with black color and outer one with red color). Is there anyway that i can remove the black one?

This is my code:

if (mandatoryField.rawValue  == null &#124;&#124; mandatoryField.rawValue  == "")
   {
      mandatoryField.border.edge.presence = "visible";
      mandatoryField.border.edge.color.value = "255,0,0" ;  // Red border
      mandatoryField.borderWidth = "0.02";
   }
   else
   {
     mandatoryField.fillColor = "255,255,255";   // White border : remove red border
     mandatoryField.borderWidth = "0";
   }</description>
		<content:encoded><![CDATA[<p>Hi Cameron,</p>
<p>I have a very similar problem regarding to the object border. For instance, i have a mandatory field which will get red border if there is no data in the field. When the object hightlighted with red border, it also has a black line surrounding the object. It is like two borders (inner one with black color and outer one with red color). Is there anyway that i can remove the black one?</p>
<p>This is my code:</p>
<p>if (mandatoryField.rawValue  == null || mandatoryField.rawValue  == &#8220;&#8221;)<br />
   {<br />
      mandatoryField.border.edge.presence = &#8220;visible&#8221;;<br />
      mandatoryField.border.edge.color.value = &#8220;255,0,0&#8243; ;  // Red border<br />
      mandatoryField.borderWidth = &#8220;0.02&#8243;;<br />
   }<br />
   else<br />
   {<br />
     mandatoryField.fillColor = &#8220;255,255,255&#8243;;   // White border : remove red border<br />
     mandatoryField.borderWidth = &#8220;0&#8243;;<br />
   }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stipe Pavicic</title>
		<link>http://forms.stefcameron.com/2007/03/24/where-did-that-border-come-from/#comment-529</link>
		<dc:creator>Stipe Pavicic</dc:creator>
		<pubDate>Tue, 17 Apr 2007 09:41:33 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=70#comment-529</guid>
		<description>this sample PDF is really nice! thank you!
</description>
		<content:encoded><![CDATA[<p>this sample PDF is really nice! thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.429 seconds -->
