[Lazarus] Decision required WRT dragging
webpirat at mail.ru
Thu Mar 29 15:27:14 CEST 2012
29.03.12 20:30, Hans-Peter Diettrich wrote:
> Some "bugs" cannot be fixed in code. E.g. when a form or control is
> docked in code, what should happen to its DragKind? When the DragManager
> requires a properly initialized DragKind, in order to start the proper
> operation, should the property of the control be changed, or should we
> introduce distinct calls that would allow to dock non-dockable controls
> programmatically? The patch here checks for an already set HostDockSite,
> which definitely indicates that the control *is* already docked, and
> adjusts the DragKind accordingly.
The code which manually dock something in IDE should check the DragKing.
Nobody except the developer should change this property, especially not
> For the second problem, the illegal change of the mouse capture, what
> should we consider as the reason for such bugs, and how to cure it? This
> can be solved in two ways:
> 1) The DragManager ignores such changes.
> 2) The "dragging" state is checked in the control, before an attempt is
> made to change the capture.
You need to find the control which changes the capture diring the drag
and fix this control code.
More information about the Lazarus