Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Mikael
Posts: 21
Registered: ‎10-09-2008
My Device: Not Specified

9530 bold simulator and buttons

[ Edited ]

Dear Forum,

 

We have implemented a Blackberry JAVA application which works perfectly on all simulators .... except with "9530 Storm simulator" with JDE 4.7.

 

What is failing is the click on my buttons.

 

Let's see the following code:

 

public class MyScreen extends MainScreen {
....
private ButtonField _myButton;
....
public InvitationConfigScreen()
{
_myButton = new ButtonField("MyLabel", ButtonField.CONSUME_CLICK) {
protected boolean trackwheelClick(int status, int time)
{
UiApplication.getUiApplication().pushScreen(new MySecondScreen());
return true;
}
};
add(_myButton);
}
....

The fact to click with the trackwheel on "MyLabel" button opens a screen on all the simulators except with "9530 Storm simulator": nothing happens.

 

Is there a defect in the simulator?

 

Thanks in advance for your answers,

 

Mikaël.


 

 

Message Edited by Mikael on 12-12-2008 11:25 AM
Message Edited by Mikael on 12-12-2008 11:25 AM
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: 9530 bold simulator and buttons

I think you are expecting a trackwheel click from the click-through on the touch screen? I don't think that is going to happen.

 

Why don't you implement a more conventional FieldChangeListener approach?