mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 10:52:22 +02:00
cocoa: allowing tab controls to be switched at design time
git-svn-id: trunk@61489 -
This commit is contained in:
parent
a5f0691467
commit
7ffa3b81af
@ -544,10 +544,16 @@ end;
|
||||
|
||||
procedure TCocoaTabControl.mouseDown(event: NSEvent);
|
||||
var
|
||||
res : Boolean;
|
||||
itm : NSTabViewItem;
|
||||
begin
|
||||
res := callback.MouseUpDownEvent(event, false, true);
|
||||
if not Assigned(callback) or not res then
|
||||
itm := self.tabViewItemAtPoint( self.convertPoint_fromView(event.locationInWindow, nil ));
|
||||
if Assigned(itm) then
|
||||
begin
|
||||
inherited mouseDown(event);
|
||||
Exit;
|
||||
end;
|
||||
|
||||
if not (Assigned(callback) and callback.MouseUpDownEvent(event, false, true)) then
|
||||
begin
|
||||
inherited mouseDown(event);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user