BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   custom text field is not consuming backspace (http://www.blackberryforums.com/developer-forum/209592-custom-text-field-not-consuming-backspace.html)

renuka_anil 11-05-2009 02:43 AM

custom text field is not consuming backspace
 
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.


All times are GMT -5. The time now is 10:36 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.