STR #1492

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 ]

STR #1492

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:4 - High, e.g. key functionality not working
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:Fl_Progress is not completely filling when schemes are used
Version:1.1.7
Created By:eastern_strider
Assigned To:matt
Fix Version:1.1-current (SVN: v5540)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text top right image
 
#1 eastern_strider
22:51 Nov 10, 2006
When schemes are used (i.e., plastic and gtk+), Fl_Progress is not filling completely despite value() reaches maximum(). A small white space is remaining. This problem does not exist if schemes are not used.

Although I've noticed this problem in linux, I suspect this could be general problem for all OS.
 
The following code illustrates the problem:

#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Progress.H>
#include <FL/Fl.H>

int main ()
{
  Fl::scheme ("gtk+");
  Fl_Double_Window *win = new Fl_Double_Window (400, 400, "Test");

  Fl_Progress *pro = new Fl_Progress (100, 100, 100, 30, "Scanning...");
  pro->selection_color (FL_BLUE);

  pro->maximum (3);
  pro->minimum (0);
  pro->value (3);

  Fl::check ();

  win->show ();
  return Fl::run ();
}
 
 
#2 matt
12:45 Nov 12, 2006
Fl_Progress was using the wrong width to calculate progress. Also, progress bars were not drawing inactive when set at 0.  
bottom left image   bottom right image

Return to Bugs & Features ]

 
 

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