![]() | 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: | Errors using events in the parent form | ||
|---|---|---|---|
| Product: | TeeGrid for Delphi | Reporter: | yeray alonso <yeray> |
| Component: | Grid | Assignee: | david berneda <david> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | enhancement | ||
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=21&t=16786 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: |
test project
working project |
||
Created attachment 812 [details]
working project
Closing as "Not a bug". The event should be assigned at the form where the Grid is, making sure it calls inherited, and then you can copy the event to the ancestor.
|
Created attachment 809 [details] test project See the project attached and the description from the customer: "I have defined the methods for the events (OnClick, OnDblClick, OnCellEdited and OnSelect) for Section4 of the Ticker form on the parent form (AvScreen). The first issue comes when trying to attach the OnCellEdited event to the Section4 TeeGrid. You have to type it but cannot select it. When you go to save it complains about this event having an incompatible parameter list. It seems to work unless I try to use the NewData in the method. This causes a memory overflow issue. The second issue is when I add the OnSelect event it causes an AccessVioaltion when you launch the Ticker form which raises hell with all of the FormCreate logic. The third issue can be seen by removing the OnCellEdited and OnSelect events the Ticker form. The form then loads normally but if you double click on a cell you only get the OnClick event at the parent form. Removing the OnClick event allows the OnDblClick event to work but obviously isn't a solution."