Recent

Author Topic: Form Events, Mouse Events, slow graphics On cocoa  (Read 1051 times)

LazProgger

  • Jr. Member
  • **
  • Posts: 91
Re: Form Events, Mouse Events, slow graphics On cocoa
« Reply #15 on: August 22, 2019, 06:32:03 pm »
PS: I have tested a bit and the error seems to happen in LCLIntf.ScreenToClient(self.handle, p) while X and Y of the MouseDown event are correct.
r61705

I finally came to test it today and it's working now as expected. Thanks!

josh

  • Hero Member
  • *****
  • Posts: 750
Re: Form Events, Mouse Events, slow graphics On cocoa
« Reply #16 on: August 23, 2019, 12:48:14 pm »
Hi

Looking at the behavior when bringtofront is called for a panel. It appears as though the Y ordinates have been flipped.
Is it possible an issue, because Cocoa screen ordinates start top,left and lazarus start bottom-left.

Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

LazProgger

  • Jr. Member
  • **
  • Posts: 91
Re: Form Events, Mouse Events, slow graphics On cocoa
« Reply #17 on: August 23, 2019, 06:33:23 pm »
Hi

Looking at the behavior when bringtofront is called for a panel. It appears as though the Y ordinates have been flipped.
Is it possible an issue, because Cocoa screen ordinates start top,left and lazarus start bottom-left.


Which revision are you using? Maybe this is also related to the LCLIntf.ScreenToClient bug, which was fixed in r61705.

josh

  • Hero Member
  • *****
  • Posts: 750
Re: Form Events, Mouse Events, slow graphics On cocoa
« Reply #18 on: August 23, 2019, 09:17:40 pm »
rev 61748

When panel; is made visible it is in correct location; when bringtofront is called the y ordinate if like flipped. (ie a panel whos y is 10 from the top, is relocated to 10 from the bottom)
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.