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

Tiemo Hollmann TB toolbook at kestner.de
Wed Jul 8 09:59:27 CEST 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.
Tiemo


-----Ursprüngliche Nachricht-----
Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] 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?

Hello,

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?

Tiemo

 

 

 

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list