So my problem is that I have a TJvDocServerForm with an image inside, now all functionality works when its pinned, however when its unpinned and I try to use the mousewheel to zoom, the form hides straight after the zoom operation.
- The zoom works through a scrollboxmousewheel event that triggers a timer.
- The timer then redraws the larger/smaller image through my own
image class when movement on the mousewheel has stopped. - Through break points it appears the draw is causing the form to hide.
I believe this has got something to do with the focus being lost, however resetting the focus back to he form directly after the draw does not stop the hide as it has already been told to hide.
Is there a way to somehow lock the form from hiding until after the image has been redrawn?