Page 1 of 1

Hidden TeeTools

Posted: Thu Apr 29, 2004 5:22 am
by 9337233
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, use "InternalUse"

Posted: Fri Jun 11, 2004 5:04 pm
by David
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

Posted: Tue Mar 14, 2006 3:00 pm
by David
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.