| | How to determine which button is clicked?
Please Login to Remove!
I'm a rookie at the BB stuff but an experienced developer. In looking at the samples and doing searches via Google, I've yet to come across an example of how to determine which of two buttons have been clicked with the trackwheel. I currently have the following code, modified from the Hello World sample:
class SalutationScreen extends MainScreen
LabelField applicationTitle = new LabelField("Hello World Title");
ButtonField testButton = new ButtonField("Click Me", FOCUSABLE);
ButtonField orButton = new ButtonField("Or Me", FOCUSABLE);
public boolean onClose()
// Invoked when the trackwheel is clicked.
public boolean trackwheelClick( int status, int time )
Dialog.alert("Button clicked. Status:" + status) ;
Along with the associated HelloWorld.java routine. How do I determine which button was clicked?
Thanks in advance for the help.
"There are 10 types of people in the world.
Those that understand binary and those that don't!" www.timothytrimble.info
- The ART of S/W Development