| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #1140
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | Fl_Menu_Button doesn't appear pressed (w/fix) |
Version: | 1.1-current |
Created By: | Sadysta |
Assigned To: | mike |
Fix Version: | 1.1-current (SVN: v4746) |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#1 | Sadysta 02:39 Jan 08, 2006 |
| Add to Fl_Menu_Button.cxx:
Static global variable: static Fl_Menu_Button *pressed_menu_button_ = 0;
In Fl_Menu_Button::popup(): { const Fl_Menu_Item* m; ! pressed_menu_button_ = this; ! redraw(); if (!box() || type()) { m = menu()->popup(Fl::event_x(), Fl::event_y(), label(), mvalue(), this); } else { m = menu()->pulldown(x(), y(), w(), h(), 0, this); } picked(m); ! pressed_menu_button_ = 0; ! redraw(); return m; }
In Fl_Menu_Button::draw() { ... ! draw_box (pressed_menu_button_ == this ? fl_down(box()) : box(), color()); ... } | |
|
#2 | mike 18:21 Jan 14, 2006 |
| Fixed in Subversion repository. | |
[ Return to Bugs & Features ]
|
| |