PhInitDrag

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

# `PhInitDrag`

`PhInitDrag` -- starts a drag.

## Syntax

    PhInitDrag (rid, flags, rect, boundary?, input_group?, min?, max?, step?)

## Arguments

`rid`

  The region id of `rect` and `boundary`.

`flags`

  Options: track_left, track_right, track_top, track_bottom, track_drag, drag_track, key_motion, drag_nobutton control drag behavior.

`rect`

  A PhRect area to be dragged.

`boundary`

  A PhRect boundary of the dragging operation.

`input_group`

  The input group number (optional).

`min`

  The PhDim of the minimum rectangle size (optional).

`max`

  The PhDim of the maximum rectangle size (optional).

`step`

  A PhDim for the granularity of the drag (optional).

## Returns

0 on success, or -1 on error.

## Description

This function starts a drag of the object defined by `rect`, within the `boundary`. Permissible `flags` include: drag_track, track_left, track_right, track_top, track_bottom, track_drag.

## See Also

In Photon documentation: PhInitDrag, Dragging in the Events chapter of the Progammer's Guide.

Prev | Home | Next
`PhEmitEvent` | Up | `PhMoveCursor`

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