![]() |
Problem mit OnKeyDown
Hi,
ich weiß es ist eine Anfängerfrage, aber ich komm einfach nicht drauf. :oops: Was ich will ist, dass beim Drücken von Alt + s ein Button gedrückt wird, so wie bei Icq. Danke für eure Hilfe Flo |
Re: Problem mit OnKeyDown
Delphi-Quellcode:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState); begin if (((key='S')or(key='s')) and (ssalt in shift)) then button1click(button1); end; |
Re: Problem mit OnKeyDown
Normaler Weise reicht es, wenn du vor einem S in der Buttonbeschriftung ein & einschiebst.
z.B.
Code:
[color=red]&S[/color]tart
Ta[color=red]&s[/color]te ... |
Re: Problem mit OnKeyDown
stimmt, das hab ich ganz vergessen... :oops:
|
Re: Problem mit OnKeyDown
das mit dem & war mir bisher nicht bekannt, aber danke für die schnellen antworten
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:44 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz