AW: how to get an option button with a full size icon?

Tiemo Hollmann TB toolbook at
Wed Jul 8 03:59:27 EDT 2015

For anybody who will get into this in future, I found the solution.
Setting the margin (which is a text property) to 0, aligns the icon to the
button border. Setting the borderWidth (which is an icon property) to x gets
the text again off the border. A bit paradox, but the result counts.

-----Ursprüngliche Nachricht-----
Von: use-livecode [mailto:use-livecode-bounces at] Im Auftrag
von Tiemo Hollmann TB
Gesendet: Dienstag, 7. Juli 2015 17:21
An: LiveCode User Liste senden
Betreff: how to get an option button with a full size icon?


I tested to get an option button 80x20 with an full size icon 80x20 and the
text (the selected option) shown.

To get the icon over the full size of the button, I have to set the margins
to 0 and align the text to left or right. But this causes also that the text
margin is 0, so that the text is right at the edge.

IS it a wanted behavior, that the margins affect also the icon, or is this a
"bug"? My only solution up to now is to rebuild my own option button with a
button and a field, controlled by myself. Any other idea?





use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription

More information about the Use-livecode mailing list