![]() | 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: | TChart.Canvas throws BeginScene error | ||
|---|---|---|---|
| Product: | FireMonkey TeeChart | Reporter: | Reini <reini> |
| Component: | Chart | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | major | CC: | yeray |
| Priority: | High | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | RAD 11 Alexandria |
| Attachments: | Sample application to show BeginScene exception | ||
|
Description
Reini
2023-03-01 03:32:11 EST
We won't add `BeginScene`/`EndScene` in all our `TTeeCanvas3D` primitives. It wouldn't be a good design. So I'd suggest to do it yourself as you did in the comments. Just note you need to use `ReferenceCanvas`: EqChart.Canvas.ReferenceCanvas.BeginScene; // Do your custom drawing here EqChart.Canvas.ReferenceCanvas.EndScene; Also, I'd suggest you to do the custom drawings at the `OnAfterDraw` event instead of at the button `OnClick`. |