BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-02-2007, 02:57 AM   #1
GERMartin
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 29
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..
Offline  
Old 08-02-2007, 04:19 AM   #2
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Default

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
break;
default:
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..
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


1 Pc Home Intel Xeon Silver Sclip 4110 Linux   - NEW picture

1 Pc Home Intel Xeon Silver Sclip 4110 Linux - NEW

$245.00



2X Honeywell Xenon 1902GSR-2 Handheld Barcode Scanner 1902GSR-2-23105 w Base USB picture

2X Honeywell Xenon 1902GSR-2 Handheld Barcode Scanner 1902GSR-2-23105 w Base USB

$54.99



4X Honeywell Xenon 1902GSR-2 Handheld Barcode Scanner 1952GSR-2-31886 w Base USB picture

4X Honeywell Xenon 1902GSR-2 Handheld Barcode Scanner 1952GSR-2-31886 w Base USB

$175.99



INTEL XEON E5 2520V2 E5 2620V2 SR1AN 2.10 GHZ Core Processor 3401A832 picture

INTEL XEON E5 2520V2 E5 2620V2 SR1AN 2.10 GHZ Core Processor 3401A832

$12.00



Super-Micro P4DC6+ Motherboard with 2 Xeon i processors with SCSI RAID picture

Super-Micro P4DC6+ Motherboard with 2 Xeon i processors with SCSI RAID

$200.00



Kit xeon Maxgeek DSE6020 MKII Generator Controller Generator Set Control Panel picture

Kit xeon Maxgeek DSE6020 MKII Generator Controller Generator Set Control Panel

$125.00







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