pupil-labs / pyglui

cython powered OpenGL gui that works with glfw
MIT License
30 stars 20 forks source link

Allow on mouse wheel in drop down list. #42

Closed cpicanco closed 7 years ago

cpicanco commented 7 years ago

Problem

Drop down element is static. If it is full of stuff (like in the pupil player/capture plugin list) the user will not be able to select anything beyond the visible items (of course).

Solution 1 (fake)

First I thought a tab ui element would be great. However, it is too complicated and does not solve the visibility problem for the tabs themselves: screenshot from 2016-10-26 13 40 08

Solution 1 (For sure)

Allowing sliding (on mouse wheel) of the items in the drop down is enough and solves the visibility problem definitely. Prepending fixed names to the items with a code and sorting the list allow organizing things prettier.

mkassner commented 7 years ago

Hi!

I think scrolling the dropdown would be nice. A bit of work to implement though.

Maybe a simple fix is to use a scrolling menu for the player main menu?

cpicanco commented 7 years ago

Yes, it would be a simpler fix!

mkassner commented 7 years ago

ok fixed in player.