Scripting Icon Size

One Word Answer will be fine

Wednesday, December 5, 2007 by SirSmiley | Discussion: DesktopX

Quick question. By default when an icon is used for an object's picture it automatically defaults to the 32px size regardless of the objects height/width.

Is it possible to script this? If not maybe some thought could be given to reading an object's size and picking the closest icon layer size?
Jingles
Reply #1 Thursday, December 20, 2007 7:29 AM
It seems to me that there used to be a setting that allowed for chooseing the default icon size up to 128x128.It may be in Icon X,FX or even Windowblinds.
It may effect icon size contol in DX. I don't know if it does or if there's a workaround for it.
Also on drag+drop if i go in and assign a name for an icon it is an object and can be
resized at that point.
So knowing these two things I would say the size probably can be changed after the load event has ocurred.
Sorry but I'm not good at scripting to help more but I hope this might help some.

SirSmiley
Reply #2 Thursday, December 20, 2007 10:15 AM
Thanks for the thoughts Jingles. I've tried & haven't been able to access this setting via script.

The reason it is set up the default way makes sense. For the average user they can create drop containers really easy.

My work-a-round for future reference is pretty simple. I'm using a drop the clone script. So, I set up base objects for various icon sizes and read from the users settings to clone the related object. Eg. If the user has 64px as their shortcut size then it clones the base object "objShortcut64", etc.

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