STR #2145

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

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:FL_ROUND_UP_BOX+Fl_Button+"gtk+" scheme: focus box draws outside widget
Created By:greg.ercolano
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 greg.ercolano
21:26 Feb 08, 2009
#2 greg.ercolano
22:30 Jul 25, 2015
bottom left image   bottom right image

Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
#1 greg.ercolano
21:26 Feb 08, 2009
Attached foo.cxx program shows the focus box is drawing its corners outside of the widget, living 'digital drit' behind on the window background.

Probably the focus_box code needs to bring in the left and right edges a bit if the box() type is either of these:


Those seem to be the only rounded boxes that have UP/DOWN versions affected by this problem, as only box types with an up/down option make them useful for buttons, and thus susceptible to focus boxes.

I think FLTK uses an internal array to account for box border widths; maybe a similar technique can be used to recommend focus box sizing..?
#2 greg.ercolano
20:25 Apr 22, 2009
Possibly the "focus box" can be drawn curved using the same algorithm that draws the curved box, so that the focus box stays within the curved area.  
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 ''.