PtHit

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

# `PtHit`

`PtHit` -- searches a container for a widget.

## Syntax

    PtHit (container, n, rect)

## Arguments

`container`

  A PtContainer widget.

`n`

  The widget number to search for.

`rect`

  An area in the form of a PtRect widget.

## Returns

A widget on success, else nil.

## Description

This function searches the `container` for the `n`th widget that intersects the rectangle `rect`. The `rect` will be relative to the basic widget canvas of the `container`. This function ignores unrealized or procreated widgets.

## See Also

In Photon documentation: PtHit.

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

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