> void DataGenerator::StartCB_i(Fl_Widget* wgt, void* v)
> {
> Fl_Button* button = (Fl_Button*)w;
Having created this "button" widget, it might be more portable to use it
in subsequent refs, rather than calling startBtn explicitly?
Perhaps that is what you intended?
> if(state)
> {
> state = false;
> if(startBtn->label() == "Continue")
> {
> startBtn->label("Stop");
> Have i over egged the pudding here? Is there a more
> recommended or 'safer' solution?
I didn't try to compile the code, but it looks OK I think. This is
probably as good a way as any other to get to the correct callback
method, so should be fine.
I assume you tested this and it worked OK for you?
Though I would always derive my "outer" widgets from fltk widgets, if it
were me...
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