I decided to make a custom button class so that I could reduce the amount of 
code in my project.  I was able to create the button but when I click on the 
button, the callback isn't being called.  Before I made the custom button class 
the button worked fine.  Below is an excerpt from my code.

class newButton : public Fl_Button
{
   Fl_Button *myButton;
   public:
   newButton(int x, int y, int w, int h, const char * l = 0):Fl_Button(x, y, w, 
h, l)
{
   myButton = new Fl_Button(x, y, w, h, l);
   myButton->box(FL_GTK_ROUND_UP_BOX);
   myButton->color((Fl_Color)24);
   myButton->selection_color((Fl_Color)24);
   myButton->labelcolor(FL_WHITE);
   myButton->labelfont(1);
}
};

newButton accept(687, 652, 75, 25, "Accept");
accept.callback(accept_cb);

The callback is supposed to open a new window and close the current window but 
it isn't doing anything at the moment.

Any help would be appreciated, thanks.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to