LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

list element color

Hi,

I have a listbox and some elements in it

I want that the color of the element change when the mouse passes on it...

Could i do that ?
Thx,
Samer,
0 Kudos
Message 1 of 5
(2,363 Views)

You can use the event mouse move to detect mouse movement.

Then you read the coordinates of the mouse and calculate in which element, the mouse is over.

Then you use the property nodes "active cell" and "cell font color" to change the color.

That's it...

0 Kudos
Message 2 of 5
(2,354 Views)
How about this?

Dave
0 Kudos
Message 3 of 5
(2,344 Views)
Hi Pnt,

I dit this and the color has changed....but when the mouse is no more over, the element has the new color...

Why did this happen ?...i just want to change the color when the mouse is over but when it is not I want the initial color to be back....

Could you help me ?
Samer,
0 Kudos
Message 4 of 5
(2,341 Views)

Hi Samer,

in this case use a shift register and store the last changed row in it. If you move to a new row reset the old one.

Mike

0 Kudos
Message 5 of 5
(2,336 Views)