Button text on icon image
Dave Cragg
dcragg at lacscentre.co.uk
Mon May 23 12:51:23 EDT 2005
On 23 May 2005, at 17:10, Klaus Major wrote:
>
Hi Klaus
>> Hi
>>
>> I just noticed that a button's label can now appear in front of
>> the button's icon.
>> Previously, it would get hidden behind the image. (When was this
>> fixed/changed?)
>>
>
> are you yure?
You bet. :)
But do you mean sure that it now appears in front of the image, or
sure that it used to appear behind the image? Anyway, I'm sure of
both, just not sure when the change occurred.
>
> That's what i know, fiddling with the margins property, but never
> with satisfying results...
One way is to have the text left-aligned, set the top, right and
bottom margins to 0, and then increase the left margin until you're
happy. But this isn't so good when you want to dynamically change the
label. So I was hoping to keep the label center-aligned, and adjust
top and bottom margins.
But finding the right settings is difficult. I get the text centered
on the button, but part of the icon disappears. Get the icon
positioned, and the text shifts. It's like one of those comedy
routines when the guy closes one drawer and another drawer opens.
(Perhaps I should remove the red nose before I do this.)
>
> http://support.runrev.com/bugdatabase/show_bug.cgi?id=1032
Interesting! I found Bugzilla #819, where Tuv mentioned fixing it for
2.2, although the bug is still marked "assigned".
Cheers
Dave
More information about the use-livecode
mailing list