Draw a circle from point of click with a fixed radius

Hi,

I want to draw a circle after clicking with the mouse on the map and draw a 500 Km radius circle.
My problem is that DrawCircleEx draws a circle in pixels and not Km.

Could you please help me out?

Thanks and best regards,
M. Nagy