Mathias: ok...bare helt i orden
Ansjos: ok...her er sourcen
procedure TMainForm.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
case Key of
VK_ESCAPE: Close;
VK_ADD: FlashTimer.Interval:= FlashTimer.Interval - 10;
VK_SUBTRACT: FlashTimer.Interval:= FlashTimer.Interval + 10;
VK_RETURN: FlashTimer.Enabled:= not FlashTimer.Enabled;
end;
end;
procedure TMainForm.FlashTimerTimer(Sender: TObject);
begin
if MainForm.Color = clWhite then MainForm.Color:= clBlack
else MainForm.Color:= clWhite;
end;
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GED d- s: a--- C++ U? P L+ E? W++ N? o? K- w
O? M? V? PS PE? Y? PGP++ t 5? X+ R tv+ b+ DI? D+
G e-- h! !r y--
------END GEEK CODE BLOCK------