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 »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Scale Factor

Post by dunbarx »

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 »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Scale Factor

Post by dunbarx »

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 »

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 »

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