Einzelnen Beitrag anzeigen

xaromz

Registriert seit: 18. Mär 2005
1.682 Beiträge
 
Delphi 2006 Enterprise
 
#4

Re: Tastatur --> Shift --> alle eventualitäten

  Alt 2. Feb 2006, 20:41
Hallo,

@Christian18: Da ist alles drin.

AltGr ist eine Kombination aus Alt + Strg. Da ist also alles in Ordnung.

Hier noch meine Lösung:
Delphi-Quellcode:
var
  Caption, Add: String;
begin
  Caption := '';
  Add := '';

  if ssShift in Shift then
  begin
    Caption := 'Shift;
Add :=
' + ';
end;

if ssAlt in Stift then
begin
Caption := Caption + Add +
'Alt';
Add :=
' + ';
end;

if ssStrg in Stift then
Caption := Caption + Add +
'Strg';

Label5.Caption := Caption;
end;
Wer schafft weniger if-Abfragen ?

Gruß
xaromz
  Mit Zitat antworten Zitat