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.


Next topic: Getting the process ID (MenuKillCB)
Previous topic: VxSetVar example

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