ImageSrc - property of object PmiButtonTwo

The file name with the path to the image file displayed on the button in the state 0.
ImageSrc As String
s = oButtonTwo.ImageSrc
Property access for read and write. The preset value of this property is defined in the "Picture file" configurator of this object. It is recommended to always use the path with #pmres: or #appres:.

After writing the pathname of the image file (svg, jpg, png, bmp, wmf..), this new image will be displayed by the graphic item on the next redrawing the panel (see PmiItem.Refresh).

By entering an invalid file or an empty string, displaying the image is suppressed.

This property is also functional for Web panels. (For the MSIE 8 and older browser versions, the property is not functional directly in the script and must be assigned/read by using the SetProp/GetProp methods.) Reading this property is functional for Web panels only if the property has been modified previously - i.e. it is not possible to read the value that has been defined only in the configurator Picture file.
See also:
Displaying the picture in the state 0
JavaScriptVBScriptSelect and copy to clipboard

var oButtonTwo = pMe.Items("/ButtTwo0");
oButtonTwo.ImageSrc = "#pmres:Img/IconRun1.svg";
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice