I call in Activity_Create subs for calculate size of views. Many use DoEvents.
It is important that all are executed before Activity_Resume.
When I replace DoEvents with 'Wait For ...", it works not more.
I joints an sample (See the log)
Is it possible to get same result with 'Wait For' as DoEvents ?
Thanks
Thanks. StringUtils seems a good solution for calculate without doevents the height of a string.
Is it sure that StringUtils don't use no doEvents inside ?
For calculate the width of a string, use a canvas is not sure (many errors in results).
The only sure method that I know is: Label.width=-2 and use reflector with doEvents (or wait For) for get the width.
Is there an other method without doEvents (or wait For), please ?