Textsize of label of copied btn changes

William Prothero waprothero at gmail.com
Tue Oct 13 20:54:37 EDT 2020


After the button is copied to the destination card, I do:

set the textsize of btnRef to the textsize of srcBtnRef
the contents of btnRef is:

btn "doNext2" of card "WhatsTheMystery-2" of stack "/Users/AfilePath/PlateTectonics.livecode"

srcBtnRef is pretty much the same thing with the card that holds the object library.

It has no effect. But then, I’ve been known to screw up these references, but since the copy works, I think it’s ok.

What’s odd, is that it seems to be picking up the fontsize of some of the other fields on the destination card. So, for now, I’ve given up and use a field for a button, which I like better anyway. I’ll look at this again to see if I made a stupid mistake.


William A. Prothero

> On Oct 13, 2020, at 10:59 AM, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
> William Prothero wrote:
> > I am copying a button from one card to another. The font size of the
> > label changes from that of the original to a large font and I can’t
> > figure out how to change the textsize of the label. I keep getting an
> > error.
> set the textSize of btn "SoAndSo" to 14
> The curious part is that it changed when you pasted it.  If you have a textSize specified for the card it came from but not the card it was pasted in, that would govern all controls that do not have their own testSize property explicitly set.
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> Ambassador at FourthWorld.com                http://www.FourthWorld.com
> _______________________________________________
> 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