BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-10-2007, 03:33 AM   #1
genvej
Thumbs Must Hurt
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: TDC
Posts: 115
Default Override TrackwheelClick

Please Login to Remove!

Quote:
class SuperClassScreen extends MainScreen{

Evaka evakMain;
SuperClassScreen(Evaka evakMain) {

super();
this.evakMain=evakMain;
}


private MenuItem soegItem=new MenuItem("Menu 1",1,12){
public void run(){


evakMain.screenSearch();
}
};

private MenuItem evakueringItem=new MenuItem("Menu 2",1,12){
public void run(){


evakMain.screenChooseObjekt();
}
};


protected void makeMenu(Menu menu, int instance){

menu.add(evakueringItem);
menu.add(soegItem);

}

/* public boolean trackwheelClick(int status, int time){

Menu appMenu=new Menu();
makeMenu(appMenu,1);
appMenu.show();

return true;

}*/

public boolean onClose() {this.close();
return true;
}
}
Whenever i click the trackwheel i also get the menu which im not interested in... how do i override proper without getting the menu?
Offline  
Old 09-10-2007, 03:55 AM   #2
arifzaman
Thumbs Must Hurt
 
Join Date: Jun 2007
Location: Bangladesh
Model: 8800
PIN: N/A
Carrier: EDGE
Posts: 93
Default

Hi genvej,

Quote:
Originally Posted by genvej View Post
Code:
public boolean trackwheelClick(int status, int time){
Menu appMenu=new Menu();
makeMenu(appMenu,1);
appMenu.show();
return true;
}
Whenever i click the trackwheel i also get the menu which im not interested in... how do i override proper without getting the menu?
Here is a sample code to override the trackwheelClick method:
Code:
protected boolean trackwheelClick(int status, int time) {
    Dialog.alert("Trackwheel Click Events");
    return true;
}
Cheers,
ARIF
Offline  
Old 09-10-2007, 08:22 AM   #3
genvej
Thumbs Must Hurt
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: TDC
Posts: 115
Default

thx alot.. however overriding without doing anything is not good enough for me... i need the click functionality but without the menu popping up.

I solved with the CONSUME_CLICK attribute due to info in this thread.

http://www.blackberryforums.com/deve...ck-button.html
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Cole Hersee (24059-BP) 12V Insulated SPST Continuous Duty Solenoid picture

Cole Hersee (24059-BP) 12V Insulated SPST Continuous Duty Solenoid

$28.89



3/4

3/4" Brass Electric Solenoid Valve 110V 120V Volt AC Water Air Gas VITON NC B21

$36.20



solenoid picture

solenoid

$15.00



3/4

3/4" NPT, 110/120 VAC N/O Solenoid Valve Plastic Potable Water Normally Open

$39.98



1/2

1/2" 110V 120V AC Brass Electric Solenoid Valve Water Air Gas Viton NC 110VAC

$35.95



U. S. Solid 3/4

U. S. Solid 3/4" Brass Electric Solenoid Valve 110V AC Normally Closed NBR

$39.39







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.