Autor Beitrag
achi 3.0
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Fr 30.05.08 10:15 
hallo,


wie kann ich einen button ein tastaturknopf zuweisen. d.h. das ich sage button1 wird per enter genauso behandelt wie per click.




mfg danke
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: Fr 30.05.08 10:22 
Setz die Eigenschaft Default des Buttons auf True
achi 3.0 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Fr 30.05.08 11:28 
und wo her weiß der button ob er auf enter oder auf f1 f2 f3 ... reagieren soll.


mfg
zuma
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 660
Erhaltene Danke: 21

Win XP, Win7, Win 8
D7 Enterprise, Delphi XE, Interbase (5 - XE)
BeitragVerfasst: Fr 30.05.08 11:30 
schau dir mal den actionmanager an ..

_________________
Ich habe nichts gegen Fremde. Aber diese Fremden sind nicht von hier! (Methusalix)
Warum sich Sorgen ums Leben machen? Keiner überlebts!
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: Fr 30.05.08 11:47 
user profile iconachi 3.0 hat folgendes geschrieben:
und wo her weiß der button ob er auf enter oder auf f1 f2 f3 ... reagieren soll.


Default ist für Enter, andere Tasten siehe user profile iconzumas Post.
achi 3.0 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Fr 30.05.08 15:50 
wie ich jetzt verstanden habe kann ich eine actionlist erzeugen. nicht schlecht wie kann ich sagen wenn f1 gedrückt wird ist action eins.


wäre nett wenn ihr den befehl kennt.


mfg
Clemens L.
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 158

Win Xp SP3
D6 Enterprise, Turbo Delphi Explorer
BeitragVerfasst: Fr 30.05.08 15:54 
Du kannst die Klasse "ActionManager" auf die Form ziehen! Dann einen Doppelklick auf das Ding, und es öffnet sich ein Dialog! Erstelle dort eine neue neue Aktion und weise ihr links im Menü im Objektinspektor unter Shortcut eine Taste(nkombination) zu!

Dann einen Doppelklick auf die Aktion und da könntest du zum bsp. hinschreiben "Button1.Click;"!

Müsste eigentlich so klappen!