
Some ActiveX controls calculate their distances not in Pixels but in a unit called Twips. Twips are used to calculate the screen in actual inches. There are 1440 Twips per inch. Use this method to convert the Y coordinate Pixels to Twips.
Returns the following according to the situation:
Copy Code |
|---|
(Odcl_YPixelsToTwips nPixels [as Integer]) |
Copy Code |
|---|
; Convert this value (Odcl_YPixelsToTwips MyProject_MyForm_MyControl 60) |