ofxDatGui
ofxDatGui copied to clipboard
ofxDatGuiDropdown on bottom
Hello, i need big Dropdown button in buttom of my app for clicking with fingers I write this code for testing but
std::vector<std::string> options = {"ONE", "TWO", "THREE", "FOUR"};
ofxDatGui *guiTL = new ofxDatGui(ofxDatGuiAnchor::TOP_LEFT);
guiTL->addDropdown("My list", options);
ofxDatGuiTheme *myTheme = new ofxDatGuiTheme(true);
myTheme->stripe.width = 4.2f;
myTheme->stripe.dropdown = ofColor::fromHex(0x00FF00);
myTheme->layout.height = 52.0f;
ofxDatGui *guiBL = new ofxDatGui(ofxDatGuiAnchor::BOTTOM_LEFT);
guiBL->setTheme(myTheme);
ofxDatGuiDropdown *myDropdown = guiBL->addDropdown("Other list", options);
ofxDatGui *guiTR = new ofxDatGui(ofxDatGuiAnchor::TOP_RIGHT);
guiTR->addButton("My bouton");
ofxDatGui *guiBR = new ofxDatGui(ofxDatGuiAnchor::BOTTOM_RIGHT);
guiBR->setTheme(myTheme);
guiBR->addButton("Other bouton");
screen result not match, see screenshot https://ibb.co/PWHksGj if i click one time on "Other list" the size become correct
Christophe
What happens if you don't use custom theme settings? Does the alignment get corrected?