mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 10:39:20 +02:00
Cocoa: Making mousemove events (needed for hint) available for parented Forms
git-svn-id: trunk@43825 -
This commit is contained in:
parent
943ad98d89
commit
ad229fa25c
@ -366,7 +366,7 @@ var
|
|||||||
cnt: TCocoaWindowContent;
|
cnt: TCocoaWindowContent;
|
||||||
ns: NSString;
|
ns: NSString;
|
||||||
R: NSRect;
|
R: NSRect;
|
||||||
begin
|
begin
|
||||||
//todo: create TCocoaWindow or TCocoaPanel depending on the border style
|
//todo: create TCocoaWindow or TCocoaPanel depending on the border style
|
||||||
// if parent is specified neither Window nor Panel needs to be created
|
// if parent is specified neither Window nor Panel needs to be created
|
||||||
// the only thing that needs to be created is Content
|
// the only thing that needs to be created is Content
|
||||||
@ -415,7 +415,10 @@ begin
|
|||||||
begin
|
begin
|
||||||
cnt.callback := TLCLCustomControlCallback.Create(cnt, AWinControl);
|
cnt.callback := TLCLCustomControlCallback.Create(cnt, AWinControl);
|
||||||
if AParams.WndParent <> 0 then
|
if AParams.WndParent <> 0 then
|
||||||
|
begin
|
||||||
NSView(APArams.WndParent).addSubView(cnt);
|
NSView(APArams.WndParent).addSubView(cnt);
|
||||||
|
cnt.window.setAcceptsMouseMovedEvents(True);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Result := TLCLIntfHandle(cnt);
|
Result := TLCLIntfHandle(cnt);
|
||||||
|
Loading…
Reference in New Issue
Block a user