Ordering Pizza ... 3

void main(void)
{
  window w;
  rect r;

  w = newwindow("Pizza", rect(0,0,400,400), StandardWindow);

  r = rect(10,10,120,25);

  newlabel("Name:", r, AlignRight);               r.x += 130;
  name  = newfield(NULL, r);                      r.y += 30;
  r.x = 10;

  newlabel("Phone:", r, AlignRight);              r.x += 130;
  phone = newfield(NULL, r);                      r.y += 30;
  r.x = 10;

  newlabel("Address:", r, AlignRight);            r.x += 130;
  r.height = 75;
  address = newtextbox(NULL, r);                  r.y += 80;
  r.height = 25;
  r.x = 10;

  r.y += 10;
  newlabel("Sauce:", r, AlignRight);              r.x += 130;
  tomato   = newradiobutton("Tomato", r, choose); r.y += 30;
  barbeque = newradiobutton("BBQ", r, choose);    r.y += 30;
  check(tomato);
  r.x = 10;

  r.y += 10;
  newlabel("Toppings:", r, AlignRight);           r.x += 130;
  ham       = newcheckbox("Ham", r, NULL);        r.y += 30;
  mushrooms = newcheckbox("Mushrooms", r, NULL);  r.y += 30;
  olives    = newcheckbox("Olives", r, NULL);     r.y += 30;
  capsicum  = newcheckbox("Capsicum", r, NULL);   r.y += 30;
  r.x = 50;

  r.y += 10;
  newbutton("Order Pizza", r, place_order);       r.x += 130;
  newbutton("Reset Form", r, reset_form);

  show(w);
  mainloop();
}