Jump to content
Software FX Community

Re: Annotation Object questions


Software FX

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

Archived

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

×
×
  • Create New...