Steema Issues Database

Note: 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.



Bug 1668 - "Control has no parent window" exception when using TMarksTipTool in a TSubChartTool
Summary: "Control has no parent window" exception when using TMarksTipTool in a TSubCh...
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: 20.170306
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-28 05:50 EDT by yeray alonso
Modified: 2023-03-15 15:28 EDT (History)
3 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
test project (1.84 KB, application/zip)
2016-10-28 05:50 EDT, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2016-10-28 05:50:33 EDT
Created attachment 659 [details]
test project

See the project attached. If you move the mouse over any point in the subchart you get the exception:

"Project Project3.exe raised exception class EInvalidOperation with message 'Control 'MySubChart' has no parent window'."
Comment 1 david berneda 2016-11-13 03:45:47 EST
Note: Subcharts are not real living controls inside a chart, but are painted and redirected mouse events.
Probably the markstip tool is asking its parent chart for ClientRect or BoundsRect or something that is forcing to obtain a subchart windows Handle, and so the exception. If the problem is about bounds, the tool itself should have a rectangle, as an alternative to avoid using the control Handle