# ATTR_FIT_MODE (Control)

Type: | Control attribute
Description: | Specifies the placement and sizing of an image within a control. When used on a table, it refers to the default state of new cells when ATTR_TABLE_MODE is set to VAL_GRID.
Control Types: | Picture buttons, picture rings, pictures, tables.
Data Type: | integer
Default Value: | VAL_SIZE_TO_PICTURE (pictures/picture rings/tables), VAL_PICT_CENTER (picture buttons)

Values

VAL_SIZE_TO_IMAGE | Make the control conform to the size of the image.
VAL_SIZE_TO_PICTURE | Make the picture conform to the size of the control.
VAL_PICT_CORNER | Place the picture image at the top-left corner of the control.
VAL_PICT_CENTER | Center the picture image in the control.
VAL_PICT_TILE | Tile or repeat the image so that it fills up the control.