| Reply | « Previous Thread | Next Thread » |
|
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 |
|
can anyone atleast tell me where to write event , if i press # OR * ???
|
|
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 |
| tobyw_1969 |
| View Public Profile |
| Find all posts by tobyw_1969 |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
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 |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |