I'm trying to resize several controls like graphics, images, buttons, etc...
i want to use the slider in doing this but i don't know the code.
zooming slider
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: zooming slider
Hi ace,
1. welcome to the forum!
2. Please only ONE posting per question, I deleted the duplicate of this thread.
3. What exactly are you trying to do?
Do you want to let the USERS of your app resize the user elements?
Or would you rather use a slider for resizing objects in the IDE?
You would need to add that functionality to the IDE by yourself
I would higly recommend to check these stacks to get the basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html
Best
Klaus
1. welcome to the forum!

2. Please only ONE posting per question, I deleted the duplicate of this thread.
3. What exactly are you trying to do?
Do you want to let the USERS of your app resize the user elements?
Or would you rather use a slider for resizing objects in the IDE?
You would need to add that functionality to the IDE by yourself

I would higly recommend to check these stacks to get the basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html
Best
Klaus
Re: zooming slider
i have a group of objects and in order for users to view these clearly, i want to add a slider for them to use in zooming in and out.
Re: zooming slider
HI ace,
not an easy task, since you cannot resize a group "en bloc"!
You need to resize all the objects in a group separately,
while keeping their relative postitions etc.
Can't you use a screenshot/image for this?
Will of course only work if the objects are only displayed and
not functional like buttons or fields.
In any case you need to script the "on scrollbarbdrag" message of your slider!
It comes with a parameter = the actual current "thumbposition" in "real time"!
Example:
Best
Klaus
not an easy task, since you cannot resize a group "en bloc"!
You need to resize all the objects in a group separately,
while keeping their relative postitions etc.
Can't you use a screenshot/image for this?
Will of course only work if the objects are only displayed and
not functional like buttons or fields.
In any case you need to script the "on scrollbarbdrag" message of your slider!
It comes with a parameter = the actual current "thumbposition" in "real time"!
Example:
Code: Select all
on scrollbardrag tValue
set the width of btn "a button" to tValue
end scrollbardrag
Klaus