Jump to content
Software FX Community

ZOrder for Annoations


User (Legacy)

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...