mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 10:39:09 +02:00
lcl: fix TPairSplitter cursor change (#0013925)
git-svn-id: trunk@20513 -
This commit is contained in:
parent
e88c1fadd4
commit
d37ca80343
@ -269,6 +269,7 @@ begin
|
|||||||
|
|
||||||
if Cursor = DefaultCursors[FSplitterType] then
|
if Cursor = DefaultCursors[FSplitterType] then
|
||||||
Cursor := DefaultCursors[AValue];
|
Cursor := DefaultCursors[AValue];
|
||||||
|
|
||||||
FSplitterType := AValue;
|
FSplitterType := AValue;
|
||||||
|
|
||||||
// TODO: Remove RecreateWnd
|
// TODO: Remove RecreateWnd
|
||||||
@ -336,11 +337,9 @@ end;
|
|||||||
|
|
||||||
procedure TCustomPairSplitter.SetCursor(Value: TCursor);
|
procedure TCustomPairSplitter.SetCursor(Value: TCursor);
|
||||||
begin
|
begin
|
||||||
|
FLoadCursor := Value;
|
||||||
if not HandleAllocated then
|
if not HandleAllocated then
|
||||||
begin
|
|
||||||
FLoadCursor := Value;
|
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
|
||||||
// if widgetset class dont want to set cursor (has no internal splitter) then
|
// if widgetset class dont want to set cursor (has no internal splitter) then
|
||||||
// use default lcl handler
|
// use default lcl handler
|
||||||
if not TWSCustomPairSplitterClass(WidgetSetClass).SetSplitterCursor(Self, Value) then
|
if not TWSCustomPairSplitterClass(WidgetSetClass).SetSplitterCursor(Self, Value) then
|
||||||
|
Loading…
Reference in New Issue
Block a user