next up previous
Next: Field Description Up: No Title Previous: Messages to the user

Custom Dialogs

Custom dialogs are composed of buttons, icons, text fields, edit fields, check boxes, radio buttons and scrolling menus

dialog(Title, Top, Left, Depth, Width,  
   DItems, Response)

start :-
 dialog('Destruct',60,20,70,160,
 [button( 37,87,26,66,'Ok'),
  button( 40,10,20,60,'Cancel'),
  text(10,12,20,140,'Launch Missile')],
  Response).

This will lead to a dialog with the title Destruct placed at the part of the screen specified by the first 4 coordinates - it also has 2 buttons and a text field above the buttons.

  
Figure 10: The Missle box





Omer F Rana
Mon Mar 17 12:45:35 GMT 1997