PtTextCallback

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

# `PtTextCallback`

`PtTextCallback` -- text change callback information.

## Synopsis

    class PtTextCallback
    {
        cur_insert;    // short
        doit;          // integer
        end_pos;       // short
        length;        // unsigned short
        new_insert;    // short
        start_pos;     // short
        text;          // string
    }

## Description

This class holds information from `Pt_CB_MODIFY_CHANGED`, `Pt_CB_MODIFY_VERIFY`, `Pt_CB_MOTION_NOTIFY`, `Pt_CB_MOTION_VERIFY`, and `Pt_CB_TEXT_CHANGED` callbacks. These callbacks are generated when text is entered in a PtText or PtComboBox widget.

Also see PtTextCallback, PtText, and PtComboBox in the Photon documentation.

## Instance Variables

cur_insert

  A number indicating the position of the cursor in the text string. 0 is to the left of the first character, 1 is to the left of the second character, etc.

doit

  A number indicating whether a modification will be applied. 0 means no, the cursor will remain at `cur_insert`. Any nonzero value means yes, the cursor will move to `new_insert`.

end_pos

  An integer indicating the position of the last character in selected text.

length

  An integer indicating the length of the text string.

new_insert

  A number indicating the new cursor position after any changes have been made.

start_pos

  An integer indicating the position of the first character in selected text.

text

  A string that corresponds to the text in the box.

## Associated Classes

`PtText`, `PtComboBox`, `PtCallbackInfo`

Prev | Home | Next
`PtTerminalSizeChange` | Up | `PtTreeCallback`

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