The TeeTools approach is superb! However, it would be nice for the chart to maintain 2 TeeTool Lists. Both would be available in the editor at design time, while only one list would be available to the end user in the editor at run time. This would allow the developer to create(and maintain programmatic control of) a set of persistent tools, i.e. tools that the user could not inadvertently delete, and let the user add additional tools as needed. Currently, after the editor is closed, I have to scan the tools list and recreate any tools(cursors, colorbands etc.) that the end user may have deleted. Having a "hidden" (at least from the end user) Tool list would greatly simplify my task.
Thanks
Dan Sox
Hidden TeeTools
-
- Site Admin
- Posts: 83
- Joined: Wed Nov 12, 2003 5:00 am
- Location: Girona, Catalonia
- Contact:
Hidden TeeTools, use "InternalUse"
Hi Dan
There's already a way to do this, but only in "advanced" mode.
There's a protected variable "InternalUse : Boolean" at every tool.
You can set this variable to True so the tool will not show at the list:
type
TMyTool=class(TCustomChartElement);
...
TMyTool( ChartTool123 ).InternalUse := True;
regards
david
There's already a way to do this, but only in "advanced" mode.
There's a protected variable "InternalUse : Boolean" at every tool.
You can set this variable to True so the tool will not show at the list:
type
TMyTool=class(TCustomChartElement);
...
TMyTool( ChartTool123 ).InternalUse := True;
regards
david
-
- Site Admin
- Posts: 83
- Joined: Wed Nov 12, 2003 5:00 am
- Location: Girona, Catalonia
- Contact:
The "InternalUse" trick is now obsolete and no longer internal.
There is now a public boolean property that controls if a Series or Tool should be displayed at runtime at the editor dialog.
ChartTool1.ShowInEditor := False;
This property can be changed at design-time using the same TeeChart editor and/or the Object Inspector.
There is now a public boolean property that controls if a Series or Tool should be displayed at runtime at the editor dialog.
ChartTool1.ShowInEditor := False;
This property can be changed at design-time using the same TeeChart editor and/or the Object Inspector.