Jump to content
Software FX Community

Annotation objects


Software FX
 Share

Recommended Posts

There is a work around for this.  There is an enable property that you can set that will not allow the annotation objects to receive mouse clicks.  

AnnotX.Enabled = False

In order for this property to work you do need to create your objects the following way.

Dim Annotx As Object

Set Annotx = New AnnotationX

ChartFX1.AddExtension annotx

If you created the annotation objects with the following code then the enable property will not work.

Dim WithEvents AnnotX As AnnotationX

Set AnnotX = New AnnotationX

ChartFX1.AddExtension AnnotX

Justin Trask

Software FX

-----Original Message-----

From: Gary Kercheck [ mailto:gkercheck@yahoo.com]

Posted At: Wednesday, June 14, 2000 3:10 PM

Posted To: General

Conversation: A basic question about Annotation objects and mouse click

events

Subject: A basic question about Annotation objects and mouse click

events

Francesco,

I have a chart which has two "ARROW" type

annotation objects laid on top of it. They are

working fine but there is one minor annoyance.

Even though I have the "AllowModify" property

for these objects set to FALSE, they still allow the user

to click on them and hilight them. In effect, they

occasionally "steal" mouse click events from the chartFx

object which results in having to click the chart multiple

times to activate the underlying event routine I need to

execute. Is there any way to completely disable Annotation

objects from receiving mouse events? I've tried removing

the "WithEvents" modifier in the declaration of "AnnotX"

in VB but this doesn't change the behavior.

TIA,

Gary

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