This example shows how to create Fl_Counter widget.
1 #pragma package ".." 2 3 #include "chfltk.h" 4 #include <stdlib.h> 5 6 int main(int argc, char *argv[]) 7 { 8 Fl_Window *window = new Fl_Window(250, 60); 9 Fl_Counter *counter = new Fl_Counter(10, 10, 230, 20, "Hello World"); 10 window->end(); 11 window->show(argc, argv); 12 Fl::run(); 13 exit(1); 14 return 0; 15 }