Jump to content
Software FX Community

ZOrder for Annoations


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...