Today my problem of the day is, that TSpeedButton does not seem to support handlers for DragOver and DragDrop.
Is there a way to get drag'n'drop functionality attached to a SpeedButton? In case it helps: for this project a Windows only solution is acceptable.
Long story:
I have Drag''n'Drop enabled controls (VirtualStringTree and ListBox) controls on a form and implemented Drag'n'Drop in between them by implementing DragOver and DragDrop event handlers --> works great.
On the same form, I have a Speedbutton which deletes the currently selected nodes when clicked. Works too.
I thought it would be nice if mouse-addicted users can drag nodes from a tree or list and drop them on the Speedbutton to get them deleted. Unfortunately SpeedButtons, unlike ordinary Buttons or BitButtons, do not seem to support DragOver and DragDrop events.
I already tried clumsy workarounds, like putting a DnD enabled Panel underneath the Button or enabling Drag'n'Drop for the underlying form, but this won't work, sinde the drop is disabled as soon as the mouse cursor enters the rectangle of the Speedbutton. Furthermore I wonder why SpeedButtons won't publish those event handlers, I always though all VCL/LCL controls support them and was baffled to find out that Speedbuttons are an exception - there may be rasons?
Thnx,
Armin.