This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, September 8, 2011 6:49:49 AM(UTC)
Groups: Registered
Posts: 3
I am implementing custom stamps in our C# app.
I have this code that executes to set the picture of the stamp when the user selects it:
foreach (AnnAutomationObject obj in _annAutomationManager.Objects)
{
if (obj.Id == AnnAutomationManager.StampObjectId)
{
//Modify the current stamp object to be the selected image
AnnStampObject stamp = obj.Object as AnnStampObject;
if (stamp != null)
{
AnnPicture pic = new AnnPicture(Image.FromFile(stampFilename));
pic.TransparentMode = AnnPictureTransparentMode.UseColor;
pic.TransparentColor = Color.White;
stamp.Picture = pic;
break;
}
}
}
//Set the stamp as the active tool
_annAutomationManager.CurrentObjectId = AnnAutomationManager.StampObjectId;
Everything works fine, but whenever I draw it, I get the annotation properties dialog popping up. How can I disable this from showing on draw? (I still want it available when right-click)
Thanks,
Brent
#2
Posted
:
Friday, September 9, 2011 2:15:58 PM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
Hello Brent,
Try adding this to your code:
_annAutomationManager.ShowTextObjectsPropertiesDialogAfterDraw = false;
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Monday, September 12, 2011 4:15:30 AM(UTC)
Groups: Registered
Posts: 3
Thanks. Knew it would be something simple. ;-)
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.