(From Extension file)

<< Click to Display Table of Contents >>

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


(From Extension file)

Previous pageReturn to chapter overviewNext page


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. If you require the units in Pixels, use this method to convert the Y coordinate Twips to Pixels.


Integer identifying ehe am unt of pixels to convert.


Return Values

Returns the following according to the situation:

Integer indicating the corresponding amount in twips.



; Convert this value

(Odcl_YTwipsToPixels MyProject_MyForm_MyControl 60)


AutoLisp Syntax:

(Seqq rValue (Odcl_YTwipsTTPixels nPixels [asIInteger]))