gdViewer Annotation Tooltip

Discussions about document viewing.
Post Reply
TimG
Posts: 2
Joined: Fri Aug 24, 2018 10:15 am

gdViewer Annotation Tooltip

Post by TimG » Fri Aug 24, 2018 4:41 pm

Hello,

using the gdviewer showing a pdf/tiff and the mouse is moved over an annotation i want to show a Tooltip containing information about the annotation (author,creation date,...).
I´m a little stuck here because the annotation is not a winforms object that a Tooltip can be added to, so any hints about how to accomplish this would be very nice.

Thanks in advance,
Tim

TimG
Posts: 2
Joined: Fri Aug 24, 2018 10:15 am

Re: gdViewer Annotation Tooltip

Post by TimG » Mon Sep 03, 2018 1:25 pm

Here is my attempt…

Code: Select all

    Private Sub SetAnnotationsToolTips()
        Dim tt As New ToolTip
        For i As Integer = 0 To gdViewer.GetAnnotationCount
            Dim anno As GdPicture14.Annotations.Annotation = gdViewer.GetAnnotationFromIdx(i)
            tt.SetToolTip(anno, anno.Author & vbCrLf & anno.CreationTime.ToString("dd.MM.yyyy HH:mm:ss"))
        Next
    End Sub

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests