Page 1 of 1

Rectangle Tool won't drag

Posted: Thu Jan 10, 2008 8:23 pm
by 9792387
I'm using Visual Basic Express 2005
I just downloaded TeeChart .NET 3.2.2930.22968.

I am unable to drag a rectangle tool. The mouse pointer changes to the hand with the index finger extended, but the Dragging and Dragged events don't fire and the rectangle doesn't move. AllowDrag is set to true. I verified this by creating a new application, adding a chart control, and then using this code:

Code: Select all

Private WithEvents RectTool As Steema.TeeChart.Tools.RectangleTool

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    RectTool = New Steema.TeeChart.Tools.RectangleTool
    RectTool.Chart = TChart1.Chart
    RectTool.AllowDrag = True
    RectTool.AllowResize = True
    RectTool.Active = True
End Sub

Private Sub RectTool_Dragging(ByVal sender As Object, ByVal e As EventArgs) Handles RectTool.Dragging
    MsgBox("Dragging")
End Sub

Private Sub RectTool_Dragged(ByVal sender As Object, ByVal e As EventArgs) Handles RectTool.Dragged
    MsgBox("Dragged")
End Sub
Jay

Posted: Fri Jan 11, 2008 8:43 am
by narcis
Hi Jay,

Thanks for reporting. Yes, this is certainly a bug (TF02012703) which I have added to our defect list to be fixed for the next maintenance release.

I'm afraid this has been broken in the latest maintenance release. In the meantime, the only solution I can think of is resizing or dragging the rectangle tool as shown here.

Rectangle Tool won't drag

Posted: Fri Jan 11, 2008 5:14 pm
by 9792387
If it helps, it works OK in v3.2.2894.29191.

Jay

Posted: Mon Jan 14, 2008 9:35 am
by narcis
Hi Jay,

Thanks for the information. That's what I suspected.