mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-29 13:30:27 +02:00
cocoa: patch by David Jenkins - forcefully invalidate the content document for manual scroll. Should help with redrawing customcontrols for 10.14. #34478
git-svn-id: trunk@59397 -
This commit is contained in:
parent
ae5a1b5992
commit
b135ccf3ac
@ -69,6 +69,9 @@ type
|
||||
function lclContentView: NSView; override;
|
||||
function lclClientFrame: TRect; override;
|
||||
function lclIsMouseInAuxArea(event: NSEvent): Boolean; override;
|
||||
procedure lclUpdate; override;
|
||||
procedure lclInvalidateRect(const r: TRect); override;
|
||||
procedure lclInvalidate; override;
|
||||
|
||||
procedure setDocumentView(AView: NSView); message 'setDocumentView:';
|
||||
function documentView: NSView; message 'documentView';
|
||||
@ -305,6 +308,21 @@ begin
|
||||
Result := isMouseEventInScrollBar(Self, event);
|
||||
end;
|
||||
|
||||
procedure TCocoaManualScrollView.lclUpdate;
|
||||
begin
|
||||
documentView.lclUpdate;
|
||||
end;
|
||||
|
||||
procedure TCocoaManualScrollView.lclInvalidateRect(const r: TRect);
|
||||
begin
|
||||
documentView.lclInvalidateRect(r);
|
||||
end;
|
||||
|
||||
procedure TCocoaManualScrollView.lclInvalidate;
|
||||
begin
|
||||
documentView.lclInvalidate;
|
||||
end;
|
||||
|
||||
procedure TCocoaManualScrollView.setDocumentView(AView: NSView);
|
||||
var
|
||||
f : NSrect;
|
||||
|
Loading…
Reference in New Issue
Block a user