STR #3461

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 | Post Text | Post File ]

STR #3461

Application:FLTK Library
Status:5 - New
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:Follow up to: [RFE] STR #2927: Please make 'LEADING' constant in FL_Menu.cxx an alterable API method
Version:1.4-feature
Created By:chris
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size top right image
 
#1 chris
01:27 Apr 01, 2018
menu_linespacing.diff
1k
 
bottom left image   bottom right image

Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
 
#1 chris
01:27 Apr 01, 2018
(STR 2927 is already closed, so filing a new one)

I was trying this new feature with the 'menubar' test program an notice that with higher values of menu_linespacing (say from about 20 on) it can be cleary seen, that the top and bottom menu entries are cut off early.

Attaching a patch that I somehow figured out.

I think one of the 'LEADING' instances was wrong always and should have been just '4'.
The other change is the correction of the Y offset from where the menu item are drawn (I found this by trial and error, can't say if it is really 'correct'.

Related:
I was wondering, if the menu_linespacing could not be a property of the menu too (like it is with scrollbar_width), so it can be changed individually for a single menu, not just globally.
 
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]

 
 

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