Old 11th May 2012, 00:01   #1
elbaso
Junior Member
 
Join Date: May 2012
Posts: 2
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!
elbaso is offline   Reply With Quote
Old 11th May 2012, 09:57   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,361
Send EM_SETREADONLY to it using SendMessage.

Stu
Afrow UK is offline   Reply With Quote
Old 11th May 2012, 18:30   #3
elbaso
Junior Member
 
Join Date: May 2012
Posts: 2
Quote:
Originally Posted by Afrow UK View Post
Send EM_SETREADONLY to it using SendMessage.
Thanks, this worked perfectly.
elbaso is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Tags
dirrequest

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump