取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 5 条)
2,944 次查看

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 项奖励
2 条消息(共 5 条)
2,935 次查看
How about this?

Dave
0 项奖励
3 条消息(共 5 条)
2,925 次查看
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 项奖励
4 条消息(共 5 条)
2,922 次查看

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 项奖励
5 条消息(共 5 条)
2,917 次查看