FLTK logo

STR #1140

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

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:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.