BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-13-2007, 05:57 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2007
Model: 8800
PIN: N/A
Carrier: vodafone
Posts: 21
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default selecting a image in a form screen

Please Login to Remove!

Hi i have some images in a form. images of a single button called validate. when the user scrolls down and selects this image, is it possible to do something like:

if button is currently selected, change the button image to display a different highlighted hover button.

can i also do someting like this too?

if button selected and user press the fire or enter key from a blackberry device, execute something...

Thanks in advance and hope its possible.
Offline  
Old 12-13-2007, 07:06 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

implement a focuschangelistener and overwrite navigationClick() and keyChar() in your screen. delegate all unhandled events to super()

hth,
simon
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 12-13-2007, 02:08 PM   #3 (permalink)
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: Bold
Carrier: Rogers
Posts: 4,870
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by simon.hain View Post
implement a focuschangelistener and overwrite navigationClick() and keyChar() in your screen. delegate all unhandled events to super()

hth,
simon
navigationClick() is OS 4.2 only.

For a app compatible with older devices, please implement trackwheelClick instead, which also capture trackball clicks on new BlackBerry.

TIP! It's also possible to include navigationClick( ) in an application you compile for JDE 4.1 if you make a dummy call to it in the constructor. I hate compiling apps separately for 4.1 and 4.2, I love unified .cod files that works on 4.1 and 4.2 yet takes advantage of 4.2 features. (I have learned a lot of BlackBerry development tricks over the years.)
__________________
Thanks,
Mark Rejhon
Author of XMPP extension XEP-0301:
www.xmpp.org/extensions/xep-0301.html - specification
www.realjabber.org - open source

Last edited by Mark Rejhon : 12-13-2007 at 02:11 PM.
Offline  




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