title: Delphi: StringGrid, position and Context Menu
body: <p>I'm having a problem with using a TStringGrid and Popup menu</p>
  
  <p>I want to know the Row / Column of the cell that was last active when select an item from my Popup menu.  However when I click on the popup menu, the StringGrid.Row is returned as -1.</p>
  
  <p>I've tried using MouseToCell as part of OnClick, but even after setting SG.Row it still returns as -1 in the PopUp menus routines... I suspect that the problem is the Grid losing the focus.</p>
  
  <p>Are there any solutions to this that don't require OnClick setting a global variable?</p>
  
  <p>I'm using an Action List linked to the items on the Popup Menu to make sure that the actions are consistent between the toolbar and the Popup Menu</p>