TStringGrid - OnMouseUp is not called!

前端 未结 2 1991
孤街浪徒
孤街浪徒 2021-01-23 00:12

I have a weird behavior with TStringGrid in Delphi 7. Delphi does not call the OnMouseUp event if a pop-up menu is associated to the grid. Basically, when the RMB is pressed, th

2条回答
  •  不知归路
    2021-01-23 00:26

    I already took an approach somehow similar with the one described by Sertac: I just don't use the PopupMenu property anymore to assign a pop-up menu to the grid. Instead, inside my grid (my grid is a heavily modified string grid derived from TStringGrid) I handle the mouse down event and display the pop-up the way I want AND do the extra processing I wanted to do BEFORE the menu pops.

提交回复
热议问题