PtInit

Gamma/Photon: Using Gamma™ with the Photon microGUIŽ, Version 4.0
Prev |  | Next

# `PtInit`

`PtInit` -- initializes the widget library.

## Syntax

    PtInit (name)

## Arguments

`name`

  The name of the Photon server to attach to. If nil is passed then attach to the local Photon server.

## Returns

t if the attachment was successful, otherwise nil.

## Description

This function initializes the widget library. It must be called before any Photon functions are used in your application.

## Example

To attach to the local Photon server:

        Gamma> PtInit (nil);
        t

To attach to a Photon server running on node 5:

        Gamma> PtInit ("//5/dev/photon");
        t

See the introduction of the Photon Functions chapter (Tutorial One) in the Cogent Tools Demo and Tutorials book for an example of this function used in context.

## See Also

In Photon documentation: PtInit.

Prev | Home | Next
`PtHold`, `PtRelease` | Up | `PtInitDrag`

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