Recent

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

LazProgger

  • Full Member
  • ***
  • Posts: 103
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: 1270
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.

The best way to get accurate information on the forum is to post something wrong and wait for corrections.

LazProgger

  • Full Member
  • ***
  • Posts: 103
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: 1270
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)
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

 

TinyPortal © 2005-2018