AntiAlias breaks MouseClick?
Posted: Tue Nov 13, 2007 9:14 pm
I have a bubble chart and I want to display bubble labels on click.
I managed to put together some code that works --- BUT it only works with antialias turned off. (And, the bubbles look VERY bad without antialiasing.
Here's the code:
That works great.
But, if I uncomment this line:
Clicking doesn't work. Two or three bubbles will show a label on click, but it's the wrong label. The other bubbles don't seem to react to the click at all.
Is this a known bug?
How can I have antialiasing on without messing up the Click?
I managed to put together some code that works --- BUT it only works with antialias turned off. (And, the bubbles look VERY bad without antialiasing.
Here's the code:
Code: Select all
Set rs = GetBubbleRS("Unit", "CEO", "")
With TChart1
.Aspect.View3D = False
';.Canvas.UseAntiAlias = True
With rs
Do While Not .EOF
ctr = ctr + 1
TChart1.Series(0).asBubble.AddBubble !LS, !LL * 100, 2.5, !Item, RGB(0, 0, 255)
TChart1.Series(0).asBubble.RadiusValues.Value(ctr - 1) = 0.15
.MoveNext
Loop
End With
.Series(0).asBubble.Pointer.Gradient.Visible = True
tmp = .Axis.Left.CalcXSizeValue(.Series(0).asBubble.RadiusValues.First)
.Axis.Bottom.MinimumOffset = tmp * (1 + 0.4)
tmp = .Axis.Left.CalcXSizeValue(.Series(0).asBubble.RadiusValues.Last)
.Axis.Bottom.MaximumOffset = tmp * (1 + 0.4)
tmp = .Axis.Left.CalcXSizeValue(.Series(0).asBubble.RadiusValues.First)
.Axis.Left.MinimumOffset = tmp * (1 + 0.4)
.Axis.Bottom.Labels.Style = talValue
.Zoom.Enable = False
End With
But, if I uncomment this line:
Code: Select all
.Canvas.UseAntiAlias = True
Is this a known bug?
How can I have antialiasing on without messing up the Click?