mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 14:59:30 +02:00
Cocoa: remove unnecessary Legacy Style-only code in Scroll
This commit is contained in:
parent
ca2bb30540
commit
7f97b8379d
@ -555,13 +555,6 @@ begin
|
||||
scrollBar:= TCocoaScrollBar(TCocoaScrollBar.alloc).initWithFrame(dst);
|
||||
scrollBar.setManager( parent._manager );
|
||||
parent.addSubview(scrollBar);
|
||||
{$ifdef BOOLFIX}
|
||||
scrollBar.setEnabled_(Ord(true));
|
||||
scrollBar.setHidden_(Ord(not AVisible));
|
||||
{$else}
|
||||
scrollBar.setEnabled(true);
|
||||
scrollBar.setHidden(not AVisible);
|
||||
{$endif}
|
||||
scrollBar.preventBlock := true;
|
||||
//Suppress scrollers notifications.
|
||||
scrollBar.callback := parent.callback;
|
||||
|
Loading…
Reference in New Issue
Block a user