Archive: Forcing users to use button in DirRequest


Forcing users to use button in DirRequest
Hi,
I'm using a DirRequest object to have users select directories as part of a post-installation configuration page. The text field where the path of the chosen directory is places is editable, and I'd like to make it un-editable. This would force the users to use the directory chooser as the only means of selecting a path, and no copy-pasting from other sources.

Is there a way to disable editing the text field of a DirRequest component, forcing the users to fill it in using the directory chooser button?

Thanks very much!


Send EM_SETREADONLY to it using SendMessage.

Stu


Originally posted by Afrow UK
Send EM_SETREADONLY to it using SendMessage.
Thanks, this worked perfectly.