Autor Beitrag
hansg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 168

Win XP Professional SP3, Vista Ultimate 32 SP1
Delphi 6 Professional
BeitragVerfasst: So 03.09.06 07:25 
Hallo,
warum geht das nicht?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if ((Key=VK_F5) and (Key=VK_Control))  then GroupBox2.Visible:=true;
end;

Einzelne Tasten gehen aber warum funktioniert diese Kombination nicht?

_________________
Gruß Hans
der Berliner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: So 03.09.06 07:49 
Morjen..
Versuchs mal So:
ausblenden Delphi-Quelltext
1:
if (shift=[ssCtrl]) And (Key=vk_F5)  then GroupBox1.Visible:=true;					

Gruß

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]
hansg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 168

Win XP Professional SP3, Vista Ultimate 32 SP1
Delphi 6 Professional
BeitragVerfasst: So 03.09.06 08:02 
user profile iconder Berliner hat folgendes geschrieben:
Morjen..
Versuchs mal So:
ausblenden Delphi-Quelltext
1:
if (shift=[ssCtrl]) And (Key=vk_F5)  then GroupBox1.Visible:=true;					

Gruß


Hallo,

das funktioniert, Danke für den Tip!

_________________
Gruß Hans