When ever I tab into a text field or click inside to have the cursor blinking inside the textfield, it seems like the cursor object overlays the textfield and this is causing a problem. I'm using Adobe LiveCycle Designer 7.1 and I want to change the color of the text field border upon entering the text field, so I put this script in the Enter event of the textfield.
this.borderColor = "0,0,255";
I can see the bottom side of the border turn blue but the remaining sides are still the original color. My guess is that the cursor is overlaying the text field and does not refresh it self to reflect the new color of the border which is underneath the cursor.
When I put the same script in the MouseEnter event I get the desired behavior because the cursor is not overlaying the border. I managed to make the text field hidden, change the border color, then make the text field visible again.
this.presence = "hidden";
this.borderColor = "0,0,255";
this.presence = "visible";
This works but, it is not acceptable because of the time it takes to re-render the PDF.
Can anyone tell me how I might be able to get the cursor to render the new underlying border properly? I'm open to any suggestions
Thanks,
Alex