BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-13-2007, 04: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, 06: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, 01: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 01:11 PM.
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





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