语言

Menu
Sites
Language
setting text to editfield by a button click

my requirement is to set some text to edit field when a button is clicked .
in onActionPerformed() i handled the event like as below
eidt1.SetText("new text");
but when i click the button the change is not reflected immediately , change had taken place when i clicked editfield after clicking the button.
plaese guide me if i was wrong  

编辑者为: harish kumar kavali 28 10月, 2013

响应

2 回复
Alex Ashirov

Hi,

I am not sure that the described behavior is correct and this isn't a bug, but anyway, you can call

__eidt1.Invalidate(false);

just after the SetText() in order to update the text field immediately.

harish kumar kavali

thanks for your reply now its working