FLTK logo

STR #30

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 #30

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:menu shortcut bugs
Version:1.1-current
Created By:mgrinberg.yahoo
Assigned To:mike
Fix Version:1.1.4
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#1 mgrinberg.yahoo
06:16 May 09, 2003
I've found two bugs that relate to menu shortcuts.

First, the shortcut strings that appear to the right of the menu item are displayed using the default font and size, regardless of what has been set in the Fl_Menu_Item structure. To fix this I changed Fl_Menu.cxx lines 357 and 358 from:
    Fl_Font f = button ? button->textfont : FL_HELVETICA;
    fl_font(f, button ? button->textsize : FL_NORMAL_SIZE);
to:
    Fl_Font f = (Fl_Font)m->labelfont_;
    fl_font(f, m->labelsize_);

Second bug, on Windows and Mac (haven't tested on Unix) when the space bar is used as shortcut, an invisible space character was being displayed. I think it makes sense to show the word "Space" in that case so I added an entry into the table array in fl_shortcut.cxx line 80:

static Keyname table[] = {
  {' ', "Space"},
  {FL_BackSpace, "Backspace"},
   ...

Thanks,

Miguel

 
 
#2 mike
08:26 May 20, 2003
Thanks for the changes; they will be applied to CVS in the near future for the 1.1.4 release.  
 
#3 mike
18:50 May 20, 2003
Commited to CVS for 1.1.4.  
     

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'.