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(1vtcl) establishes the connection with the SCO Visual Tcl server.

  2. VtFormDialog(1vtcl) creates the first form of the program.

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

  4. VtShow(1vtcl) displays the form.

  5. VtMainLoop(1vtcl) gives control of the program to the user, and the program waits for events.
The following sections explore each line of Main in detail.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004