i've used Lazarus 0.9.6+Freepascal 1.9.8 to develop a small app used to edit csv files for the VegaStrike project (an OpenSource SpaceSimEngine).
it works fine in win32...
BUT when i build this on linux (i use a SuSE 9.2 waiting the 9.3) with the same version of Lazarus+Freepascal, i got problems in the KeyPressEvent.
a keypress of <enter> in either one of the TEdit or the TStringGrid components at runtime does not spawn the relative function.
the two portions of the code are the following:
procedure TForm1.EditKeyPress(Sender: TObject; var Key: char);
begin
if (Key = chr(10)) or (Key = chr(13)) then begin
csv.Cells[csv.Col, csv.Row] := edit.text;
csv.setfocus;
end;
end;
for the TEdit named Edit and
procedure TForm1.csvKeyPress(Sender: TObject; var Key: char);
begin
if (Key = chr(10)) or (Key = chr(13)) then begin
edit.text := csv.Cells[csv.Col, csv.Row];
edit.setfocus;
end;
end;
for the TStringGrid named csv.
again: in win32 it DOES work.
why not in Linux???
need help.