Photon: the DeadbandType class and .constructor method

Cogent Tools Demo and Tutorials: Version 4.0
Prev | Chapter 14. History Functions | Next

# 14.19. Photon: the `DeadbandType` class and `.constructor` method

This way of creating a window by bringing a Phab file into Gamma is discussed in the Photon: the History Window section of this chapter.

       /*--------------------------------------------------------------------
        * Class:       DeadbandType
        * Description: Creates the Deadband Type window using PhabAttachWidgets.
        *------------------------------------------------------------------*/
       class DeadbandType
       {
         window;
       }

       PhabAttachWidgets (DeadbandType, anyos_assign("deadband_widgetfile"));

       /*--------------------------------------------------------------------
        * Method:      DeadbandType.constructor
        * Returns:     the root widget of a widget hierarchy
        * Description: Instantiates a DeadbandType window.
        *------------------------------------------------------------------*/
       method DeadbandType.constructor ()
       {
         .window = PhabRoot(.PhabInstantiate (t));
       }

Prev | Home | Next
Photon: the Deadband Type Window - `create_dbtype_win`, `db_options` | Up | Common: The Cascade Historian Configuration File - `hist.cfg`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.