![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | Allow CursorTool initialization to a defined X/Y value | ||
|---|---|---|---|
| Product: | HTML5 JavaScript TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Tools | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | CONFIRMED --- | ||
| Severity: | enhancement | ||
| Priority: | Highest | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=18&t=15023&view=unread#unread | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Fix suggestion:
We could add a property to "force" the cursor to be drawn at a given position. Adding this next to the code above at the dodraw funtion in Tee.CursorTool:
this.calcRect();
if (!old)
old=new Point(r.x+0.5*r.width, r.y+0.5*r.height);
if (this.force)
old=this.force;
So the customer will be able to do something like this:
Chart1.draw();
cursor.start=new Point(Chart1.axes.bottom.calc(1), null);
|
At the dodraw funtion in Tee.CursorTool the initial position is initialized as follows: this.calcRect(); if (!old) old=new Point(r.x+0.5*r.width, r.y+0.5*r.height); Since both r and old are local variables, the user can't set them out of the class.