![]() |
Check a control
I'm using nsDialogs.. I have created a custom page where the user can load a file (with SelectFileDialog) and now I need to make a check, when the user click Next, to verify if the file selected is valid or not. If is not valid (if the name of the file doesn't contain the string "Pack") I need to open a message that ask to the user to select a correct file. Thanks for help!
|
You will need a callback function.
I guess you'll find all the info you need into nsDialogs documentation. |
But how can I set to don't leave the custom page if a variable has particular values?
|
If you're using nsDialogs, then it won't leave the page anyway (that was a behavior of InstallOptions(2/Ex)). If you want to enable/disable the 'Next' button, you can do so in code as well.
The following code simply checks folder name validity - should be simple enough to adjust to check whether the specified file has 'pack' in it; code: |
| All times are GMT. The time now is 17:49. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.