Languages

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  

Edited by: harish kumar kavali on 28 Oct, 2013

Responses

2 Replies
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