mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 23:42:15 +08:00
Flip the color of Fl_Choice to FL_BACKGROUND2_COLOR when there is no
scheme so the menu uses the same color as the background. Add -Dname[=value] documentation to fltk-config man page. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5485 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
.TH fltk-config 1 "Fast Light Tool Kit" "8 August 2005"
|
.TH fltk-config 1 "Fast Light Tool Kit" "24 September 2006"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
fltk-config \- script to get information about the installed version of fltk.
|
fltk-config \- script to get information about the installed version of fltk.
|
||||||
.sp
|
.sp
|
||||||
@@ -10,7 +10,7 @@ fltk-config [ --prefix
|
|||||||
] [ --version ] [ --api-version ] [ --use-gl ] [ --use-images ] [ --use-glut ]
|
] [ --version ] [ --api-version ] [ --use-gl ] [ --use-images ] [ --use-glut ]
|
||||||
[ --cc ] [ --cxx ]
|
[ --cc ] [ --cxx ]
|
||||||
[ --cflags ] [ --cxxflags ] [ --ldflags ] [ --ldstaticflags ] [ --libs ]
|
[ --cflags ] [ --cxxflags ] [ --ldflags ] [ --ldstaticflags ] [ --libs ]
|
||||||
[ -g ] [ --compile
|
[ -D\fIname[=value]\fR ] [ -g ] [ --compile
|
||||||
.I program.cxx
|
.I program.cxx
|
||||||
] [ --post
|
] [ --post
|
||||||
.I program
|
.I program
|
||||||
|
|||||||
+10
-1
@@ -149,7 +149,16 @@ int Fl_Choice::handle(int e) {
|
|||||||
case FL_PUSH:
|
case FL_PUSH:
|
||||||
if (Fl::visible_focus()) Fl::focus(this);
|
if (Fl::visible_focus()) Fl::focus(this);
|
||||||
J1:
|
J1:
|
||||||
v = menu()->pulldown(x(), y(), w(), h(), mvalue(), this);
|
if (Fl::scheme()) {
|
||||||
|
v = menu()->pulldown(x(), y(), w(), h(), 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);
|
||||||
|
color(c);
|
||||||
|
}
|
||||||
if (!v || v->submenu()) return 1;
|
if (!v || v->submenu()) return 1;
|
||||||
if (v != mvalue()) redraw();
|
if (v != mvalue()) redraw();
|
||||||
picked(v);
|
picked(v);
|
||||||
|
|||||||
Reference in New Issue
Block a user