[Lazarus] latest revision breaks editor features!
graemeg.lists at gmail.com
Mon Jul 28 10:39:33 CEST 2008
Dave Coventry wrote:
> I'm sure this has been covered often, but none of my searches seems to find it.
> I have a routine to remove a row from a TStringGrid if the user selects it.
> The problem is that the onSelection event seems to be trigered twice:
> procedure TForm1.StringGrid1Selection(Sender: TObject; aCol, aRow: Integer);
> var i:integer;
> if messageDlg('Remove
> for i:=arow to StringGrid1.RowCount-2 do
> The user will click the item to be removed, the dialog will appear
> asking for confirmation to delete the row, but on clicking yes, while
> the row is deleted as expected, the dialog pops up again, asking the
> user if the next line should be deleted.
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
Out of your question
you can use
TStringGrid.DeleteColRow instead of your code
More information about the Lazarus