How do "make orignal size" by script SOLVED

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
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

How do "make orignal size" by script SOLVED

Post by jmburnod » Tue Dec 09, 2014 6:51 pm

Hi All,
Is there a way by script to "make orignal size" with an image locked ?
Best
Jean-marc
Last edited by jmburnod on Wed Dec 10, 2014 8:54 am, edited 1 time in total.
https://alternatic.ch

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How do "make orignal size" by script

Post by Klaus » Tue Dec 09, 2014 7:04 pm

Hi Jean-Marc,

do you mean:
...
lock screen
set the width of img x to the formattedwidth of img x
set the height of img x to the formattedheight of img x
unlock screen
...
?

Best

Klaus

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: How do "make orignal size" by script

Post by jmburnod » Tue Dec 09, 2014 7:15 pm

Hi Klaus,
Yes. Of course :D
Thanks again
https://alternatic.ch

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How do "make orignal size" by script

Post by Klaus » Tue Dec 09, 2014 7:53 pm

jmburnod wrote:Hi Klaus,
Yes. Of course :D
Thanks again
:D

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

Re: How do "make orignal size" by script

Post by dunbarx » Tue Dec 09, 2014 9:11 pm

Jean-Marc.

Locking the size and loc of any control only keep the user from changing it in run mode. By script, or even by hand in the inspector, those properties are open to modification.

Craig

Post Reply