![]() | 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: | Implement Shape.Text property in Rectangle Tool's Children | ||
|---|---|---|---|
| Product: | ActiveX TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Chart Tools | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | enhancement | CC: | pep |
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | https://www.steema.com/support/viewtopic.php?f=1&t=17345&p=77145#p77145 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Reviewed and the addition of this new property "Text" into the ITeeCustomShape will generate a conflict with the ITeeShapePosition.Text, as this Text property has been created later in an heredated object. In meantime for the ActiveX users a workaround will be to create more than one rectangle tools instead of using child objects. |
You can create a Rectangle Tool and add children to it. However, you can't access the text of the children by code. In Delphi: procedure TForm1.FormCreate(Sender: TObject); begin with TRectangleTool(Chart1.Tools.Add(TRectangleTool)) do begin Text:='Rectangle Tool'; Shape.Transparency:=10; Shape.Font.Color:=clRed; Shape.Font.Style:=Shape.Font.Style+[fsBold]; AutoSize:=True; Left:=100; Top:=100; with Shape.Children.Add do begin Shape.Font.Color:=clGreen; TCustomTextShape(Shape).Text:='Child 1'; end; end; end; In VB6: TChart1.Tools.Add tcRectangle With TChart1.Tools.Items(0).asRectangle .Text = "Rectangle tool" .Shape.Transparency = 20 .AutoSize = True .Shape.Font.Color = vbRed .Shape.Font.Bold = True .Shape.Children.Add .Shape.Children.Item(0).Shape.Font.Color = vbGreen '.Shape.Children.Item(0).Shape.Text = "Child 1" End With