Autor Beitrag
cordlesssnake
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: So 30.10.05 18:27 
hi bin neu hier und auch noch nich so der king was delphi angeht

ich hab vor ein programm für mein autolaptop zu schreiben mit dem ich per knopfdruck einelne Programme wie zb navi oder Dvdplayer öffnen kann (einfach buttons halt)

jetzt meine frage wie kann ich einem button eine taste (Hotkey) zuordnen ?

Danke schonmal hab sicher noch andere fragen im laufen der entwicklung


Moderiert von user profile iconGausi: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am So 30.10.2005 um 18:34
Björn karpenstein
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

Windows XP, Linux
D7, K3
BeitragVerfasst: So 30.10.05 19:32 
Hallo!

Schau dir mal die TActionList an, da kannst du ShortCuts festlegen die dann ausgeführt werden. Ist glaube ich der einfachste Weg.

MfG

Björn K.
cordlesssnake Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: So 30.10.05 20:55 
sry wenn ich mich dumm anstell aber wo finde ich die actionlist gg ?

ich nehm mal an bei dem button der ein hotkey bekommen soll oder nicht ?
cordlesssnake Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: So 30.10.05 21:05 
ok ok doch ein schritt weiter ich hab die actionlist gefunden hab aber keine ahnung wie ich jetzt die actionlist und den button "verbindensoll" könnt ihr mir mal en Beispiel geben =?
Björn karpenstein
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

Windows XP, Linux
D7, K3
BeitragVerfasst: So 30.10.05 21:17 
Du legst in der Action-List Actions fest, und gehst dann in die Eigenscshaften von den Button, dadrin gibts ne Eigenschaft "Action" und dann wählst du die ActionList aus. Der Quellcode sollte also in den Actions stehen, nicht im Button.
cordlesssnake Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: So 30.10.05 22:09 
cool danke jetzt nur noch eine frage wie kann ich da bei der action tasten kombis oder einzelne tasten festlegen ?
Björn karpenstein
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

Windows XP, Linux
D7, K3
BeitragVerfasst: So 30.10.05 22:33 
Die Actions in der ActionList haben eine Eigenschaft ShortCut, in der du die Tasten auswählen kannst, die den HotKey darstellen sollen.
cordlesssnake Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: So 30.10.05 22:54 
hmm komisch ich hab jetzt alles gefunden und auch die action1 eingefügt ... also bei dem button

aber jetzt is der button beim star enabled:=false .... abwohl in den oütionen steht das der true ist !
JayK
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: So 30.10.05 23:02 
guck mal, ob in der Action für den Btn in der ActionList Enabled auf true steht. ;)
Daher bezieht der btn das nämlich, wenn er eine Action zugewiesen hat.