doing Scrollbox.ScreenToControl(Mouse.cursorPos) does not seem to account for the scrollbars?
The value I am getting is the same as SCreenToClient which does not care where the scrollbars are in my
Delphi install which does not account for the scrollbars...
I would of thought the ScreenToControl in the scrollBox would of done that instead...
procedure TForm1.ScrollBox1Click(Sender: TObject);
begin
With TScrollBox(Sender) do
begin
Form1.Caption := (ScreenToClient(Mouse.CurSorPos).X).Tostring
End;
end;
So who is or correct here?
P.S.
I just cheked that with the Form, it also seems to account for the scrollbars...
Hmm, my old Delphi does not nor does it state on the net with the latest if does.
Can someone with recent version of Delphi check this ?