[Gambas-user] setfocus eats way too much time

Jean-Yves F. Barbier 12ukwn at ...626...
Fri Aug 14 23:19:32 CEST 2009


Jean-Yves F. Barbier a écrit :
> Hi list,
> 
> I've got a popup that is a small frame containing a TextArea & 2 buttons.
> 
> In order to do things right, I've got a default text into TextArea; but to
> make sure typing will fill the TextArea, I must do 2 things: 
> TextArea1.SelectAll()
> TextArea1.SetFocus()
> 
> however, SetFocus() introduce a waiting time up to 1.5 seconds before frame shows!

This only happen the first time: next invocations don't have this delay

-- 
This fortune is encrypted -- get your decoder rings ready!




More information about the User mailing list