PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD21] Trap F5 key in Google Maps control
[WD21] Trap F5 key in Google Maps control
Iniciado por guest, 14,jul. 2016 08:49 - 2 respuestas
Publicado el 14,julio 2016 - 08:49
When a user clicks on the Map control, all keys pressed are handled by the control.

Our standards are F5 for refreshing a window. For that we put a button on the side which contains code for refreshing tables etc.

However F5 is used by the MAP control to refresh the control. I cannot pass F5 to our button.

Changing focus (away from the Map control) on mouse up (for example) won't solve the problem and also limits some functions of the Map control.

Some ideas?

Cheers,
Adri
Publicado el 14,julio 2016 - 13:48
Hi Adri,

you could put a control (invisible), on top of the map and capture all events (keys and mouse) on it yourself...

then you sort:
- all 'normal' event, you send the same event to the map control (postmessage)
- event you want to manage, you do whatever you need (for f5, by example, you update your controls, THEN you do a postmessage with F5 to the map control)

Best regards
Publicado el 14,julio 2016 - 15:16
Hi Fabrice,


Thanks, that a good idea. I will try that and post the results here.

Cheers,
Adri