BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 12-13-2007, 05:57 AM   #1
jonneymendoza
Knows Where the Search Button Is
 
Join Date: Dec 2007
Model: 8800
PIN: N/A
Carrier: vodafone
Posts: 21
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
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
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
Mark Rejhon
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: Bold
Carrier: Rogers
Posts: 4,870
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  
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


Voice Activated Listening Device Audio 150 Day Battery Spy Recorder 16 GB picture

Voice Activated Listening Device Audio 150 Day Battery Spy Recorder 16 GB

$109.00



AVNET ULTRAZED SOM ZYNQ ULTRASCALE+ XCZU3EG SYSTEM ON MODULE -  picture

AVNET ULTRAZED SOM ZYNQ ULTRASCALE+ XCZU3EG SYSTEM ON MODULE -

$98.67



1PCS Memory iButton IC DALLAS/MAXIM DS1994L-F5 DS1994L+F5 DS1994L-F5+ picture

1PCS Memory iButton IC DALLAS/MAXIM DS1994L-F5 DS1994L+F5 DS1994L-F5+

$183.20



New Factory Sealed AB 1756-L61 SER B ControlLogix 2MB Memory Controller 1756L61 picture

New Factory Sealed AB 1756-L61 SER B ControlLogix 2MB Memory Controller 1756L61

$304.69



SIMATIC, Memory Card, 4 Mbytes, 24 Mbytes, 256 Mbytes picture

SIMATIC, Memory Card, 4 Mbytes, 24 Mbytes, 256 Mbytes

$418.50



NEW Original Allen Bradley 2080-MEMBAK-RTC Memory Module With RTC Plug-In picture

NEW Original Allen Bradley 2080-MEMBAK-RTC Memory Module With RTC Plug-In

$291.75







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