Cocoa: Making mousemove events (needed for hint) available for parented Forms

git-svn-id: trunk@43825 -
This commit is contained in:
freq 2014-01-27 13:40:33 +00:00
parent 943ad98d89
commit ad229fa25c

View File

@ -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);