You Are Here:

Community: Developer Discussion Boards

#1 Old Exclamation getting ok button pressed - 2006-08-08, 13:19

Join Date: Aug 2006
Posts: 2
csIndia
Offline
Registered User
Hello all,

I have developed simple form-based application, and I want to capture OK button which is at mid of all arrow keys. Where can I write event of it. I want to write event on ok button. Please tell me, I am newbie to j2me, but have developed a form based applications. I searched thru forum, but cudnt get my answer. Thanks..

-
csIndia
Reply With Quote

#2 Old Unhappy Re: getting ok button pressed - 2006-08-08, 13:34

Join Date: Aug 2006
Posts: 2
csIndia
Offline
Registered User
can anyone atleast tell me where to write event , if i press # OR * ???
Reply With Quote

#3 Old Re: getting ok button pressed - 2006-08-08, 14:39

Join Date: Jul 2006
Posts: 15
tobyw_1969
Offline
Registered User
you can't capture keypresses on a form, as i understand it. you can only have commands. you need to look at using the Canvas class if you want to get keypresses - good link here

http://www.devx.com/wireless/Article/21452/0/page/3
Reply With Quote

#4 Old Re: getting ok button pressed - 2006-08-09, 01:20

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi csIndia,

also if you can go with "Fire" button (joystick pressed) and Forms you can simply assign an item command to items on your form and when that button is pressed that command will be executed, see Command.ITEM and Item.setDefaultCommand(...) in MIDP 2.0 docs,

regards,
Peter
Reply With Quote

#5 Old Re: getting ok button pressed - 2006-08-09, 09:31

Join Date: Aug 2006
Posts: 307
axs
Offline
Regular Contributor
Try this material:

http://www.forum.nokia.com/info/sw.n..._v1_0.pdf.html
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
ViewSrv 11 panic : when menu button of 7650 is pressed on an active app nitinkumar Symbian User Interface 6 2008-12-09 20:20
Command Button on TextBox Issue in 6230i/3510i manasmchex Other Programming Discussion 关于其他编程技术的讨论 3 2006-02-03 18:13
weird CANCEL button behaviour securityfocus General Symbian C++ 0 2005-03-18 15:24
Menu only when button pressed donalRok Symbian User Interface 0 2004-09-29 10:21
Dialog button vs softkey button apitoman Symbian User Interface 0 2004-02-25 09:00

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia