2011/12/19 Martin <[email protected]>: >> Why not simply assign the popup to the listview?
When assigning it to the PopUpMenu poperty then it will not select the item before opening the popup (at least it will not move the visible selection until the popup is gone again). It seems this is meant for a menu that conceptually refers to the list as a whole but not the Item the user has clicked (at least on GTK2 it behaves like this, might this be a bug? IIRC I have read something regarding this problem that it cannot be solved differently on GTK2 which means the PopUpMenu property is pretty useless for a TListView). IMHO the user would normally always expect to *see* the selection bar moving to the clicked item before popping up the menu. The only way I have found to have a popup menu fo a TListView that gives the user the proper visual feedback is using the OnMouseUp event.. Bernd -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
