#include <stdio.h>
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Light_Button.H>

void button_event(Fl_Widget *w, void *a)
{
	Fl_Light_Button *lb = (Fl_Light_Button*)w;
	static char *labels[] = {"Start", "Stop"};
	lb->label(labels[lb->value()]);
}

int main(int argc, char **argv) {
	Fl_Window *window = new Fl_Window(200,130);
  
	Fl_Light_Button *b1 = new Fl_Light_Button(20, 20, 80, 25, "Start");
	b1->callback(button_event, 0);

	window->end();
	window->show(argc, argv);
	return Fl::run();
}
