An item's swatch size.

Usage

Set_Property(OLECtrlEntID, "OLE.ItemSwatchSize[key]", Array)

Values

Array has the following structure:

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

Indices

IndexDescription
keyAn item's unique key

Remarks

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.

Example

// 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

  • No labels