I have a TTMSFNCGoogleMaps on my form and I have a OnKeyDown handler defined. For some reason, that KeyDown event doesn't fire when I have the map focused. Can someone get me a direction I should check on my form and my map? Thanks in advance!
Please note that the key down event is currently not supported in TTMSFNCGoogleMaps
.
The OnKeyDown
event is a standard Delphi component event that is available by default. However this event is not automatically triggered on the map in a webbrowser component.
However this is a good suggestion and we'll have to investigate if an OnMapKeyDown
event can be added in a future version.
Hi,
I have a mousedownevent for the form. Before I move my cursor into TTMSFNCGoogleMaps, I can fire the mousedownevent. After I have the TTMSFNCGoogleMaps focused, then I can't fire that form mousedownevent any more even I clicked the form outside the map.
Is there anything I need to do to have the form mousedownevent fired?
Thanks!
Hi,
Unfortunately this is a limitation of the WebBrowser
control which the TTMSFNCMaps
component is based on. The WebBrowser
control prevents form mouse events from being triggered.
However the OnMouseDown
event should start getting triggered again when clicking outside the TTMSFNCMaps
component.
If the issue persists, please provide a ready to run sample project that demonstrates the issue so I can further investigate this.
Just want to clarify that keydownevent (not mousedownevent) is prevented from firing for WebBrowser control. Thanks!