FLTK 1.3 svn up to date version... I changed Fl_Choice.cxx handle method :
case FL_PUSH: if (Fl::visible_focus()) Fl::focus(this); J1: if (Fl::scheme() || fl_contrast(textcolor(), FL_BACKGROUND2_COLOR) != textcolor()) { //v = menu()->pulldown(x(), y(), w(), h(), mvalue(), this); v = menu()->pulldown(x(), y(), w(), 0, mvalue(), this); } else { // In order to preserve the old look-n-feel of "white" menus, // temporarily override the color() of this widget... Fl_Color c = color(); color(FL_BACKGROUND2_COLOR); //v = menu()->pulldown(x(), y(), w(), h(), mvalue(), this); v = menu()->pulldown(x(), y(), w(), 0, mvalue(), this); color(c); } if (!v || v->submenu()) return 1; if (v != mvalue()) redraw(); picked(v); return 1; (changed the calls to pulldown) and this gives an acceptable behaviour to my opinion. Regards, Mathieu > > > I'm using a Fl_Choice widget which is located at the very=20 > > bottom of a fullscreen window. > >=20 > > The issue is that when the list is showing up, it is shown=20 > > "downward" and thus not in the window which makes it=20 > > practically unusable. Is there a way to change this behaviour ? > >=20 > > I guess I have to go directly in Fl_Choice code... Where=20 > > should I look ? > > Which version of fltk and which host platform? > > There was a bug in fltk-1.3.something that was computing the screen > boundaries incorrectly and then positioning the popped up menus badly - > much like you describe. > > This is fixed (I believe) in more recent tarballs, so you could try a > recent build - also I think fltk-1.1 got this right. > > Or...? > > > > SELEX Galileo Ltd > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS= > 14 3EL > A company registered in England & Wales. Company no. 02426132 > ******************************************************************** > This email and any attachments are confidential to the intended > recipient and may also be privileged. If you are not the intended > recipient please delete it from your system and notify the sender. > You should not copy it or use it for any purpose nor disclose or > distribute its contents to any other person. > ******************************************************************** > _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk