BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-31-2008, 05:09 AM   #1 (permalink)
New Member
 
Join Date: Aug 2008
Model: 8800
PIN: N/A
Carrier: AT&T
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question How to operate a ButtonField by 8700's trackwheel

Please Login to Remove!

by default a CheckboxField and a RadioButtonField are checked or unchecked with the trackball of 8300+

I want to do it with the trackwheel of 8700, or use the space key to checked or unchecked

If anybody knows how to do that, plz post it..

thank u verrrrrrrry much

My code:
RadioButtonGroup rbg = new RadioButtonGroup();
for (int j = 0; j < userVector.size(); j++) {
RadioButtonField r = new RadioButtonField(
((user) userVector.elementAt(j)).name);
}

Last edited by wackerwe : 10-31-2008 at 05:11 AM. Reason: add code
Offline  
Old 11-02-2008, 08:49 PM   #2 (permalink)
New Member
 
Join Date: Aug 2008
Model: 8800
PIN: N/A
Carrier: AT&T
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

anybody help?
Offline  
Old 11-03-2008, 01:56 AM   #3 (permalink)
New Member
 
Join Date: Aug 2008
Model: 8800
PIN: N/A
Carrier: AT&T
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Talking It's ok

RadioButtonGroup rbg = new RadioButtonGroup();
for (int j = 0; j < userVector.size(); j++) {
RadioButtonField r = new RadioButtonField(
((user) userVector.elementAt(j)).name) {
protected boolean trackwheelClick(int status, int time) {
this.setSelected(true);
return true;
}
};
}

Last edited by wackerwe : 11-03-2008 at 02:02 AM.
Offline  




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