Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.166 Beiträge
 
Delphi 12 Athens
 
#12

Re: Navigation mit Pfeiltasten

  Alt 20. Sep 2006, 14:59
Du kannst das natürlich auch noch beliebig erweitern...

z.B:

1 > 2 > 3 > 4 > 1 > ...
Delphi-Quellcode:
VK_RIGHT:
  if ActiveControl = RzBmpButton1 then ActiveControl := RzBmpButton2
  else if ActiveControl = RzBmpButton2 then ActiveControl := RzBmpButton3
  else if ActiveControl = RzBmpButton3 then ActiveControl := RzBmpButton4
  else if ActiveControl = RzBmpButton4 then ActiveControl := RzBmpButton1;
1 > 2 > 1 > ...
und
3 > 4 > 3 > ...
Delphi-Quellcode:
VK_RIGHT:
  if ActiveControl = RzBmpButton1 then ActiveControl := RzBmpButton2
  else if ActiveControl = RzBmpButton2 then ActiveControl := RzBmpButton1
  else if ActiveControl = RzBmpButton3 then ActiveControl := RzBmpButton4
  else if ActiveControl = RzBmpButton4 then ActiveControl := RzBmpButton3;
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
  Mit Zitat antworten Zitat