El 12/03/2018 a las 18:25, Mark Morgan Lloyd via Lazarus escribió:
Running on (Debian) Linux on AMD64 or ARM, Lazarus 1.6.4 and FPC 3.0.2,
I'm seeing different behaviour depending on whether a program uses Qt or
GTK2. The program changes the hardware configuration of a mouse
(Logitech G600) using hidraw, and as such needs to run with root
privilege (e.g. kdesudo or sudo -E).
On the main form I've got (a tabbed notebook containing multiple
instances of) a TStringGrid. The OnSelection event invokes a modal form
(containing nothing of significant complexity) with OK and Cancel
buttons, and stripped down looks like this:
Hello,
Just for testing the OnSelection is raised by mouse click ? If the
answer is yes, try to click the cell and keep the mouse button pressed.
If the form appears the grid is still waiting for a MOUSE_UP (thinking
you are holding MOUSE_DOWN to perform a selection) and the modal form
has its own queue, so MOUSE_UP never arrives.
--
--
_______________________________________________
Lazarus mailing list
[email protected]
https://lists.lazarus-ide.org/listinfo/lazarus