开发者

Wix + InstallDirdlg + character limits in pathEdit

开发者 https://www.devze.com 2023-03-18 12:51 出处:网络
I am working on a Windows installer, in InstallDirdlg dialog I开发者_如何学C want to limit the number of characters entered in the pathEdit control.

I am working on a Windows installer, in InstallDirdlg dialog I开发者_如何学C want to limit the number of characters entered in the pathEdit control.

Is there any way to edit this pathEdit control and set the limit to some specified number? Do I have to overwrite the whole InstallDirdlg?


You can start with a copy of the InstallDirDlg and edit it to suit your needs fairly easility:

Customizing Wix dialogs

To limit the PathEdit control you place the max number of characters in curly braces in the Text attribute. For example for max length of 80 this should work (note: I removed all the other control attributes for brevity)

<Control Type="PathEdit" Property="MYPROP" Text="{80}" />

MSDN docs on PathEdit

0

精彩评论

暂无评论...
验证码 换一张
取 消