![]() |
TShortCut belegen
Wie kann ich ein TShortCut belegen?
Wenn ich folgendes mache:
Delphi-Quellcode:
Wie löse ich nun das Problem?
type
TShortCuts = record case ShortCutNum : Byte of 3 : ( DealSC : TShortCut; NoDealSC : TShortCut; SonderTaste : array [1..3] of Boolean; ); end; {...} procedure TfMain.bSettingsClick(Sender: TObject); var ShortCut : TShortCuts; begin ShortCut.ShortCutNum := 3; ShortCut.DealSC := Alt + D; // hier meckert er rum: [Error] Undeclared identifier: 'Alt' ShortCut.NoDealSC := 'Alt + N'; // hier meckert er um: [Error] Incompatible types: 'TShortCut' and 'String' ShortCut.SonderTaste[1] := true; ShortCut.SonderTaste[2] := false; ShortCut.SonderTaste[3] := true; {...} end; |
Re: TShortCut belegen
Hi,
in der Unit Menus gibts ne Funktion ![]()
Delphi-Quellcode:
Gruß
function ShortCut(Key: Word; Shift: TShiftState): TShortCut;
Stephan :dance: |
Re: TShortCut belegen
Und wie wandle ich ein Char ('D') in ein Word um?
[edit]Ha ^^ Dumm ist xP *TShortcut markier* und *F1drück* = Zitat:
|
Re: TShortCut belegen
Hi,
![]() ![]() TextToShortcut hilft Dir dann nicht mehr, wenn Du z.B. eine F-Taste, Home, oder End usw. verwenden willst ;) Gruß Stephan :dance: |
Re: TShortCut belegen
Zitat:
Delphi-Quellcode:
Gruß Hawkeye
key := TextToShortCut('Ende');
s := ShortCutToText(key); |
Re: TShortCut belegen
Klappt das auch, wenns auf einem ...z.B. französischem System läuft?
|
Re: TShortCut belegen
Also eigentlcih wollte ich nur
<strg>+ <alt>+ <shift>+ :D |
Re: TShortCut belegen
Joa dann passt's ja sowieso :D :thumb:
Gruß Stephan :dance: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:49 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