[Lazarus] contnrs.pp(11, 35) Fatal: Can't find unit contnrs used by Masks

Michael Schnell mschnell at lumino.de
Thu Jun 10 09:28:41 CEST 2010


On 8 June 2010 14:49, Juha Manninen <juha.manninen at phnet.fi> wrote:
> Hi
>
> A popup menu has an item to delete a row from a StringGrid.
> This actually works, deleting the selected row:
>  Grid.DeleteColRow(False, Grid.Row);

I've done it like this (inside the popup item click):

procedure TForm1.MenuItem1Click(Sender: TObject);
var
  ControlCoord: TPoint;
begin
  ControlCoord := SG.ScreenToControl(PopupMenu1.PopupPoint);
  SG.DeleteColRow(False, SG.MouseToCell(ControlCoord).Y);
end;

Is this what you meant?

Henry




More information about the Lazarus mailing list