# Is there a way to tell if an element is being hovered in G4P?

**URL:** https://discourse.processing.org/t/is-there-a-way-to-tell-if-an-element-is-being-hovered-in-g4p/14897
**Category:** Libraries
**Created:** [October 23, 2019, 12:58pm UTC](https://discourse.processing.org/t/is-there-a-way-to-tell-if-an-element-is-being-hovered-in-g4p/14897 "2019-10-23T12:58:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![carbonne](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@carbonne](https://discourse.processing.org/u/carbonne)
#### Post date: [October 23, 2019, 12:58pm UTC](https://discourse.processing.org/t/is-there-a-way-to-tell-if-an-element-is-being-hovered-in-g4p/14897/1 "2019-10-23T12:58:27Z")

</div>

I’m using this amazing library for the first time and the only thing it doesn’t have is a menu.  
So I’m trying to build my own menu using the elements provided by the library and I’m wondering if there is a simple way that this library can tell when an element like a button is being hovered.  
When a button is clicked the mouse has to be over the button anyway.  
I’ve been going through the docs but haven’t found the solution.

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [October 23, 2019, 10:58pm UTC](https://discourse.processing.org/t/is-there-a-way-to-tell-if-an-element-is-being-hovered-in-g4p/14897/2 "2019-10-23T22:58:43Z")

</div>

no idea, but for a menu try  
[Show an desktop menu bar](https://discourse.processing.org/t/show-an-desktop-menu-bar/9651/2) 🙂

---

<div class="post-metadata">

### Author: ![carbonne](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@carbonne](https://discourse.processing.org/u/carbonne)
#### Post date: [October 24, 2019, 9:33am UTC](https://discourse.processing.org/t/is-there-a-way-to-tell-if-an-element-is-being-hovered-in-g4p/14897/3 "2019-10-24T09:33:16Z")

</div>

I didn’t know you could do that. 😄  
Thanks a lot!
