Mouse hover in smart and web client.

Hi all,

Is there any way to implement mouse hover on a label. I want to change the background color of a label when we mouse hover. I can see a rolloverImage property, but we do not want to use any image.

We have a label having some text and on mouse hover we need to change the background color of that label.

Please suggest any ideas for both smart and web client

Thanks
Sovan

If web client, you can css to the object with web client utils plugin.

for the smart client you need to have java code (plugin) for this.

Thanks for the replies.

david:
If web client, you can css to the object with web client utils plugin.

Not sure how to use this. If there is any code/sample which will do the same, will be a great help.

jcompagner:
for the smart client you need to have java code (plugin) for this.

I am giving it a try. Lets see if I can make this work.

I think this is a very basic functionality. Why don’t we have some inbuilt Servoy event like onMouseHover, using which we can perform some operation ? :idea:

that could become quite a performance penalty, especially in the webclient, because the code executes on the server, so the onmousehover/over must go first to the server to get the change and then back, so for a webclient this is really not doable.

Hi Johan,

jcompagner:
so the onmousehover/over must go first to the server to get the change and then back

We have a property rollOverImage , which does the same thing but only with an image. How is it working internally? Is it downloading the both the images and keeping it in client browser ?

Thanks

that easy,that is just configurable and pushed to the client at once.
the problem is more when a script need to be executed it must go to the server, so thats not such a good option for a mouse move/hover/enter event.

sovanm:
Thanks for the replies.

david:
If web client, you can css to the object with web client utils plugin.

Not sure how to use this. If there is any code/sample which will do the same, will be a great help.

viewtopic.php?f=22&t=19616&p=106173