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