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.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005