[Lazarus] [patch] Debugger: CPU registers: resetting display formats on every restart of the application
Bernd
prof7bit at googlemail.com
Tue Dec 20 07:20:34 CET 2011
2011/12/19 Martin <lazarus at mfriebe.de>:
>> 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
More information about the Lazarus
mailing list