for i := 0 to ComponentCount do if (Component[i] is TEdit) then TEdit(Component[i]).OnDoubleClick = OnControlDoubleClick;