A modest proposal for a new property
Sannyasin Brahmanathaswami
brahma at hindu.org
Tue Sep 26 15:41:58 EDT 2017
Though this is not a universal solution… but related..
FWIW we have an enhancement request in for widgets to allow us to set their margins.
The entire area of a widget is its "hit box" (term from Unity)
So all we need it to be able to set margins. Typical use case might be to have a 24 X 24 widget in a box that is 414w x 40 high… set the left margin to 20 and the widget effectively aligns left and the entire area across the screen becomes a hit box.
On 9/26/17, 9:21 AM, "use-livecode on behalf of Richard Gaskin via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:
If you need a rectangular clickable area with an image inside it, what
you have is a button - you can set the icon of a button to the image you
want displayed in it.
It's still two objects, but lets you store the image object in a
separate stack where you can keep all of your image assets together,
rather than adding an extra object to the UI stack.
Extra bonus points: FWIW when I last tested this (though it's been quite
some time ago) buttons rendered much faster than images.
More information about the use-livecode
mailing list