OnCellEdited
OnCellEdited
I am trying to use the OnCellEdited event with TeeGrid but I can't seem to get the event to fire. Is there some setup for it that I need to add?
Re: OnCellEdited
Hello,
It works for me in TeeGrid v1.03 adding it as any other event: DoubleClick the white box next to the event in the Object Inspector to create the event:
It works for me in TeeGrid v1.03 adding it as any other event: DoubleClick the white box next to the event in the Object Inspector to create the event:
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: OnCellEdited
We are handling the events on the parent form. When I attempt to add the OnCellEdited event from the parent form (TAvScreenForm) but it complains that the parameter list is incompatible. I have used the same parameters that are present for the local form but it does not seem to like it.
TCustomTeeGridAccess = class(TVCLTeeGrid);
TAvScreenForm = class(TForm)
.
.
.
procedure OnCellEdited(Sender: TObject; AEditor: TControl; AColumn: TColumn; ARow: Integer; ChangeData: Boolean; NewData: string);
Where have I gone wrong?
TCustomTeeGridAccess = class(TVCLTeeGrid);
TAvScreenForm = class(TForm)
.
.
.
procedure OnCellEdited(Sender: TObject; AEditor: TControl; AColumn: TColumn; ARow: Integer; ChangeData: Boolean; NewData: string);
Where have I gone wrong?
Re: OnCellEdited
Hello,
Do the events from other components in the same form work as usual?
Could you please arrange a simple example project so we can reproduce the problem here?
Thanks in advance.
Do the events from other components in the same form work as usual?
Could you please arrange a simple example project so we can reproduce the problem here?
Thanks in advance.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: OnCellEdited
I have an test case I can send but it is 2.4 MB and will not attach to this reply. How can I send it to you?
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 soluition.
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 soluition.
Re: OnCellEdited
Hello,
http://steema.net/upload
You can use this page:ghanshaw wrote:I have an test case I can send but it is 2.4 MB and will not attach to this reply. How can I send it to you?
http://steema.net/upload
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: OnCellEdited
I have uploaded the test case. The click event behaves normally but the others (DblClick, OnSelect and OnCellEdited) seem to have issues.
Re: OnCellEdited
Hello,
Thanks for the project (note we don't need the .exe) I could reproduce the problems so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1980
Thanks for the project (note we don't need the .exe) I could reproduce the problems so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1980
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: OnCellEdited
The fact that the events don't work correctly on the parent form is a show stopper for us. Any chance the bug fix can be upgraded from enhancement to something more critical?
Re: OnCellEdited
Hello,
After revising the project, we found the OnCellEdited event can be fired without problems declaring it at TTickerForm (where the TTeeGrid is), making sure it calls "inherited", and copying the event to the ancestor TAvScreenForm: I'm also closing the ticket #1980.
Don't hesitate to let us know if we missed something and we'll be glad to take another look at it, and to reopen the ticket if necessary.
After revising the project, we found the OnCellEdited event can be fired without problems declaring it at TTickerForm (where the TTeeGrid is), making sure it calls "inherited", and copying the event to the ancestor TAvScreenForm: I'm also closing the ticket #1980.
Don't hesitate to let us know if we missed something and we'll be glad to take another look at it, and to reopen the ticket if necessary.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |