logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Hintry  
#1 Posted : Saturday, May 6, 2017 2:35:18 AM(UTC)
Hintry

Rank: Newbie

Groups: Registered
Joined: 5/1/2017(UTC)
Posts: 2

Thanks: 1 times
Is there a setting for this?
Paul Rayman  
#2 Posted : Wednesday, May 10, 2017 5:09:33 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
There is no a setting for that, but you can create derived class and override OnMouseMove method

Code:

protected override void OnMouseMove(MouseEventArgs e)
{
	base.OnMouseMove(e);

	var loc = e.GetPosition(this);
	int idx = PointInPage(loc);
	if (idx >= 0)
	{
		Point page_point = ClientToPage(idx, loc);
		var webLink = Document.Pages[idx].Text.WebLinks.GetWebLinkAtPoint((float)page_point.X, (float)page_point.Y);
		var pdfLink = Document.Pages[idx].Links.GetLinkAtPoint((float)page_point.X, (float)page_point.Y);

		if (webLink != null || pdfLink != null)
		{
			//Any code for showing tooltip
		}
	}
}

Edited by user Wednesday, May 10, 2017 5:17:28 AM(UTC)  | Reason: Not specified

thanks 1 user thanked Paul Rayman for this useful post.
Hintry on 5/14/2017(UTC)
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.