Keyboard shortcuts 如何在Inno设置中向按钮添加访问密钥
我想将Alt功能添加到我的音频按钮; Alt+M表示静音,Alt+P表示播放 像这样 怎么做?应该输入什么代码?我将在哪里插入代码?这是我的剧本:Keyboard shortcuts 如何在Inno设置中向按钮添加访问密钥,keyboard-shortcuts,inno-setup,Keyboard Shortcuts,Inno Setup,我想将Alt功能添加到我的音频按钮; Alt+M表示静音,Alt+P表示播放 像这样 怎么做?应该输入什么代码?我将在哪里插入代码?这是我的剧本: SoundCtrlButton:=TNewButton.Create(WizardForm); SoundCtrlButton.Parent:=WizardForm; SoundCtrlButton.Left:=8; SoundCtrlButton.Top:=WizardForm.ClientHeight- SoundCtrlButton.高度-8
SoundCtrlButton:=TNewButton.Create(WizardForm);
SoundCtrlButton.Parent:=WizardForm;
SoundCtrlButton.Left:=8;
SoundCtrlButton.Top:=WizardForm.ClientHeight-
SoundCtrlButton.高度-8;
SoundCtrlButton.宽度:=40;
SoundCtrlButton.标题:=
ExpandConstant(“{cm:SoundCtrlButtonCaptionSoundOff}”);
SoundCtrlButton.OnClick:=@SoundCtrlButtonClick;
在Windows控件中,只需在控件标题中的字母前面加上&
即可将is标记为访问键
看
SoundCtrlButton.Caption:='静音';
或者在您的情况下,通过自定义消息间接:
[CustomMessages]
SoundCtrlButtonCaptionSoundOff=&Mute
请参见如何在
Default.isl
中定义标准按钮标题:
ButtonBack=< &Back
ButtonNext=&Next >
ButtonInstall=&Install
ButtonBack=<&Back
按钮下一步=&下一步>
按钮安装=&安装