I've replaced the FolderTree component on the destination dialog with a DriveComboBox component and saved it (the dialog) as a new one.
Drivecombo is needed because, users are allowed to select only the drive where they want to install the application, but the name of the destination folder is not editable (FolderText is disabled).
The problem is, when the Combo changed, only the drive appears in the (eg.: C:\\ or D:\\) FolderText component instead of "drivename + destination folder " (eg.: C:\\eFuvarKIT or D:\\eFuvarKIT).
DriveCombo Object Behavior looks like this:
receives information... : Install Folder
writes information: TARGETDIR
FolderText Object Behavior:
receives...: Installation Folder
writes...: TARGETDIR
The Target Folder field at the Project Properties contains: eFuvarKIT, so TARGETDIR is initialized to eFuvarKIT.
First time the FolderText shows C:\\eFuvarKIT, but after the combo changed it shows only the drive name.
And one another question: how can I filter the list of drives in a drivecombo (Users shouldn't see the CDROM & Network drives in the list).
Thank you in advance if you can give me any suggestions!
Bye,
NagySz.
DriveCombo
This behavior is normal (by design). I suggest you don't display the folder field at all. You can always properly add the folder to the TARGETDIR variable, once the drive has been selected visually.
I would also suggest to check for forbidden paths at this step (after the dialog). The drive combo cannot filter drives, but you can always check to see paths are valid.
Or, of course, you could even make your own combo box, and display only the desired paths you wish to allow, and have the user choose from there. Many possibilities!
I would also suggest to check for forbidden paths at this step (after the dialog). The drive combo cannot filter drives, but you can always check to see paths are valid.
Or, of course, you could even make your own combo box, and display only the desired paths you wish to allow, and have the user choose from there. Many possibilities!
Who is online
Users browsing this forum: No registered users and 100 guests