[Lazarus] TStringGrid and cancelling a modal form

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Mon Mar 12 20:05:41 CET 2018

On 12/03/18 17:45, José Mejuto via Lazarus wrote:
> El 12/03/2018 a las 18:25, Mark Morgan Lloyd via Lazarus escribió:> 

> 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.

Yes, the modal form appears while the mouse button is held down (for 
both GTK2 and Qt).

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the Lazarus mailing list