ActiveX Controls have been deprecated by Microsoft in the latest versions of the Windows operating system in favor of the DotNet framework and its controls.
While MAXScript still supports ActiveX controls, these have to be installed and registered on the system to be accessible to MAXScript.
As a replacement of ActiveX controls, MAXScript supports DotNet controls in 3ds Max 9 and higher.
The following functions can be used to get the mouse cursor position in ActiveX controls:
getCursorPos <ActiveXControl> removeUIScaling:<true>
Returns a Point2 value in pixels giving the current mouse cursor position in the ActiveX control’s window coordinate space. When removeUIScaling
is true (the default), any scaling required by HDPI displays is removed from the returned Point2.
mapPoint <ActiveXControl> <Point2> applyUIScaling:<true>
Returns a Point2 value in pixels where the input Point2 coordinate value is mapped from the ActiveX control’s window coordinate space to the control's dialog coordinate space. When applyUIScaling
is true (the default), any scaling required by HDPI displays is applied to the returned Point2.