DriveCombo
Posted: Thu Sep 22, 2005 5:51 am
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 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.