NumPad
Bildschirm-Klasse für eine Numerische Tastatur. [Mehr ...]
Vererbung
| Basisklassen(n) |
|
abgeleitete Klassen |
|
|
NumPad |
|
Attribute
public:
| Attribut |
Typ |
Beschreibung |
| escEvent |
eventNr_t |
|
| okEvent |
eventNr_t |
|
| title |
UglText |
|
protected:
| Attribut |
Typ |
Beschreibung |
| btnBack |
UglButton |
|
| btnClear |
UglButton |
|
| btnEsc |
UglButton |
|
| btnOk |
UglButton |
|
| btn[12] |
UglButton |
|
| txtValue |
UglText |
|
Operationen
public:
| Name |
Parameter |
Rückgabewert |
Beschreibung |
| onEvent |
eventNr_t nr |
void |
|
protected:
Bildschirm-Klasse für eine Numerische Tastatur.
Beispiel: Bsp:
if( nr == btnNumPad.clickEvent )
{
NumPad* pad = new NumPad;
pad->text = "";
pad->title.text="Zahleneingabe:";
pad->okEvent = 'N';
app.gui.show( pad );
}
if( nr == 'N' ) // = ok in NumPad
{
String txt;
txt = "Zahl=";
txt += gPopup->text;
txtNumPadResult.text = txt;
txtNumPadResult.paint();
}