Hello,
I'm trying to change the effects of a field or subform when the user does a mouseover. Using the mousEnter, I can make something disappear using: this.presence = "hidden";
But I can't seem to do the following:
this.fontColor = "red";
this.borderColor = "yellow";
I'm sure there's something obvious I'm missing. Can anyone help me find a solution?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
For colours, LC Designer uses the RGB, Red, Green, Blue colour space. See a post here which has links to online tools like Kuler: http://assure.ly/eF231M. This post looks at buttons, which if you look at the secondary buttons you will see the script that changes the font colour: http://assure.ly/eGGV6p.
this.caption.font.fill.color.value = "255,20,20";
Hope that helps,
Niall
Views
Replies
Total Likes
Using this syntax I can change an object's fill color:
this.fillColor = "200,000,000";
But it doesn't work for fontColor. As an aside, is there somewhere that I can see a chart of the color-numbers for livecycle? I've found the #______ used in web development to not work.
Views
Replies
Total Likes
Hi,
For colours, LC Designer uses the RGB, Red, Green, Blue colour space. See a post here which has links to online tools like Kuler: http://assure.ly/eF231M. This post looks at buttons, which if you look at the secondary buttons you will see the script that changes the font colour: http://assure.ly/eGGV6p.
this.caption.font.fill.color.value = "255,20,20";
Hope that helps,
Niall
Views
Replies
Total Likes
Thanks Niall. I'm trying to change effects of multiple objects given a mousEnter event in the common area. I've tried using a subform but this allows no mouseEnter/Exit events.
So if I have a row of info: Title on the left, and some checkboxes extending to the right of the Title. I'd like the user to have effects change even if the cursor goes in between the checkboxes. Is this possible in LiveCycle?
Views
Replies
Total Likes
Hi,
You could try and use the mouseEnter and mouseExit events in the checkboxes, but I'm not sure of this will give you the effect you are after.
Maybe you would be better off by giving an effect to the selected choice, to make it stand out more?
Niall
Views
Replies
Total Likes
One last question on this topic:
I want to have a text field mouseover (since it allows scripting unlike text boxes). I got it so that it behaves like a textbox-got rid of the caption, set a default message, and changed it under Initialize:
this.access = "readOnly";
But restricting access to read-only of course then takes away the cpaability to mouse over it. Any work arounds that you know of?
Thanks!
Views
Replies
Total Likes
Hi,
I saw your other post and to be honest I think that you will end up over complicating the user's expereince.
If a textfield is read only, then you will not get the events to fire or tooltips to appear.
Niall
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies