Livecode Builder Widgets: basic question
Peter TB Brett
peter.brett at livecode.com
Sun May 10 07:13:36 EDT 2015
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.brett at livecode.com>
LiveCode Engine Development Team
More information about the use-livecode
mailing list