Distortion of textbox while entering password | developer.brewmp.com Distortion of textbox while entering password | developer.brewmp.com

Developer

Distortion of textbox while entering password

Forums:

Hello All,

I am using textbox control (ITEXTCTL) for entering password with TP_PASSWORD property. But the textbox is being distorted as I enter mixed letters like alphabets, special symbols mainly spaces. Entered text goes beyond the textbox control rectangle. Even when spaces are entered upto the textbox rectangle (graphical)width limit before exceeding password limit and any other letter is entered, the text goes beyond the ITEXTCL rectangle.

When only alphabets are entered then no problem at all. The problem comes only when I mix alphabets with special symbols mainly space.

Have anyone faced such problem before? I am using Motorola V3c, Motorola L7C devices (BREW Version 3.1.2). I am getting this behaviour on both devices.

Can anyone shade some light over the issue?
I appreciate your quick reply. Its very argent for me.

Thanks in Advance.

Did you fix this issue. iam facing the same issue if I set the textctl property to
TP_PASSWORD. The text goes beyond the control rectangle.

Did you fix this issue. iam facing the same issue if I set the textctl property to
TP_PASSWORD. The text goes beyond the control rectangle.

Hi sri,
I didn't get any solution for this. I think to solve this problem we will have to write our own custom control for receiving password. Will you please let me know in case you get any solution over this? On which device you are facing this problem?
Thanks.

Hi sri,
I didn't get any solution for this. I think to solve this problem we will have to write our own custom control for receiving password. Will you please let me know in case you get any solution over this? On which device you are facing this problem?
Thanks.

Hi All,
Below is the code used to draw textCtl with property set to TP_PASSWORD.
AEERect rect;
SETAEERECT(&rect,10,10,100,20);
if((ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_TEXTCTL, (void**)(&pMe->m_Text)) != SUCCESS))
return FALSE;
ITEXTCTL_SetRect (pMe->m_Text, &rect);
ITEXTCTL_SetProperties(pMe->m_Text, TP_PASSWORD | TP_FRAME);
ITEXTCTL_SetMaxSize(pMe->m_Text,60);
ITEXTCTL_SetActive(pMe->m_Text,TRUE);
There are two issues I observe,
1. The text in the textctl goes beyond the ITEXTCTL frame(mostly when used chars such as 'a,j,t,w').If we enter more text than it can fit the FRAME,some 3 to 4 characters are drawn beyond the control and then the ITEXTCTL frame gets cleared and chars get displayed from the first position.
2. After this, only '*' is shown. It does not show the corresponding char for 10sec ,the '*' is displayed directly.
For me it happens in almost all devices, also on the emulator. I tried using AEECLSID_TEXTCTL_10 classid as well, but no use.
Is this a known issue? Or is there an order in which properties are to be set. Any help in this is appreciated. Thanks.

Hi All,
Below is the code used to draw textCtl with property set to TP_PASSWORD.
AEERect rect;
SETAEERECT(&rect,10,10,100,20);
if((ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_TEXTCTL, (void**)(&pMe->m_Text)) != SUCCESS))
return FALSE;
ITEXTCTL_SetRect (pMe->m_Text, &rect);
ITEXTCTL_SetProperties(pMe->m_Text, TP_PASSWORD | TP_FRAME);
ITEXTCTL_SetMaxSize(pMe->m_Text,60);
ITEXTCTL_SetActive(pMe->m_Text,TRUE);
There are two issues I observe,
1. The text in the textctl goes beyond the ITEXTCTL frame(mostly when used chars such as 'a,j,t,w').If we enter more text than it can fit the FRAME,some 3 to 4 characters are drawn beyond the control and then the ITEXTCTL frame gets cleared and chars get displayed from the first position.
2. After this, only '*' is shown. It does not show the corresponding char for 10sec ,the '*' is displayed directly.
For me it happens in almost all devices, also on the emulator. I tried using AEECLSID_TEXTCTL_10 classid as well, but no use.
Is this a known issue? Or is there an order in which properties are to be set. Any help in this is appreciated. Thanks.

'TP_PASSWORD' is working 4 me.
Thank you all, very much.

'TP_PASSWORD' is working 4 me.
Thank you all, very much.