On 11/13/11 23:34, Mathieu Peyréga wrote:
> I'm using a Fl_Choice widget which is located at the very bottom of a 
> fullscreen window.
> The issue is that when the list is showing up, it is shown "downward" and 
> thus not in the window which makes it practically unusable. Is there a way to 
> change this behaviour ?
> I guess I have to go directly in Fl_Choice code... Where should I look ?

        Assuming its not a bug..

        When the Fl_Choice menu runs off the edge of the screen,
        you still should be able to move the mouse to the screen
        edge, and it should auto-scroll.

        If it's not, let us know which platform and which specific
        version of fltk. (fltk 1.3.0, or 1.3.x svn current)

        The Fl_Choice widget is unusual in that when you click on it,
        it tries to position the menu such that the currently
        chosen option is under the mouse when the menu opens.
        This means the menu may have to roll off the screen edge
        in order to do that, and is why it supports auto-scrolling.

        Other menus like Fl_Menu_Button, Fl_Menu_Bar, etc. are able
        to open menus to avoid screen edges when possible because
        there's no restrictions on the menu's position when it opens.
_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to