>         record_toggle->box(FL_UP_FRAME);
>         record_toggle->down_box(FL_DOWN_FRAME);
>         record_toggle->callback((Fl_Callback*)record_toggle_cb);
>       } // Fl_Button* record_toggle
> 

> Produces a button with "Stop recording" and "Start recording" 
> drawn over the top of each other when pressed.
> 
> Any ideas?

Yes, I'm full of ideas - but mostly they are rubbish.

However, in this instance, I'd suggest that the mistake is you have used
FRAME types rather than BOX types to define your widget appearance.

A FRAME type literally only updates its frame (as the name might imply)
so the label area is not necessarily refreshed on each redraw. Hence the
labels overlaying each other.

Change your boxtypes to the equivalent BOX names and all should be well.


> // "$Id: Fl.cxx 5654 2007-02-02 13:52:37Z matt $"

Hmm, why did you include this line?
Is this meant to indicate which version of fltk you are using?
If so, I'd have to say it doesn't really help - since the files are
stored in svn, and svn only updates the revision codes in a file when
the file changes, meaning that r5654 of Fl.cxx doesn't actually narrow
the field all that much.

If you want to determine the release standard of an svn tree, you need
to use:

   svnversion .

And it will print the revision state of your copy of the repository.
Also, for recent builds, some indication of whether it is fltk-1.1 or
fltk-1.3 would be handy, though I'd guess that a file from 2007 is
probably fltk-1.1?




SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to