11-09-2015 12:21 PM
Hi, I know how I can change the background color for a string indicator using property Text.BGColor.
My question is how can I change this only when the indicator is in Focus, I mean when the cursor is in that field.
As soon as the cursor goes to another string indicator I would like the color to follow the cursor so to say.
Solved! Go to Solution.
11-09-2015 12:28 PM
Use an event structure with the Mouse Enter and Mouse Leave events. You could combine all the events in to one event case and use the Control Reference output for the event to change the specific control's color.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
11-09-2015 12:40 PM - edited 11-09-2015 12:43 PM
1. Go give this idea a Kudos: Key focus Event
2. You could do something like this in a loop
11-09-2015 12:47 PM
That idea deserves Kudos indeed.
If your user will be tabbing between controls, OP will have to poll the focus just like crossrulz suggests.
If mouse events will be satisfactory, the best way to do this would be with an event structure, so your polling isn't using up processing power.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
11-09-2015 01:00 PM
Thanks, that works exactly as I wanted. Thanks also James for your input.