2.252 .picture
The .picture attribute defines the picture (tile resource) that is displayed in an image object with .style = 0 (pushbutton, default value).
At the notepage, the attribute defines the picture that is displayed next to the label in the notebook tab belonging to the notepage.
For the control object this attribute defines the picture that is displayed in the inactive state of the object.
Definition
-
Data type
object [ tile ]
-
Access
get, set
-
changed event
yes
image
Setting the attribute .mouseover to true enables the image object to show other pictures when the mouse pointer is moved over the object or the left mouse button is pressed over it. These pictures are defined in the .picture[enum] attribute with the indexes tile_mouse_over and tile_active_mouse_over.
With .style <> 0, the pictures displayed in different situations are defined in the indexed .picture[enum] attribute as well.
Instead of a tile resource, the .picture attribute can also be assigned a string with the file path of a graphic file. However, this feature may be dropped in future IDM versions. Therefore it is recommended to use a tile resource with an external graphic file.
Note for the IDM for Qt
Specifying a file path (data type string) is not supported.
See also
Attribute
Note for the notepage
The size of the picture is set with the attributes .picheight and .picwidth of the notebook for all contained notepages.
See also
Resource tile