* Fived cursor when using the panning window
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@183 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
3887d4ba32
commit
2b755d51cf
@ -10624,6 +10624,12 @@ begin
|
|||||||
if FStates <> [] then
|
if FStates <> [] then
|
||||||
begin
|
begin
|
||||||
ReleaseCapture;
|
ReleaseCapture;
|
||||||
|
//lcl
|
||||||
|
if hsTracking in FStates then
|
||||||
|
begin
|
||||||
|
if not InHeader(SmallPointToPoint(TLMLButtonUp(Message).Pos)) then
|
||||||
|
TreeView.Cursor := crDefault;
|
||||||
|
end;
|
||||||
if hsDragging in FStates then
|
if hsDragging in FStates then
|
||||||
begin
|
begin
|
||||||
// successfull dragging moves columns
|
// successfull dragging moves columns
|
||||||
@ -17281,7 +17287,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
// Now load the cursor and apply it.
|
// Now load the cursor and apply it.
|
||||||
Cursor := NewCursor;
|
LCLIntf.SetCursor(Screen.Cursors[NewCursor]);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------------------------
|
||||||
@ -23119,6 +23125,7 @@ begin
|
|||||||
// Setup the panscroll timer and capture all mouse input.
|
// Setup the panscroll timer and capture all mouse input.
|
||||||
SetFocus;
|
SetFocus;
|
||||||
SetCapture(Handle);
|
SetCapture(Handle);
|
||||||
|
AdjustPanningCursor(Position.X, Position.Y);
|
||||||
SetTimer(Handle, ScrollTimer, 20, nil);
|
SetTimer(Handle, ScrollTimer, 20, nil);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user