Recent

Author Topic: BGRAControls and LazMouseAndKeyInput problem  (Read 2001 times)

garlar27

  • Hero Member
  • *****
  • Posts: 652
BGRAControls and LazMouseAndKeyInput problem
« on: July 13, 2018, 05:34:50 pm »
I tried to use BGRAControls in a project which has a dependency on LazMouseAndKeyInput.
The compiler complains because there are two units with the same name "mouseandkeyinput.pas" in bgracontrols 4.5.1 and lazmouseandkeiinput 0.1 (see attachment).

Question: Is this fixed in newer versions of BGRAControls?

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRAControls and LazMouseAndKeyInput problem
« Reply #1 on: July 14, 2018, 04:14:42 am »
Hi,

Thanks for reporting. We was using some modified version of LazMouseAndKeyImput, but maybe its better to use the Lazarus one and commit the improvements to the bug tracker (basically if I remember well was compiling on Mac OS).

I must be sure that the lazarus one compiles fine in windows, Mac and linux.

But yes, the controls that uses these units are not installed by default in newer versions
https://github.com/bgrabitmap/bgracontrols#optional-components

garlar27

  • Hero Member
  • *****
  • Posts: 652
Re: BGRAControls and LazMouseAndKeyInput problem
« Reply #2 on: July 16, 2018, 08:26:27 pm »
(basically if I remember well was compiling on Mac OS)
Your tests on Mac OS included the package "lazmouseandkeyinput"? Sorry. It's an annoying question but I had to do it  :-[ .

Now I'm curious  :-\
What use did you give to that "mouseandkeyinput.pas" unit? I use it to simulate user interaction (keyboard and mouse events) with the user interface and I can't imagine why a component needs something like that....

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRAControls and LazMouseAndKeyInput problem
« Reply #3 on: July 16, 2018, 08:34:46 pm »
To make virtual keyboards, when you click the key, it sends a real key message, so it can be used on input fields.

I've not tested it personally on a mac, and the provided package was not modified also by myself, I only made the component. There was another people testing it on a mac, and giving me hints on how to make it really cross platform.

 

TinyPortal © 2005-2018