Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: How can I set the position of the rotate handle for a stamp annotation
Started by JoeBussell at 11-06-2008 13:11. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  11-06-2008, 13:11
JoeBussell is not online. Last active: 12/13/2008 12:04:09 AM JoeBussell

Top 50 Posts
Joined on 06-17-2008
Eugene, OR
Posts 62
How can I set the position of the rotate handle for a stamp annotation
Reply Quote
I am using 14.5, OCX.

When I run the examples and I add a stamp annotation the rotate handle is centered on the stamp just where I want it.  When I create the stamp annotation in code the rotate handle is always on the initial point that I use in the define call.  I would like to call the method that is used in the automated menu option for stamps "reset rotate handle", or otherwise get the rotate handle to occur at the center of my stamp.

Is there a method to create the annotations that I must employ to get the handle to default to the center?  Is there a method to get the handle to reset to its default in code?

   Report 
  11-07-2008, 17:20
Walter is not online. Last active: 12/29/2008 9:00:18 AM Walter



Top 25 Posts
Joined on 04-14-2008
Charlotte, NC
Posts 125
Re: How can I set the position of the rotate handle for a stamp annotation
Reply Quote
Hello Joe,

Could you tell me what demo you used which you used to illustrate this?

If you're using the automation manager, then you can just right click on the object to reset the points.

There's also a method, AnnSetRotateOptions method (ILEADRasterAnnotation), which should allow you to accomplish this as well.
Walter
Technical Support
LEADTOOLS
support@leadtools.com
   Report 
  11-13-2008, 18:15
JoeBussell is not online. Last active: 12/13/2008 12:04:09 AM JoeBussell

Top 50 Posts
Joined on 06-17-2008
Eugene, OR
Posts 62
Re: How can I set the position of the rotate handle for a stamp annotation
Reply Quote
AnnSetRotateOptions does not allow me to specify the location of the rotation handle center.  There is a flag that one can use in the call to reset the rotation handle to the originally defined position, but in the case of the annotations created via AnnDefine the location is always the location of the initial AnnDefine call.

   Report 
  11-17-2008, 13:47
Walter is not online. Last active: 12/29/2008 9:00:18 AM Walter



Top 25 Posts
Joined on 04-14-2008
Charlotte, NC
Posts 125
Re: How can I set the position of the rotate handle for a stamp annotation
Reply Quote
Hello Joe,

Try the AnnEnumerateHandle method (ILEADRasterAnnotation), which will fire a OnEnumerateHandle Event for each handle found if the EnableFireEnumerateHandleEvent property is enabled.

Another option may be to use the API interface instead. L_AnnEnumerateHandles is the equivalent to the COM's AnnEnumerateHandle method.

With these, you should be able to manually set the location of the rotation handle. To find if the handle is the rotate handle, use the constants ANN_HANDLE_TYPE_ROTATE_HANDLE and ANNHANDLETYPE_ROTATE_HANDLE with the COM and API, respectively.

With the handle information specifically, you should be able to manually set where the handle is locatated.
Walter
Technical Support
LEADTOOLS
support@leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » Annotations » Re: How can I set the position of the rotate handle for a stamp annotation

Powered by Community Server, by Telligent Systems