OK - but widgets that scale as you stretch them (as do all the widgets I create in LiveCode) need to dynamicaly resize by script and that is done in the OnPaint() handler?
— Sent from Mailbox On Sun, May 10, 2015 at 1:13 PM, Peter TB Brett <peter.br...@livecode.com> wrote: > On 2015-05-10 09:04, David Bovill wrote: >> What considerations do I have when creating a widget in Livecode >> Builder >> for cross-platform use? Do they look the same on all platforms? Any >> gotchas? > Currently, they look the same on all platforms. > There are two main "gotchas": > 1) Don't try to do very much in OnCreate() other than basic > initialisation of the widget. > 2) Do as little as possible in OnPaint() (for example, avoid computing > the sizes that things need to be). Any work done in OnPaint() slows > down the rendering of the whole app. The fewer computations you do in > OnPaint(), the snappier your widget will feel! > Peter > -- > Dr Peter Brett <peter.br...@livecode.com> > LiveCode Engine Development Team > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode