mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 21:19:14 +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;
|
||||
ns: NSString;
|
||||
R: NSRect;
|
||||
begin
|
||||
begin
|
||||
//todo: create TCocoaWindow or TCocoaPanel depending on the border style
|
||||
// if parent is specified neither Window nor Panel needs to be created
|
||||
// the only thing that needs to be created is Content
|
||||
@ -415,7 +415,10 @@ begin
|
||||
begin
|
||||
cnt.callback := TLCLCustomControlCallback.Create(cnt, AWinControl);
|
||||
if AParams.WndParent <> 0 then
|
||||
begin
|
||||
NSView(APArams.WndParent).addSubView(cnt);
|
||||
cnt.window.setAcceptsMouseMovedEvents(True);
|
||||
end;
|
||||
end;
|
||||
|
||||
Result := TLCLIntfHandle(cnt);
|
||||
|
Loading…
Reference in New Issue
Block a user