Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
void __fastcall TForm1::FormKeyDown(TObject *Sender, WORD &Key,
TShiftState Shift)
{
static int l = Image1->Left;
static int t = Image1->Top;
if(Key == VK_LEFT)
Image1->Left = l--;
if(Key == VK_UP)
Image1->Top = t--;
if(Key == VK_RIGHT)
Image1->Left = l++;
if(Key == VK_DOWN)
Image1->Top = t++;
}
//---------------------------------------------------------------------------