Delphi_OSMMap
Delphi_OSMMap copied to clipboard
Zoom by mouse wheel and hide scrollbars
I thing zoom by mouse wheel is a good feature to add on roardmap.
Also hide scrollbars. Now If I try to hide them by TScrollBar properties pan doesn't work.
It's weird, like scaling with the mouse wheel works great, you just need to click on the map to set focus. And if you hide the scrollbars, then the function of dragging the map with the mouse is blocked, since the component is inherited from TScrollBox
Zooming by wheel works from the beginning - I use it every time myself. Probably you want zoom without a focus, just when a mouse is over a map. I added this to TODO As for hiding scrollbars, invisible scrollbars don't allow changing their Position. I'll see if I can cheat them somehow but won't promise anything. If you find a way to, I'll inject it
The zooming by wheel doen't works for me. It not a focus problem, if I try to use the mouse wheel the vertical scroll bar moves so I have a vertical pan.
Maybe you disabled horizontal scrollbar? Do you try Demo or your own app?