Jump to content
Software FX Community

Re: Annotation Object questions


Software FX
 Share

Recommended Posts

1) Yes, because otherwise there would be INFINITE possibilities. One

variable needs to be fixed so that the other remains free.

For instance to show:

"My beautiful red house"

We can show:

My

dutiful

red

house

or

my beautiful

red house

and so on.

You need to fix the width so that we can calculate the height.

2) Yes, the background color can be set to CHART_TRANSPARENT as follows:

AnnObj.BkColor = CHART_TRANSPARENT

--

Frank

SFX

"SteveT" <stephent@compassadv.com> wrote in message

news:z2DI1KaIAHA.1432@sfxserver.softwarefx.com...

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