TE Edit Control Java / HTML-JavaScript Help
Product page

TerScrToTwipsX

Translate screen x position to margin relative x position.

boolean TerScrToTwipsX( ScrX)
int ScrX;The screen client X position (pixels) to translate.

Upon a successful return from this method, the following information can be retrieved by using TerGetOutInt method:

int MargX;

The variable to receive the left margin relative position in twips units. Upon a successful return from this method, the MagX value can be retrieve as following:

MargX=tej.TerGetOutInt("TwipsX")

Return Value: This function returns true when successful.