DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Creating an SCO Visual Tcl program -- an overview

Coding the Main routine

The Main routine is the main part of the program:

  #
  # Main
  #

set app [VtOpen Example]

set mainform [VtFormDialog $app.form -title "Kill"]

CreateMenu $mainform CreateList $mainform

VtShow $mainform VtMainLoop

  1. VtOpen(VTCL) establishes the connection with the SCO Visual Tcl server.

  2. VtFormDialog(VTCL) creates the first form of the program.

  3. CreateMenu and CreateList fill in the form with widgets.

  4. VtShow(VTCL) displays the form.

  5. VtMainLoop(VTCL) gives control of the program to the user, and the program waits for events.
The following sections explore each line of Main in detail.
Next topic: Establishing a connection to the server (VtOpen)
Previous topic: Outline of kill program procedures

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003