GithubHelp home page GithubHelp logo

Comments (6)

roymacdonald avatar roymacdonald commented on August 27, 2024 1

that has to do with the event priority of the whole gui. it gets set when the mouse events are registered.
even when you can change the default event priority for ofxGui it is stored as an enum type instead of an int, and the default is already the lowest.
So, a work around would be to listen to each dropdowns dropdownWillShow_E event, and call unregisterMouseEvents(); on the gui that gets hidden by the dropdown. Then you also listen to the dropdown's dropdownHidden_E so when it gets hidden you call registerMouseEvents(); on the gui that gets hidden by the dropdown.
There is a work around to this by setting the events priorities for the dropdown to be lower (happens first) but it is more cumbersome. I will add it to the addon, so it is handled internaly.

from ofxdropdown.

roymacdonald avatar roymacdonald commented on August 27, 2024 1

Hey! Sorry it took me so long to add this feature. Now it is implemented along with several other. Check the ofxDropdown.h file for the new functions. All have inline documentation.
As for the feature you ask for to work you only need to update to the newest version of this addon.

from ofxdropdown.

roymacdonald avatar roymacdonald commented on August 27, 2024

Hi. A just pushed an update that should deal with this issue automatically.
can you check if it works for you? It does work for me.

from ofxdropdown.

hamoid avatar hamoid commented on August 27, 2024

I'll check at the end of July :)

from ofxdropdown.

hamoid avatar hamoid commented on August 27, 2024

Hi! Back updating this project...

I think there are still some issues. I can see through the dropdown options and mouse events go to whatever is behind the dropdown.

dropdown.mp4

from ofxdropdown.

roymacdonald avatar roymacdonald commented on August 27, 2024

Hey, Thanks for letting me know. I now realized why the previous "fix" I made did not work.
I am using this addon a lot so I will get it fixed soon.

from ofxdropdown.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.