PtAddResource

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

# `PtAddResource`

`PtAddResource` -- adds a resource.

## Syntax

    PtAddResource (resnum, name)

## Arguments

`resnum`

  An integer resource number.

`name`

  A character string resource name.

## Returns

The `resnum`.

## Description

This function adds new resources. The first time a resource is added, an array is created internally to catalog it. Each additional resource is cataloged in the array. If the passed `resnum` already belongs to an existing resource, the same `resnum` is returned, but `PtAddResource` leaves the existing resource intact and does not add anything.

Prev | Home | Next
Widget Functions | Up | `PtAttachCallback`

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