Slide 7.8: Demonstrations (cont.) Slide 7.10: Hello_a.c Home |
Form
API to create new labels or to change labels dynamically.
User Action | System Response | CtlHandleEvent Response
|
Pen goes down on a button. |
penDownEvent with the x and y coordinates stored in EventType |
Adds the ctlEnterEvent to the event queue. |
ctlEnterEvent with button's ID number
|
Inverts the button's display. | |
Pen is lifted from button. |
penUpEvent with the x and y coordinates stored in EventType
|
Adds the ctlSelectEvent to the event queue. |
Pen is lifted outside button. |
penUpEvent with the x and y coordinates stored in EventType
|
Adds the ctlExitEvent to the event queue. |