Circle fill color in, FLTK

Hi,
I installed FLTK 1.3.X (from here http://www.fltk.org/index.php ) on my visual studio 2012 compiler and use PPP book for programming (this: http://www.stroustrup.com/Programming/PPP1.html ).
My problem is about filling a Shape in. For example please observe this code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <Simple_window.h>

using namespace Graph_lib;
int main()
{
	Simple_window win(Point(100,100), 1000, 600, "Binary_tree");
	Graph_lib::Circle c(Point(200,200),50);
	c.set_color(Color::red);
	c.set_fill_color(Color::blue);
	Graph_lib::Ellipse e(Point(100,100),50,30);
	e.set_color(Color::blue);
	e.set_fill_color(Color::red);
	Graph_lib::Rectangle r(Point(250,200),Point(350,300));
	r.set_color(Color::green);
	r.set_fill_color(Color::red);
	win.attach(r);
	win.attach(e);
	win.attach(c);
	win.wait_for_button();
}


When I run the program, All three Shapes are drawn but only the Rectangle is filled in!
Why?
set_color works for the three and apparently the set_fill_color is defined for all Shapes and it too should work but why it doesn't work for Circle and Ellipse?

This is the .CPP and .h files (http://www.stroustrup.com/Programming/Graphics/ )




No idea!?
I'm not all that familiar with FLTK. And judging from the lack of response... neither is anyone else on the boards.

Maybe you'd have better luck with this question on the FLTK boards?
Thank you for your reply anyway.
Topic archived. No new replies allowed.