Hello Narcís.
The runtime version of the Steema Teechart I'm using is v2.0.50727, also I have looked at article:
http://www.teechart.net/support/viewtop ... +line+drag
I have used the ColorBand capability to satisfy a requirement required within our trending offering. Although for the most part the solution seems to be satisfying the requirements, there are certain facets of the ColorBand tool that are not functioning. I know the article referenced above makes mention of at least some of them, but I'll describe them here as they are very important for the successful adoption of the new enhancement I've created, from a user interaction perspective.
Problem 1.
=======
The cursor changes randomly and inconsistently, and does not change back when moving the mouse over the colorband region. It would be nice if I could orchestrate the functionality such that only when the mouse is over the start or end lines of the ColorBand, the cursor changes. This is required to serve as a visual indication to the user that they can now start dragging the start/end lines. Note the enhancement I've implemented, is such that a user can configure an unlimited number of ColorBand's and have them visible (and even overlapping) at the same time, so managing the cursor state across these multiple instances needs to be manageable.
Problem 2.
=======
Although I've coded the colorbands to enable the *Drag* properties of the contained start/end ColorLine tools (as follows)
protected Steema.TeeChart.Tools.ColorBand colorBand = null;
this.colorBand = new Steema.TeeChart.Tools.ColorBand(tChart.Chart);
this.colorBand.DrawBehind = cINITIAL_DRAWBEHIND_STATE;
this.colorBand.EndLine.Active = true;
this.colorBand.EndLine.EndDragLine += new Steema.TeeChart.Tools.ColorLineToolOnDragEventHandler(EndLine_EndDragLine);
this.colorBand.EndLine.DragLine += new EventHandler(EndLine_DragLine);
this.colorBand.EndLine.DragRepaint = true;
this.colorBand.EndLine.AllowDrag = true;
this.colorBand.EndLine.Chart = this.tChart.Chart;
this.colorBand.StartLine.Active = true;
this.colorBand.StartLine.EndDragLine +=new Steema.TeeChart.Tools.ColorLineToolOnDragEventHandler(StartLine_EndDragLine);
this.colorBand.StartLine.DragLine +=new EventHandler(StartLine_DragLine);
this.colorBand.StartLine.DragRepaint = true;
this.colorBand.StartLine.AllowDrag = true;
this.colorBand.StartLine.Chart = this.tChart.Chart;
this.colorBand.Click += new System.Windows.Forms.MouseEventHandler(colorBand_Click);
this.colorBand.ResizeEnd = true;
this.colorBand.ResizeStart = true;
... I can't get the start/end lines to automatically redraw as they are being dragged (??). Again this would reflect positively upon the implemented enhancement from a usability perspective.
Any reasonable workarounds or recommendations for solving the above problems would be gratefully received.
thanks,
Ben.
Colorband Start/End ColorLine issues
Hello Ben,
Thanks,
I could reproduce your issue in version 2 of TeeChartFor .NET and also with version 3 of it and I have added to the list of Bug Report with version 3 of TeeChartFor .NET with number [TF02014087] we will try to fix it for next versions of TeeChart .NET.Problem 1.
=======
The cursor changes randomly and inconsistently, and does not change back when moving the mouse over the colorband region. It would be nice if I could orchestrate the functionality such that only when the mouse is over the start or end lines of the ColorBand, the cursor changes. This is required to serve as a visual indication to the user that they can now start dragging the start/end lines. Note the enhancement I've implemented, is such that a user can configure an unlimited number of ColorBand's and have them visible (and even overlapping) at the same time, so managing the cursor state across these multiple instances needs to be manageable.
I couldn't reproduce your issue, here. Please, could you send us a simple example project we can run "as-is" to reproduce the problem here?You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.Problem 2.
=======
Although I've coded the colorbands to enable the *Drag* properties of the contained start/end ColorLine tools (as follows)
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hi Sandra.
As usual thanks for the quick reply.
With regard to the Problem 1., will this be fixed in the version I'm using?
With regard to Problem2., I've created a simple sample and the drag operation seems to work flawlessly (??). Can you think of anything I'm doing (perhaps with some of mouse event), that might be 'interfering' with the colorband edge drag operation? Perhaps by setting the tChart.CancelMouse flag, or how the tChart1.AutoRepaint flag is used?
There is a third issue. This relates to zooming in and then back out when a colorband is active. After zooming back out, it seems that one or both of the colorband edges are not where they actually should be. It seems that the edge prior to the zoom operation is shown, but that there is also an additional edge drawn, where this additional edge is draggable (really is the new edge for the colorband), while the original painted edge has no effect, and will eventually disappear after dragging the real colorband edges several times - are you seeing this too? (Note seems to happen when you scroll part of the colorband off the chart and then scroll it back into entire view).
cheers,
Ben.
As usual thanks for the quick reply.
With regard to the Problem 1., will this be fixed in the version I'm using?
With regard to Problem2., I've created a simple sample and the drag operation seems to work flawlessly (??). Can you think of anything I'm doing (perhaps with some of mouse event), that might be 'interfering' with the colorband edge drag operation? Perhaps by setting the tChart.CancelMouse flag, or how the tChart1.AutoRepaint flag is used?
There is a third issue. This relates to zooming in and then back out when a colorband is active. After zooming back out, it seems that one or both of the colorband edges are not where they actually should be. It seems that the edge prior to the zoom operation is shown, but that there is also an additional edge drawn, where this additional edge is draggable (really is the new edge for the colorband), while the original painted edge has no effect, and will eventually disappear after dragging the real colorband edges several times - are you seeing this too? (Note seems to happen when you scroll part of the colorband off the chart and then scroll it back into entire view).
cheers,
Ben.
Hello Ben,
Thanks,
This is most unlikely. Notice that TeeChart for .NET v3 was released about 2 years ago and v4 is about to be released so we don't have plans to publish any v2 release for now.With regard to the Problem 1., will this be fixed in the version I'm using?
I could reproduce your line issue with version 2 of TeeChart for .Net, but with TeeChartfor .Net v3 I couldn't reproduce this and works fine. I recomend that you download evaluation version of TeeChartFor .Net v3 you can find in next link http://www.steema.com/downloads/form_tch_net.htmlPlease let me know if you have any suggestions/workarounds for the panning/zooming Colorband start/end line issue...
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |