StrataFrame Forum

SF 1.6.6 - Error - IPControl versus TextBox

http://forum.strataframe.net/Topic18854.aspx

By Rogerio Mauri - 8/30/2008

The inclusion of a IPControl in form modifies the behavior of the cursor in the fields type textbox.

By Ivan George Borges - 9/1/2008

Hi Rogério.

I tried to find any strange behaviour over here but couldn't reproduce any. Could you explain a bit further?

By Rogerio Mauri - 9/1/2008

Ivan...

Também não entendi qual a relação...

No entanto, tirando o IPControl do formulário o cursor nos campos Textbox volta ao normal (no final). Incluindo o IPControl o cursor volta a ter o comportamento estranho (recua para o início da textbox).

Detalhes:
 - v.1.6.6
 - Windows Vista

By Rogerio Mauri - 9/7/2008

Ivan... Bom Dia...

Analise este formulário em duas situações. O problema do posicionamento do cursor de edição na digitação de valores em campos TextBox surge quando um IPControl (MicroFour.StrataFrame.UI.Windows.Forms.IPControl) é adicionado ao formulário. Você digita o texto e o cursor de edição se desloca, ou à esquerda (no início do texto) ou à direita (como no exemplo abaixo). Tirando o IPControl do formulário o comportamento do cursor de edição volta ao normal (à direita do último caracter digitado).

COM O CONTROLE IPCONTROL

SEM O CONTROLE IPCONTROL

By Edhy Rijo - 9/7/2008

Rogerio,

I don't speak/read Portugues, but due to my Spanish I do understand a bit, I know you are discussing this with Ivan, but if you post a small sample where the problem could be duplicated, this could be resolved in not time and possible included in the upcoming release of 1.6.6.

I need to use the IP control in one of my projects, but I have not started with that form yet, so I am not able to test/duplicate your findings.

By Rogerio Mauri - 9/20/2008

Edhy...
I am sending an example with the error.
By Ivan George Borges - 9/20/2008

Yep, I could reproduce it now. First time I tried, I didn't bind the control, and it looked like OK... sorry Blush

If you play a bit more with it, you will notice that if you type some contents in the control, and the cursor ends up on its last digit, then if you go to the other text boxes, the cursor will be at the same distance from the left side of it. Fun, isn't it? Hehe

I guess this one will be a job for Superman. BigGrin

By Rogerio Mauri - 9/21/2008

Ok...

Then, we go to wait the super man
By Trent L. Taylor - 9/22/2008

This control should have actually had the Obsolete tag assigned to it.  This control is no longer supported as it was a control written very early on which never had much (if any) use as MaskedTextBox controls were generally used instead.  You will be better off using a MaskedTextBox in this case.  I will go and add this attribute right now so that we do not forget.