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

Reviewing the Main routine

  #
  # Main
  #

set app [VtOpen Example]

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

CreateMenu $mainform CreateList $mainform

VtShow $mainform VtMainLoop

So far, this chapter has explained how Main:

  1. calls VtOpen(VTCL) to establish a connection to the server

  2. calls VtFormDialog(VTCL) to create the first form

  3. passes the handle of this form dialog to CreateMenu and CreateList
Next, call VtShow(VTCL) to display the form on the screen, and call VtMainLoop(VTCL) to hand control to the user.

The next several sections discuss the callbacks used by the program.


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005