Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
rakesh86shankar
Posts: 987
Registered: ‎05-22-2009
My Device: Not Specified
Accepted Solution

Doubts in EditField

Hi,it is a doubt regarding the Edit Field ,i set the maximum no of characters to be number 3,and when i type more than 3 characters,Dialog is displays field full,

 

I want to remove it and should not enter more than 3 characters.How to acheive it

 

 

Regards

 

Rakesh Shankar.P

Please use plain text.
Developer
peter_strange
Posts: 19,595
Registered: ‎07-14-2008
My Device: Not Specified

Re: Doubts in EditField

Sorry not clear.  Please explain again what you want to do, with an example so we are all clear.

Please use plain text.
Developer
rakesh86shankar
Posts: 987
Registered: ‎05-22-2009
My Device: Not Specified

Re: Doubts in EditField

what i was trying to saying is that in the  editfield we can determine max no of characters that can be typed in label field,

 

For eg

 

EditField ed=EditField(String s,String s1,int n,long style);

 

int n-represents the max no of characters that can be filled in editfield

 

suppose i set the value of n to be 3,and when i enter more than 3 characters it shows Field Full

 

and now  What i want is that i should not get that Field Full alert Dialog when i enter more than 3 characters ,

 

 

Can you get my Qn?

 

 

 

Please use plain text.
Developer
peter_strange
Posts: 19,595
Registered: ‎07-14-2008
My Device: Not Specified

Re: Doubts in EditField

I did ask for an example.

 

Say the Field has 123 in it,  then the user types 4.  What do you want to happen?

Please use plain text.
Developer
rakesh86shankar
Posts: 987
Registered: ‎05-22-2009
My Device: Not Specified

Re: Doubts in EditField

sorry

 

When user types 4,what i get is  Dialog box whch shows "Field Full",i should not get that Dialog box,

 

 

this is the image here

 

 

 

In the image i have EditBox next to "very high" label,when i enter more than 3 characters it shows Field Full and i want it removed,can this be done

 

 

Regards

 

Rakesh Shankar.P

Please use plain text.
Developer
yosoh
Posts: 213
Registered: ‎07-18-2008
My Device: Not Specified

Re: Doubts in EditField

[ Edited ]

yes it can be done:

 

 

 

 

BasicEditField bef = new BasicEditField("Test","",5,BasicEditField.FOCUSABLE)
{
    protected void displayFieldFullMessage()
    {
        
} };

 

 

 

--------------------------------------------------
problemSolved() ? kudosPlease():kudosPlease();
Please use plain text.
Developer
rakesh86shankar
Posts: 987
Registered: ‎05-22-2009
My Device: Not Specified

Re: Doubts in EditField

Thanks For you Help yosoh and you too peter:smileyhappy:

Please use plain text.