Scale Factor

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Scale Factor

Post by RossG » Tue May 03, 2016 12:57 am

Is it possible to set the scale factor to
a number that's not available in those which
are pre-set in the Inspector?
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Scale Factor

Post by dunbarx » Tue May 03, 2016 2:44 am

Hi.

Certainly.

Code: Select all

set the scaleFactor of stack "yourStack" to 0.9356
Craig Newman

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: Scale Factor

Post by RossG » Thu May 05, 2016 10:12 pm

Craig

Works OK except that even though I only reduced
the scale from 1 to 0.9 all the line thicknesses were
changed from 2 to 1 which is inconvenient to say
the least.
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Scale Factor

Post by dunbarx » Thu May 05, 2016 10:53 pm

Hi.

I do not think that a message is sent when the scaleFactor is changed, so you will have to manage this yourself. When you change the property, select a lineSize that is appropriate, and loop through all controls that are in play.

Craig

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: Scale Factor

Post by RossG » Sun May 15, 2016 1:20 am

Thanks dunbarx.
Thanks dunbarx.
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: Scale Factor

Post by RossG » Thu Jul 07, 2016 1:24 am

I've been trying to scale a stack and even though
it appears in its new size in the IDE after I save
it and re-open it it appears at the original scale.

LC 7.1.2
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

Post Reply