G4P GDropList problems
in
Contributed Library Questions
•
2 months ago
Hi!
I was trying to make some droplists and in my code they don't work as expected - when chose and click item drop list freezes it fires drop list event, but becomes frozen until I click on drop down button again. To my mind code doesn't differs from example code which works perfectly - so I'm confused. My system Win7 pro 64bit, Processing 2.0.1 32bit.
I was trying to make some droplists and in my code they don't work as expected - when chose and click item drop list freezes it fires drop list event, but becomes frozen until I click on drop down button again. To my mind code doesn't differs from example code which works perfectly - so I'm confused. My system Win7 pro 64bit, Processing 2.0.1 32bit.
Any ideas what's wrong?
Best regards,
Hakko
- import g4p_controls.*;
- String[] item;
- GDropList dplMarketGroups;
- void setup()
- {
- background(255);
- size(800, 600);
- fill(170);
- item = new String[] {"aaaa", "bbbb","ccccc","ddddd"};
- dplMarketGroups = new GDropList(this, 10, 10, 50, 100, 4);
- dplMarketGroups.setItems(item, 0);
- }
- void draw()
- {
- }
- void handleDropListEvents(GDropList list, GEvent event)
- {
- if (list == dplMarketGroups)
- {
- println(dplMarketGroups.getSelectedIndex());
- }
- }
1