BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 11-05-2009, 02:43 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Mar 2007
Location: India
Model: 8100
Carrier: Airtel
Posts: 64
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default custom text field is not consuming backspace

Please Login to Remove!

Hi All,

I have implemented a custom text field that extends BasicEditField..

public CustomTextField(String txt){
super("", txt, 300, BasicEditField.EDITABLE | BasicEditField.FOCUSABLE | BasicEditField.ACTION_INVOKE);
isSearchBox = true;
textFieldFont = textFieldFont.derive(Font.PLAIN, 12);
textFieldHeight = textFieldFont.getHeight();
textFieldWidth = Graphics.getScreenWidth()-90;
setText(txt);
}

This is my constuctor..

When textfield already contain some text it wont consume backspace event. It shows all other key chars but when at start i click backspace(from simulator key pad) no action is take place. Although it has to take as i havent overrided any other method for doing anything manually.

Please anybody if know what to do. please let me know.

Thanks.
__________________
Crazy for BlackBerry
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

New Siemens 6ES7 314-6CF00-0AB0 CPU Unit 1 year warranty 6ES7314-6CF00-0AB0
$1830.0
New Siemens 6ES7 314-6CF00-0AB0 CPU Unit 1 year warranty 6ES7314-6CF00-0AB0 pictureWARING WFP143 Commercial Food Processor disc
$39.95
WARING  WFP143  Commercial Food Processor disc pictureAllen-Bradley S1747-L531 /E Processor/Controller
$150.0
Allen-Bradley S1747-L531 /E Processor/Controller pictureGE FANUC IC697CPU771 CPU MODULE (REPAIRED-AS PICTURED) *USED*
$499.0
GE FANUC IC697CPU771  CPU MODULE (REPAIRED-AS PICTURED) *USED* pictureTAKAOKA ELECTRIC MFG CO CPU-001 (Used, Cleaned, Tested 2 year warranty)
$212.5
TAKAOKA ELECTRIC MFG CO CPU-001 (Used, Cleaned, Tested 2 year warranty) picture






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