Obtaining current dialog control dimensions?

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?

ctl.cx.and ctl.cy should work, according.to the documentation:


1 Like

Which of course I should have read more carefully! :grinning:


1 Like