Hidden TeeTools

Ideas and wishes for TeeChart
Post Reply
DJ
Newbie
Newbie
Posts: 17
Joined: Mon Apr 26, 2004 4:00 am
Location: So Cal

Hidden TeeTools

Post by DJ » Thu Apr 29, 2004 5:22 am

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

David Berneda
Site Admin
Site Admin
Posts: 83
Joined: Wed Nov 12, 2003 5:00 am
Location: Girona, Catalonia
Contact:

Hidden TeeTools, use "InternalUse"

Post by David Berneda » Fri Jun 11, 2004 5:04 pm

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

David Berneda
Site Admin
Site Admin
Posts: 83
Joined: Wed Nov 12, 2003 5:00 am
Location: Girona, Catalonia
Contact:

Post by David Berneda » Tue Mar 14, 2006 3:00 pm

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.

Post Reply