Exception raised twice when executing SetText.
Original Reporter info from Mantis: giovanni.seara
-
Reporter name: Giovanni Seara
Original Reporter info from Mantis: giovanni.seara
- Reporter name: Giovanni Seara
Description:
Set the OnSetText event of a field to raise an error.
In the DBGrid add the dgTabs option in the Options property.
At run time type a value in the field with the event scheduled and press tab. The exception will be raised twice in a row.
Additional information:
The error does not occur if you make the following change in the KeyDown procedure of the TDBGrid:
case Key of
VK_TAB:
begin
doOnKeyDown;
if (Key<>0) and ValidDataset then begin
if dgTabs in Options then begin
Key := 0;
[...]
MoveSel(false);
end;
end;
end;
Mantis conversion info:
- Mantis ID: 33231
- OS: Windows
- OS Build: 10
- Platform: Desktop
- Version: 1.8
- Monitored by: » giovanni.seara (Giovanni Seara)