I think OnChange should be triggered for a combo box when the selection changes - I certainly have several forms that rely on this. The attached patch should match the Delphi behavior
Colin
diff -wuNr lazarus/lcl/include/customcombobox.inc /dos/fpc/lazarus.w/lcl/include/customcombobox.inc
--- lazarus/lcl/include/customcombobox.inc	2006-05-07 10:53:50.000000000 +0100
+++ /dos/fpc/lazarus.w/lcl/include/customcombobox.inc	2006-05-13 19:33:52.000000000 +0100
@@ -177,7 +177,10 @@
  ------------------------------------------------------------------------------}
 procedure TCustomComboBox.Select;
 begin
-  if Assigned(FOnSelect) then  FOnSelect(Self);
+  if Assigned(FOnSelect) then
+    FOnSelect(Self)
+  else
+    Change;
 end;
 
 {------------------------------------------------------------------------------

Reply via email to