This might be a stupid question but I'm not 100% sure how to proceed from here. There seems to be a bug in TListView on GTK2 that impacts the usage of the right mouse button as soon as there is a popup menu defined for it.
If I right click without the PopupMenu property set it will select the row on mouse down which is the expected behavior of most users (me at least), but as soon as PopupMenu is set to a menu the right mouse button will open the menu but it will not select any row anymore. This does not feel like the behavior I know from any other application I have ever used, this must be a bug. My first idea was to simply leave the PopupMenu property completely empty and simply show the menu manually on mouse down. But I cannot find any example how to manually open a menu that was designed in the form designer? How do I manually instantiate a menu from the data that seems to be hidden somewhere in all the data that the form designer generated? I have not yet tried whether the mousedown comes before the popup menu is opened (or whether it comes at all) so maybe I can also do it the other way around and manually select the row on mouse down and then let the list open its popup menu from the PopupMenu property. Or what would be the most elegant workaround for me around this bug? Or maybe it is easily fixable once and for all in the LCL itself? Maybe just a forgotten line somewhere to properly propagate the mouse event? -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
