Comments (6)
I was in the previous commit. Updating it seems to have solved the problem. I'll close it thank you.
from ofxdropdown.
Hi,
thanks for letting mi know.
I will check that, as the getAllSelected function returns a cached vector, so it is not needed to get filled each time you call it, although selectedVAlue should hold something.
from ofxdropdown.
Sorry to get back to this but this is driving me insane. Even running your example doesn't load the settings on startup. I always have to click the dropdown menu again for it to load correctly.
This: ofDrawBitmapStringHighlight(ofToString(intOptions.get()), 20, ofGetHeight() - 50);
Always return a random value until I reselect an option. Shouldn't it just load from the settings and accept the loaded value?
from ofxdropdown.
Hi @johnnyboss are you actually loading the gui settings from a file at startup? I ask because it does not happen automatically. Thus you need to explicitly call for such.
gui.loadFromFile("settings.json");//or whichever file you want to load from
Make sure you call it after you have setup all the gui and dropdowns.
from ofxdropdown.
As you can see the option loaded is 11 but on the bottom it's an undefined value. This is from your example and I added the
gui.loadFromFile("DropdownsSettings.json");
on the last line of the setup()
from ofxdropdown.
That's odd. It does not happen to me. Is that just the example? Which OF version are you using? Plattform, is ofxDropdown the newest commit?
from ofxdropdown.
Related Issues (18)
- Example for selecting a file in a folder HOT 2
- Dropdown not clickable if on top of other gui components HOT 6
- 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
- loading issue with xml file HOT 1
- 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.