If I use the samples\Bin\Annotation.exe and create a text annotation, the text 'APPROVED by John Smith' is automatically selected and the annotation is in edit mode.
However if I use the source to this, presumably samples\AnyCPU\C#\Annotations\Csharp-Annotations.csproj and do the same thing the text is not selected and the user must double click the annotation to edit.
How do I make c# demo behave like the compiled version?
Thanks.
Richard.
Automatically editing text on creation
Re: Automatically editing text on creation
Hello,
You have to intercept the AnnotationAddedByUser event and than call the DisplayTextEditBox by using the AnnotationIdx parameter.
VB.NET
C#
Let me know if you need further information.
Kind regards,
Loïc
You have to intercept the AnnotationAddedByUser event and than call the DisplayTextEditBox by using the AnnotationIdx parameter.
VB.NET
Code: Select all
Private Sub GdViewer1_AnnotationAddedByUser(ByVal AnnotationIdx As Integer) Handles GdViewer1.AnnotationAddedByUser
GdViewer1.DisplayTextEditBox(AnnotationIdx)
End Sub
C#
Code: Select all
private void GdViewer1_AnnotationAddedByUser(int AnnotationIdx)
{
GdViewer1.DisplayTextEditBox(AnnotationIdx);
}
Kind regards,
Loïc
Who is online
Users browsing this forum: No registered users and 1 guest