Colorband Start/End ColorLine issues
Posted: Thu Apr 16, 2009 4:14 am
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.
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.