class PtTextCallback { cur_insert; // short doit; // integer end_pos; // short length; // unsigned short new_insert; // short start_pos; // short text; // string }
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.
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.
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.
An integer indicating the position of the last character in selected text.
An integer indicating the length of the text string.
A number indicating the new cursor position after any changes have been made.
An integer indicating the position of the first character in selected text.
A string that corresponds to the text in the box.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.