User (Legacy) Posted December 18, 2001 Report Share Posted December 18, 2001 I have noticed that the toolbar for the Annotation extension allows you to control the ZOrder of the annotation objects. However I cannot find any way to do this programmatically. Are there any methods to do this? Link to comment Share on other sites More sharing options...
Software FX Posted December 19, 2001 Report Share Posted December 19, 2001 Here is how you can change the Z-Order of an annotation object Public Sub BringToFront(nObjectIndex As Integer) Dim Obj As IAnnObject Set Obj = AnnotX.Item(nObjectIndex) AnnotX.Remove nObjectIndex AnnotX.Add Obj Obj.Refresh True End Sub Public Sub SendToBack(nObjectIndex As Integer) Dim Obj As IAnnObject Set Obj = AnnotX.Item(nObjectIndex) AnnotX.Remove nObjectIndex AnnotX.Insert Obj, 1 Obj.Refresh True End Sub -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.