Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Src - property of the PmgRasterImage object

Description:
The file name with the path to the file with the picture.
Syntax:
String Src
Note:
Property access for read and write. The preset value of this property is defined in the "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 on the next redrawing the panel (see the PmgObject.Refresh method).

This property is also functional in Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oImg = pMe.Items("/RImg0");
var sSrc = oImg.Src;  //reading

oImg.Src = "#pmres:Img/HeatOven02.svg";  //writing

History:
Pm8.01.03: Fixed bug: Sometimes when writing the modification was not done immediatelly.
PROMOTIC 9.0.16 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