Jump to content
Software FX Community

Annotation Object questions


User (Legacy)
 Share

Recommended Posts

Hi,

Two questions on Annotation objects.

It seems to use the SizeToFit, I must first assign an arbitrary height and width to the object.

Does this make sense?

Second, I'd love to be able to set the background of the Annotation text object to Transparent to 'protect' the PointMarker.

Suggestions?

Thanks,

Steve

sample code from inside a loop:

'add text object to AnnotX and set options

Set objText = AnnotX.Add(OBJECT_TYPE_TEXT)

'set objText equal to Legend

objText.Text = rsData.Fields(3).Value

objText.Color = vbBlack

objText.Font.Size = 9

objText.BkColor = RGB(215, 255, 215)

'Give it height and width, then SizeToFit

objText.Width = 10

objText.Height = 10

objText.SizeToFit 'can't see objects unless a initial size given.

objText.Attach ATTACH_CENTER, CStr(.XValueEx(j, 0)) & "," & CStr(.ValueEx(j, 0) + 0.05) '.05 fudge factor so not to paint over Point Marker.

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...