mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 06:59:21 +02:00
Cocoa: replace deprecated functions in CocoaScrollers
This commit is contained in:
parent
3bfa4b5a16
commit
189a26739f
@ -436,8 +436,10 @@ begin
|
|||||||
f.origin.y := 0;
|
f.origin.y := 0;
|
||||||
hr := f;
|
hr := f;
|
||||||
vr := f;
|
vr := f;
|
||||||
hw := NSScroller.scrollerWidth;
|
hw := NSScroller.scrollerWidthForControlSize_scrollerStyle(
|
||||||
vw := NSScroller.scrollerWidth;
|
hrz.controlSize, hrz.preferredScrollerStyle);
|
||||||
|
vw := NSScroller.scrollerWidthForControlSize_scrollerStyle(
|
||||||
|
vrt.controlSize, vrt.preferredScrollerStyle);
|
||||||
vr.size.width:=vw;
|
vr.size.width:=vw;
|
||||||
vr.origin.x:=f.size.width-vr.size.width;
|
vr.origin.x:=f.size.width-vr.size.width;
|
||||||
hr.size.height:=hw;
|
hr.size.height:=hw;
|
||||||
|
Loading…
Reference in New Issue
Block a user