Support a hovering effect on a button

Important: posts that do not use this template will be ignored or closed.

Before posting

  • Get familiar with Markdown to format and structure your post
  • Be sure to update lvgl from the latest version from the master branch.
  • Be sure you have checked the relevant part of the documentation. We will not respond in detail to posts where you haven’t read the relevant documentation.
  • If applicable use the Simulator to eliminate hardware related issues.

Delete this section if you read and applied the mentioned points.


when i move the mouse on the button but not press its there a way that the button know its was focus

What MCU/Processor/Board and compiler are you using?


What do you want to achieve?

when i move mouse on the button the button know that it was foucs and show some text to let user know what the button work for

What have you tried so far?

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

If I understood well you mean “hovering” (in HTML/CSS terminology).

It it is not supported right now, although I’m considering to add it for a while.

I’m moved this topic to “Feature request” category.
Let’s if other people are also interested in it.

I’m not sure that it makes sense to add hovering, mainly because I think most devices using LittlevGL are either:

  • Using a keypad-like input device (in which case we already have the ability to highlight focused objects), or
  • Using a touchscreen (in which case users won’t be able to hover).

Actually I postponed this feature because of it as well.
But let’s see if others are interested in this feature too.

may be its can be a selectable feature,honestly,when the mouse move ,should caculate the coord,it cost much

I’m pretty sure that most devices with LittlevGL have some form of touch-based input rather than a mouse.