Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PosNameTypeDescriptionDefault
<1>WidthIntegerThe width of the swatch13
<2>HeightIntegerThe height of the swatch13

...

The ItemSwatchSize property establishes item's swatch size. A swatch is a patch of color that can be used to associate an item to a color. By default, swatches are 13 pixels wide and tall. Use this property to alter either the width or height.


TIP: Use the DefSwatchSize property to set the default swatch size for new items.

...

Code Block
// Increase the width of all item's swatches to 16 pixels 
Set_Property(@Window:".OLE_TREE", "OLE.ItemSwatchSize[All]", 16) 

// Set item one's swatch to 8x8 pixels 
Set_Property(@Window:".OLE_TREE", "OLE.ItemSwatchSize[Item1]", 8:@FM:8)

See Also

ItemItemSwatchColorItemSwatchPosition