2.301 .scalestyle

This attribute controls the display and scaling of a picture or tile pattern.

A scaling has an effect when the tile resource is used in the .picture, .picture[enum], .picture[integer] and/ or .picture_hilite[integer] attributes.

Definition

  • Data type

    enum

  • Access

    get, set

  • changed event

    no

Value range

scalestyle_none
The pattern or image is not scaled. .tiledpi has no impact.
scalestyle_any
The height and width of the pattern or image are fully enlarged to fit the available area.
scalestyle_prop
Height and width of the pattern or image are enlarged to the available area, whereby height and width proportions of the pattern or image are maintained in any case. I.e. free spaces might appear at the top and bottom or left and right.
scalestyle_num
The pattern or image is scaled according to a specified factor.
scalestyle_auto
The pattern or image is scaled according to the set screen scaling. A scaling compatible to the previous version takes place for the window, treeview and notepage icon.
scalestyle_dpi
The pattern or image is always scaled according to the set screen scaling.

See also the “Scaling” section in the tile esource manual.

RemarkMotif & Qt

The objects menuitem and notepage do not support this attribute or support it only to a limited extent.

Remark aggregate objects:

Aggregate objects that may have an image or tile pattern set via the .tile attribute do not support the .scalestyle attribute.

Availability

Since IDM version A.06.03.a

See also

Chapter “HighDPI Support” in manual “Programming Techniques”