From: <ob...@us...> - 2006-06-27 12:16:41
|
Revision: 10745 Author: obones Date: 2006-06-27 05:16:31 -0700 (Tue, 27 Jun 2006) ViewCVS: http://svn.sourceforge.net/jvcl/?rev=10745&view=rev Log Message: ----------- Mantis 3401: AutoComplete now works more than once. Modified Paths: -------------- trunk/jvcl/run/JvInspector.pas Modified: trunk/jvcl/run/JvInspector.pas =================================================================== --- trunk/jvcl/run/JvInspector.pas 2006-06-27 10:07:21 UTC (rev 10744) +++ trunk/jvcl/run/JvInspector.pas 2006-06-27 12:16:31 UTC (rev 10745) @@ -6079,8 +6079,16 @@ if not Assigned(FAutoComplete) then begin FAutoComplete := TJvEditListBoxAutoComplete.Create(TCustomEdit(EditCtrl), ListBox); - FAutoComplete.OnDropDown := AutoCompleteStart; + end + else + begin + // Mantis 3401: AutoComplete component is already created, but the + // EditCtrl and ListBox properties may have been reset to nil, especially + // by the DoneEdit call. Hence the need to reaffect them. + FAutoComplete.EditCtrl := EditCtrl; + FAutoComplete.ListBox := ListBox; end; + FAutoComplete.OnDropDown := AutoCompleteStart; FAutoComplete.AutoComplete(Key); end; end; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |