Reputation: 521
I am working on a Windows installer, in InstallDirdlg dialog I 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?
Upvotes: 0
Views: 688
Reputation: 1919
You can start with a copy of the InstallDirDlg and edit it to suit your needs fairly easility:
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}" />
Upvotes: 4