How to make an size adjusting object?

Thursday, December 22, 2005 by Schrizsz | Discussion: DesktopX

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?
rabidrobot
Reply #1 Thursday, December 22, 2005 1:51 PM
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
Schrizsz
Reply #2 Friday, December 23, 2005 5:46 AM
Thanks you!

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01