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:

https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Scripting/Control.htm

1 Like

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

Thanks.

1 Like