| [ Return to Bugs & Features | Post Text | Post File | SVN ⇄ GIT | Prev | Next ]
STR #3351
Application: | FLTK Library |
Status: | 5 - New |
Priority: | 1 - Request for Enhancement, e.g. asking for a feature |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | optionally changing Fl_Choice's dropdown behavior |
Version: | 1.4-feature |
Created By: | djcj |
Assigned To: | Unassigned |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]No files
Trouble Report Comments:
[ Post Text ]
|
#1 | djcj 14:58 Nov 08, 2016 |
| Can you make it possible to change the way how an Fl_Choice() menu will drop down? I prefer it the way how it works in Fl_Menu_Button(), but to get the same behavior in Fl_Choice() I must patch the source:
--- a/src/Fl_Choice.cxx +++ b/src/Fl_Choice.cxx @@ -186,13 +186,13 @@ int Fl_Choice::handle(int e) { 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(), h(), 0, 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(), h(), 0, this); color(c); } if (!v || v->submenu()) return 1; | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |