Text Controls; Pegprompt - Casio ClassPad 300 Programming Manual

Sdk programming guide
Hide thumbs Also See for ClassPad 300:
Table of Contents

Advertisement

Text Controls

PEG also provides several options for displaying text to the user as well as retrieving text
input from the user. This section will show you how to create each of these text controls.
Note: In most of these cases there is more than one constructor for each object. Refer to
the ClassPad 300 SDK Reference Guide to see details on all available constructors.

PegPrompt

Class Name
Derived From
PegPrompt
PegThing/
PegTextThing
PegPrompt is a text display object. PegPrompt can be drawn with several different border
styles, and can be updated dynamically for interactive updates or real-time information
display. PegPrompt does not support user editing.
PegPrompt will by default send PSF_CLICKED signals to its parent object if the prompt
ID is non-zero. By default PegPrompt objects cannot be selected, and do not send signals.
The following code demonstrates how to create a PegPrompt:
PegPrompt *pp = new PegPrompt(2, 0, "Hello everybody");
AddR(pp);
Which simply adds the given text to your window:
Styles
FF_NONE
FF_THIN
TJ_RIGHT
TJ_LEFT
TJ_CENTER
TT_COPY
AF_TRANSPARENT
AF_ENABLED
Signals
PSF_SIZED
PSF_FOCUS_RECEIVED
PSF_FOCUS_LOST
PSF_KEY_RECEIVED
PSF_CLICKED
71

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents