Bugzilla nr. 1032
J. Landman Gay
jacque at hyperactivesw.com
Thu Aug 26 16:27:01 EDT 2004
On 8/26/04 2:57 PM, Phil Davis wrote:
> That's funny - this is identical to one of my bugs, #819:
>
> ########## start 819 #########
>
> 2003-10-20:
> Give option to show text ON (not below) buttons with icons
>
> Add a feature that lets you position the name or label of a button
> within the button's rect, even when the button has icons. When icons are
> used, the label should appear in the button's foreground, with the icon
> in its background, "behind" the label.
>
> This would eliminate the need for the "two buttons" workaround in many
> cases.
>
> Currently you can get the label to appear within the rect of an icon
> button by manipulating the margins prop, but the label currently appears
> behind the icon. No joy.
Try this: Make a button 128 pixels square. Give it a big icon (I used
803). Then:
set the margins of btn 1 to 40
set the topmargin of btn 1 to 60
set the textcolor of btn 1 to "blue"
set the textstyle of btn 1 to "bold"
set the textsize of btn 1 to 20
On my Mac, I get a blue label over the picture (not behind it) and the
icon is vertically centered (well, close. Play with the numbers.)
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list