This function makes a circle with buttons. 

I want to know if there is a function to make the numbers
for the clock 

and makes the lines going inward for the seconds            

// open brace: makes it a definition

        double circle_pi = 3.14;

            // This can
be any number, the point is that we are generating 

            // the
buttons automatically

            for (double
i = 0 ; i<(2*circle_pi); i+=(2*circle_pi/60))

            {

            My_Button*
tempButton = new My_Button(Point

                        (x_max()/2+(200*cos(i)),


               
y_max()/2+(200*sin(i))), 12, 12, "0", cb_button);

                        attach(*tempButton);

                        v1.push_back(tempButton);

                        v2.push_back(tempButton->

                        get_fltk_button_address());

            }_
        
         
        
        








        


        
        


      

[Non-text portions of this message have been removed]

Reply via email to