Thursday, January 14, 2016

How to control the number of input characters in the Editor?




            


How to control the number of input characters in the Editor?
For example, control the number of characters entered in the Editor within 20

How many points did little brother, please forgive me!
Reply:
1. If you are using the resource file that defines the edit box, you can specify the maximum number of characters by maxlength attribute EDWIN resources, such as the following is an editor of a dialog box definition

DLG_LINE
{
id = EMyDialogEdwin;
type = EEikCtEdwin;
control = EDWIN
{
maxlength = 20; // maximum of 20 characters
};
},

2. You can also restrict CEikEdwin :: SetTextLimit () Specifies the number of characters used .cpp source file.
Reply:
Thanks

No comments:

Post a Comment