STR #1459

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

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:Example Programs
Summary:Hard-coding of Fl::scheme() in demo programs
Created By:ianmacarthur
Assigned To:mike
Fix Version:1.1-current (SVN: v5519)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files

Trouble Report Comments:

Name/Time/Date Text top right image
#1 ianmacarthur
12:13 Oct 05, 2006
Trivial thought - I was using the demo launcher program to quickly browse how the widgets look under the different schemes:

demo -s [gtk+ | plastic]

But... A few of the test apps have the scheme hard-coded, so they do not honour the command line/environment setting that they inherit from the demo launcher.

I wonder if they ought to be "adjusted" so that they do, so newcomers can quickly see how the widgets look under each style?

In short, input_choice is hard-coded to plastic (as is blocks, but that's more of a complete app than a simple demo...)

I *suppose* all the apps really ought to call Fl::scheme(NULL); so they pick up the setting - but I guess that's the default behaviour anyway?
#2 greg.ercolano
19:50 Oct 05, 2006
Oops, that input_choice demo having "plastic" set is my fault; when I submitted Fl_Input_Choice as a core widget, I included that test program as part of the patch submission, but I guess I forgot to remove the scheme setting.

Core folks: feel free to rip that line out ;)
#3 matt
05:23 Oct 06, 2006
Good point. I'll see if there is some nice way to set the scheme only if there is none set by the user.  
#4 greg.ercolano
10:13 Oct 06, 2006
Ya, I think my demo program also doesn't call show(argc,argv);, though it probably should, as that would handle the FLTK style command line options like "-scheme <name>" (according to what I see in Fl_arg.cxx)  
#5 mike
20:12 Oct 10, 2006
I've done one better - all of the demo programs now use the scheme and the demo program itself provides a chooser for the scheme.  
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 ''.