[Lazarus] Pochecker (was Fuzzy traslations ignored)

Bart bartjunk64 at gmail.com
Tue Sep 30 08:39:14 CEST 2014

On 9/29/14, Giuliano Colla <giuliano.colla at fastwebnet.it> wrote:

>> Wouldn't it be more logical to use DoubleClick (ore select by mouse
>> and have a button on the form)?
> The problem is that:
> 1) the OnItemSelected, which would have been the logical choice, doesn't
> appear to work (for the vsIcon mode) with some popular widgetsets (I
> don't remember which ones, but a couple among gtk2, win32 and Qt)

I'll look into that.
AFAIR it works on Windows and GTK2 Linux.

> 2) OnClick and OnDoubleClick do not provide you neither the ListView
> Item nor the mouse position: you know only that the full window has been
> clicked somewhere. Therefore one is forced to use an event which
> provides mouse position.

No you can access the global Mouse.CursorPos in an OnClick or
OnDblClick and use ScreenToClient to get the relative coordinates.

I will test this apporach in my ListView test suite.
No hurry though, it's a minor issue.


More information about the Lazarus mailing list