BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 08-02-2007, 02:57 AM   #1 (permalink)
Knows Where the Search Button Is
Join Date: Jul 2007
Model: 8800
Carrier: Vodafone
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to use the Changes made Dialog

Please Login to Remove!

I want to save some things (it works with selfmade Buttons) But if there are some Changes in the Editfields and i press Escape comes the Changes Made Dialog, how can i use that?
or the other way how can i block it?

Thx for your help

Last edited by GERMartin : 08-02-2007 at 03:57 AM.
Old 08-02-2007, 04:19 AM   #2 (permalink)
CrackBerry Addict
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts

override the escape key in the keyChar method should do it:

public boolean keyChar(char key, int status, int time) {
boolean retval = false;
switch (key) {
case Characters.ESCAPE:
//do whatever, for example:
UiApplication.getUiApplication().popScreen(UiAppli cation.getUiApplication().getActiveScreen());
retval = true;//handled the event - should prevent changes made dialog
retval = super.keyChar(key, status, time);
return retval;

there's probably a simpler way though
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!

Last edited by jfisher : 08-02-2007 at 04:20 AM.
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

APPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD
APPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD   picture

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