hsc
Posts: 89
Joined: Wed Mar 02, 2016 2:55 pm

Modifying the BrowseDlg

Hi,

I need a modified version of the built-in BrowseDlg that does not verify or try to create the selected folder. For this purpose, I cloned the dialog and removed the "Verify and set selected folder path" event which the "OK" button publishes.

However now I don't know how to read out the value that is stored in the edit field of the dialog. The only clue I have is the "_BrowseProperty" property which is connected to the dialog's edit field, but when I try to get its value, it contains the name of a property and not the value from the edit.

The reason why I want to do this is that I need to modify the selected path before storing it into the calling dialog's property.

Any ideas?
Thank you
Hans
Catalin
Posts: 7033
Joined: Wed Jun 13, 2018 7:49 am

Re: Modifying the BrowseDlg

Hello Hans,

Usually, the value of the edit box control (or any control in which you can input a value) is stored in the property assigned to that control.

For instance, the value stored in the edit box control from the following screenshot is stored in the EDIT_1_PROP property.
Screenshot_209.png
Screenshot_209.png (66.12 KiB) Viewed 1061 times

The "How to select an external file during the installation" article might help you recreate the dialog from scratch.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”