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 1980 - Errors using events in the parent form
Summary: Errors using events in the parent form
Status: RESOLVED NOTABUG
Alias: None
Product: TeeGrid for Delphi
Classification: Unclassified
Component: Grid (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: david berneda
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-30 04:49 EST by yeray alonso
Modified: 2018-02-06 05:24 EST (History)
0 users

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


Attachments
test project (225.42 KB, application/x-zip-compressed)
2018-01-30 04:49 EST, yeray alonso
Details
working project (273.36 KB, application/x-zip-compressed)
2018-02-06 05:24 EST, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2018-01-30 04:49:35 EST
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."
Comment 1 yeray alonso 2018-02-06 05:24:26 EST
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.