Hello All,
I'm trying to implement some kind of "Edit Mode" in my project where I can move controls and change their size. It should work in a similar way like the Lazarus form designer.
The moving I was able to implement by redirecting the OnMouseDown, OnMouseUp and OnMouseMove to custom methods.
But the problem is that the controls still receive some mouse events, TButton will change its color (in Win7) when the mouse is over it. TSpeedButton even fires a click event. Even if I redirect this as well then still the visual effect of the pushed button would be active.
I made trials with MouseCapture when entering the form area, but that resulted in other problems, that I couldn't handle (e.g. Menuebar didn't receive the first click after the mouse has been captured, etc.).
How can I prevent the controls to respond to the mouse?
or
What would be a good way to implement an "Edit Mode"?
Thanks for Your help!
PS: The solution should work as well under Linux.