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 : Thursday, September 8, 2011 6:49:49 AM(UTC)

Brent_Y  
Brent_Y

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
 

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 : Friday, September 9, 2011 2:15:58 PM(UTC)

Walter  
Walter

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.
LEAD Logo
 
#3 Posted : Monday, September 12, 2011 4:15:30 AM(UTC)

Brent_Y  
Brent_Y

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.

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