TDBLookup does not handle the deLayoutChanged event
Original Reporter info from Mantis: TWhyman
-
Reporter name: Tony Whyman
Original Reporter info from Mantis: TWhyman
- Reporter name: Tony Whyman
Description:
TDBLookup supports the TDBLookupComboBox. A deLayoutChanged event typically occurs when TDataSet.EnableControls is called and (e.g.) the dataset has been closed and re-opened while control events were disabled.
If the ListSource.DataSet is closed and re-opened while control events are disabled then the combobox text is not updated when control events are enabled given that TDBLookup does not handle the deLayoutChanged event and the combobox may appear blank.
Additional information:
Attached patch reacts to a deLayoutChanged event by calling the owning TDBLookupComboBox UpdateLookup event. This refreshes the control.
Mantis conversion info:
- Mantis ID: 33428
- OS: LInux
- OS Build: Mint 18
- Platform: x86_54
- Version: 2.3 (SVN)