Write an X lib program with the following descriptions:CS476/576
Assignment #2
Due Midnight, Wednesday Oct 2, 2002
NAME
drawCircles - A simple circle drawing programSYNOPSIS
drawCirclesDESCRIPTION
Initially, the interface looks like the one given in Fig (A) with a drawing area and a QUIT button. If the user clicks at position (x,y) inside the drawing area it draws:
The drawing area is
always cleared before drawing another circle and lines.
If the user clicks on the QUIT
button, the QUIT button is replaced with two buttons: OK
and Cancel
as shown in Fig (B). During that phase, if
the user clicks inside the drawing area, the program rings
a bell and does not draw as usual.
If the user clicks on the Cancel
button, the program returns back to normal operation as shown in
Fig (A). If the user clicks on the OK button, the program exits.
Fig (A)
Fig (B)
See sample solution under: /home/cs476/public_html/fall02/assignments/a2/wahab/drawCircles