Motorola T720 Developer's Manual page 43

Hide thumbs Also See for T720:
Table of Contents

Advertisement

Coding Example
Press on the phone simulator's End key (which represents the LWT's Enter key) and hold
it down. Watch what happens to the button (Figure 18). Release the key, and the button
reverts to its normal state.
Figure 18.
The highlighting that occurs indicates that the button has received and accepted an Enter
key press. This different appearance represents the button's pressed state. Clicking the
button itself will demonstrate the same behavior. The button is providing feedback that
helps the user operate the program. When pressed, the button sends an actuate event to
its listener.
Step 4: Observe the change of focus ownership
Press on the navigation button's down arrow two more times. With each key press, the
focus ownership moves to the next enabled button. You'll notice that the focus skips the
disabled button (the button third from the top) to select the first round button (Figure 19).
Figure 19.
Now press the down arrow on the navigation button once more, so that the second round
button receives focus ownership, as shown in Figure 20.
The LWT button when the Enter key (the End button) is pressed.
The focus ownership has moved to the round button.
43

Advertisement

Table of Contents
loading

Table of Contents