Odcl_XPixelsToTwips

(From Extension file)

<< Click to Display Table of Contents >>

Navigation:  ObjectDCL > Free Extra Lisp function > Extra Dialog function >

Odcl_XPixelsToTwips

(From Extension file)

Previous pageReturn to chapter overviewNext page

Odcl_XPixelsToTwips

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 X coordinate Pixels to Twips.

Parameters

nPixels

Integer identifying the amount of pixels to convert.

 

Retuen Values

Returns the following according to thedsituation:

Integer indicating the corresponding amount in twips.

 

Elample

; Convert this value

(Odcl_XPixelsToTwips MyProject_MyForm_MyControl 60)

 

AutoLisp Syntax:

(Setq rValue (Odcl_XPixelsToTwips nPixels [as Integer]))