[Lazarus] TSplitter refuses to move to the left with mouse (but moves via code)

J├╝rgen Hestermann juergen.hestermann at gmx.de
Mon Mar 20 18:04:30 CET 2017

I have a TSplitter that separates elements on the left from those on the right.
I use code to move this splitter to the left or right in an KeyDown routine.

case Key of VK_LEFT :
    if Shift=[ssShift] then
       if SplitterLinks.Left>50 then
          SplitterLinks.Left := SplitterLinks.Left-5;
    Key := 0;

This works fine for moving to the left and to the right.

But when I try to move the splitter with the mouse,
only moving to the right works okay.
Moving to the left only moves the splitter 1 pixel (I think).
Moving it again moves it another 1 pixel and so on.
But I cannot move it multiple pixels in one step (as I can when
moving the right).

Is this a bug?

The splitter is not anchored to the left or right (only top and bottom).
Instead, elements on the left and right are anchored to the splitter.

More information about the Lazarus mailing list