BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 03-18-2010, 11:57 AM   #1 (permalink)
New Member
 
Join Date: May 2009
Model: 8100
PIN: N/A
Carrier: airtel
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Setfocus problem with fieldChanged

Please Login to Remove!

Hi

I have two buttons Save and Cancel on clicking cancel button i will get a dialog asking confirmation having ok & cancel buttons. if i press cancel button the control should come back to Cancel button of the screen. it is coming but its not getting painted. What i am doing is calling cancelbutton.setFocus & calling invalidate(). Still its not shown. Any idea what could be the problem ??

the code is as follows
if(field == buttonDecline){
int result = Dialog.ask("Decline",buttonvalues,values,value[0]);
if(result == 1){
buttonDecline.setFocus();
invalidate();
}
}
Offline  
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

OEM CPU FAN & HEATSINK 14R0011 TSQC0039003--IBM SURE POS 4840-563 TOUCH SCREEN
$3.99
OEM CPU FAN & HEATSINK 14R0011 TSQC0039003--IBM SURE POS 4840-563 TOUCH SCREEN pictureIBM EASYSTRIKE MULTIPURPOSE RIBBON by IBM OEM #1337764 (659 FT X .3 IN) BLACK
$15.0
IBM EASYSTRIKE MULTIPURPOSE RIBBON by IBM OEM #1337764  (659 FT X .3 IN) BLACK pictureGENUINE OEM IBM EASYSTRIKE LIFT OFF TAPE CASSETTES #1337765 LOT of 7 d18
$39.99
GENUINE OEM IBM  EASYSTRIKE  LIFT OFF TAPE CASSETTES #1337765 LOT of 7 d18 pictureIBM 1299790 Quietwriter Typewriter Ribbon Non Correctable Ribbon Cartridge OEM
$4.99
IBM 1299790 Quietwriter Typewriter Ribbon Non Correctable Ribbon Cartridge OEM pictureIBM Selectric 72 Typewriter Ribbon 1136138 OEM 8 Ribbon Cartridges
$84.99
IBM Selectric 72 Typewriter Ribbon 1136138 OEM 8 Ribbon Cartridges picture






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