How to make an size adjusting object?

How can i make an object that adjusts its size as an other object does it?

Like when i resize one object the other object resizes the same amount?
1,377 views 2 replies
Reply #1 Top
Here's a good quick tutorial from CerebroJD: https://www.wincustomize.com/Articles.aspx?AID=89481

You can usually resize the main object to whatever size, then use that object's new size to find the values for the other objects. Sometimes it is just a matter of making things equal:


DesktopX.Object("MainObj").Width = 100
DesktopX.Object("DependantObject").Width = DesktopX.Object("MainObj").Width


Other times you'll use a percentage or other system for getting new size:


DesktopX.Object("MainObj").Width = 100
DesktopX.Object(DependantObjectOne").Width = 0.7*DesktopX.Object("MainObj").Width
DesktopX.Object(DependantObjectTwo").Width = 0.3*DesktopX.Object("MainObj").Width


hth