Desktop.SaveIconsGrid
Description
- Aligns icons according to a grid & optionally also saves their relative position details to a file.
Syntax
- Desktop.SaveIconsGrid (xSpacing, ySpacing[, filename])
Parameters
- xSpacing
- (integer) horizontal grid spacing
- ySpacing
- (integer) vertical grid spacing
- filename
- (string) name of the icon positions file, including the ".iconpos" extension
- Optional, default is to not save position details to a file but to just align the icons.
Examples
- Desktop.SaveIconsGrid(30, 20)
- Aligns the desktop icons according to a grid with a relative horizontal spacing factor of 30 & a relative vertical spacing factor of 20.
- Desktop.SaveIconsGrid(30, 20, "deskicons.iconpos")
- Aligns the desktop icons according to a grid with a relative horizontal spacing factor of 30 & a relative vertical spacing factor of 20, then saves the icons' relative positions to the file "deskicons.iconpos".
Notes
- All .iconpos files are kept in the Powerpro folder.
- Positions are stored as numbers that are independent of screen resolution. This enables relative icon positions to be maintained under different screen resolutions.
See Also
-
PowerPro Help CHM > Built-in Commands > *Desktop > Saving and restoring desktop icon positions