![]() |
Cannot disable whole FileRequest control
Hi,
I have problem with enabling/disabling of the GUI control. I need input control for file selection, so I've used FileRequest control. But there are also two radiobuttons and FileRequest control have to be enabled/disabled according to the radio buttons state. User wants either default file (included in the installation) or browse filesystem for his own already existing file. My .ini file looks like this: code: Page function: code: And my page leave function: code: But the problem is, that enabling/disabling works only for the textbox, not the button for files browsing. The button remains still disabled. I don't know any way how to enable also the buton for files browsing. It is one FileRequest control, so I supposed that enabling will work for whole control (textbox and small button together), but not. Any ideas please? |
The answer is in the InstallOptions Readme (just above the "Header file" section): HWND2 holds the HWND of the browse button:
PHP Code:
|
If I remember correctly the control id for the browse button is 1200 + field number so 1203 in your case. If that doesn't work try 1202 or 1204. I recommend switching to nsDialogs though which makes this kind of thing easier.
Stu |
Quote:
This is reason why to remove support for ini files :confused: |
Yes, HWND2 solved my problem.
Thank you!!! |
I've also tried
code: and it works too. So yes, it's 1200 + Control ID - 1. Thank you guys! Yes, nsDialogs could be better, but in our case it concerns several products and depends on current time possibilities. Now it's not possible, but maybe in future we will switch... |
| All times are GMT. The time now is 17:33. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.