Comments (6)
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.
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.
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.
I'll check at the end of July :)
from ofxdropdown.
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.
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)
- Example for selecting a file in a folder HOT 2
- The dropdown can be drawn outside of the window HOT 2
- How using dropdown inside a ofParameterGroup? HOT 2
- collapse on selection and multi selection reversed HOT 1
- how to refresh string dropdown list? HOT 6
- Type 'ofParameter<ofFile>' does not provide a call operator HOT 1
- Mouse scroll behaviour HOT 8
- selected name / id
- New version: Options position and darkened background HOT 5
- options does not disappear, if clicking an already selected option. HOT 1
- Load settings HOT 6
- Fails on Linux
- Values of the dropdown do not get loaded when calling gui.loadFromFile HOT 4
- disableHeader member missing from ofxGuiGroup HOT 5
- Compiling on Linux HOT 6
- Windows '<<': no operator found which for typedef ofxDropdown_<ofFile> HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxdropdown.