On 07/25/16 09:04, Graham Reitz wrote:
> Hello,
>
> What am I missing in the following code?
> I have been unable to get a green filled box to appear in the window.
Start with the docs for 'Drawing Things In FLTK':
http://www.fltk.org/doc-1.3/drawing.html
Note all drawing functions are /only/ allowed within the draw()
method of a derived class.
You might want to start with a simple example from the cheat page
that shows how to draw an 'X':
http://seriss.com/people/erco/fltk/#FltkX
..you can of course replace the line drawing functions with an fl_rectf() call,
and go from there.