Dynamic labels for buttons with (oddshaped) icon images?

Richmond Mathewson geradamas at yahoo.com
Thu Feb 5 15:46:00 EST 2009


Humpf:

Just pumped out a couple of blank button images from my "Button Basher" 
stack and imported them into a new stack; using them as icons for
a button.

On the stack there is a text field "fNAME"

and the button has the following script:

on mouseUp
 set the name of me to fld "fNAME"
end mouseUp

so everybody can set the NAME of the button to what they wish.

Even jiggling while around with the margins allows one to centre
the NAME in the button (i.e. over the icon image), this mucks up
the image really badly.

tried:

on mouseUp
 set the label of me to fld "fNAME"
end mouseUp

and the effect is just the same:

"Label Changer.rev" at revOnline under 'Richmond'.

sincerely, Richmond Mathewson.

____________________________________________________________

A Thorn in the flesh is better than a failed Systems Development Life Cycle.
____________________________________________________________


      



More information about the use-livecode mailing list