ctl is a static control in a dialog. I expected ctl.width and ctl.height to return numeric values but they both return undefined.
ctl.label = DOpus.LoadImage(someimagefile,ctl.width,ctl.height);
The relevant <control> definition has both width and height explicitly defined. Are current control dimensions simply not available?