Hello,

I am trying to get x and y coordinates for the link using framepointer. I am
using following code.

 float p2t = tPresContext->PixelsToTwips();
 nsCOMPtr<nsIRenderingContext> rcontext;
  tPresShell->CreateRenderingContext(tFrame, getter_AddRefs(rcontext));

 nsRect rect = tFrame->GetRect();

This *rect.x* and *rext.y* gives the screen coordinates which are
approximately 5000, 2000 for some link but for my event I need page
coordinates which I get while debugging as 350,150

Could you please tell me how to convert these coordinates to page
coordinates. Is these coordinates calles view coordiates?????

Thanks in advance,

Regards,
Raj
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to