[Lazarus] TStringGrid and cancelling a modal form
joshyfun at gmail.com
Mon Mar 12 18:38:09 CET 2018
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:
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.
More information about the Lazarus