Hello,
I’m having an issue with loading an image into a dialog window. I can’t figure out where I’m making a mistake.
I’m using Directory Opus 12, and according to the documentation, the .label property should accept an image object.
The object loads correctly, as I tested by retrieving the width of the loaded image,
but the image does not display in the dialog. I’m using Directory Opus 12.
Here is my minimal code:
function OnClick(clickData) {
var dlg = clickData.func.Dlg();
var img2 = DOpus.LoadImage("C:\\Users\\Uzivatel\\OneDrive\\MAIN\\atomic\\inn\\op1.jpg");
dlg.template = "osFyz";
dlg.Control("woo").label = img2;
dlg.Show();
}
==SCRIPT RESOURCES
<resources>
<resource name="osFyz" type="dialog">
<dialog height="216" lang="czech" title="bree" width="462">
<control halign="left" height="64" image="yes" name="woo" title="dei" type="static" valign="top" width="100" x="120" y="42" />
</dialog>
</resource>
</resources>