Hey guys, thank you all, I got what I need. I want to apologize about the stupid questions, but I've worked with Pascal most, I have only the basics of Delphi.
Well, to be more descriptive, let's say I want to make something like MapEditor. Look at this code with StringDrid:
procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol,
ARow: Integer; var CanSelect: Boolean);
begin
StringGrid1.Cells[acol,arow]:='a';
end;
I want to have the same...
Well I've got to explain what is all about. I want to represent a twodimensional array of char via Drawgrid. For each symbol I have an icon that should be displayed instead of the symbol. So I need an empty draw grid in the beginning and when a cell is selected, the proper icon to be showed, but...
Well, I really mean to be displayed. This code is helpful, but when I click another cell the image in the previous cell disappears. And I don't want it, I need the image to be there. Can I avoid it somehow?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.