[Gambas-user] setfocus eats way too much time

Fabien Bodard gambas.fr at ...626...
Sat Aug 15 10:03:23 CEST 2009


strange ... it not happen to me ...

have you a long text ?

on what toolkit ?

have you other process in execution ? (timer event ?)



2009/8/14 Jean-Yves F. Barbier <12ukwn at ...626...>:
> 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!
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list