11-13-2020 01:33 AM
Hello, I would like to highlight the rows according to the code but also the color to disappear when user acknowledge it. Red for error, yellow for warning and green or transparent for acknowledged ones.
Do you have some idea about it?
Thanks
11-13-2020 01:40 AM - edited 11-13-2020 01:42 AM
Hi ocan,
@truskawka wrote:
I would like to highlight the rows according to the code but also the color to disappear when user acknowledge it. Red for error, yellow for warning and green or transparent for acknowledged ones.
Do you have some idea about it?
You can set the cell background color using property nodes of the MCL. (Read the help to learn how to set colors on complete rows/columns. There's a recent thread on this very topic.)
You can catch UI events on this MCL to handle user actions like mouse clicks.
Combine both to achieve your goal!
11-13-2020 02:14 AM
Hi GerdW,
Actually i want the entire row to be in that color. i tried, that way didnt work.
11-13-2020 02:23 AM
Hi ocan,
@truskawka wrote:
Actually i want the entire row to be in that color. i tried, that way didnt work.
Then you made something wrong.
The linked thread shows how to set the color of entire rows and even discusses how to improve speed when doing so…
11-13-2020 02:51 AM
When i tried it, The active one is being in that color but when a new row added it is changing, new row is being in that color
11-13-2020 02:55 AM
Hi ocan,
@truskawka wrote:
The active one is being in that color but when a new row added it is changing, new row is being in that color
This happens when you prepend new rows!
I see two options:
11-13-2020 03:06 AM
You can find my app attached. Can you take a look?
11-13-2020 03:16 AM
11-13-2020 04:21 AM
I do understand, but when a new row added, colored row is getting white again
11-13-2020 04:33 AM
Hi ocan,
@truskawka wrote:
I do understand, but when a new row added, colored row is getting white again
Then you need to apply colors again…
(In your VI there is no loop, so nothing happens "again" so far.)