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

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, March 10, 2008 12:12:54 PM(UTC)

rburrow  
rburrow

Groups: Registered
Posts: 15


How do I keep the annotation property from popping up when a custom annotation is drawn?

Dim tex As New AnnAutomationObject
tex.Id = (mnuitem.Index + 1) * 1000
tex.Name = "Custom"
Dim texp As New AnnTextObject
texp.Pen = New AnnPen(My.Settings.annpencolor, New AnnLength(1, AnnUnit.Display))
texp.Brush = New AnnSolidBrush(My.Settings.annbrushcolor)
texp.TextColor = My.Settings.anntextcolor
texp.Font = New AnnFont(My.Settings.myfontfamilyname.FontFamily, New AnnLength(My.Settings.myfontfamilyname.Size, AnnUnit.Point), My.Settings.myfontfamilyname.Style)
texp.Text = mtext
tex.Object = texp
tex.DrawDesignerType = GetType(AnnTextDrawDesigner)
tex.EditDesignerType = GetType(AnnRectangleEditDesigner)
tex.RunDesignerType = GetType(AnnRunDesigner)
tex.DrawCursor = Cursors.Cross
tex.ContextMenu = AnnAutomationManager.CreateDefaultObjectContextMenu(tex.Id)
tex.UseRotateControlPoints = True
theManager.Objects.Add(tex)
theManager.CurrentObjectId = tex.Id


I am using vb.net and leadtools 15.0.0.36

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, March 12, 2008 12:56:12 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,040

Was thanked: 1 time(s) in 1 post(s)

You can try to achieve this by setting the ShowTextObjectsPropertiesDialogAfterDraw property.

 
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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.133 seconds.