|
|
|
|
#1 |
|
Junior Member
Join Date: Feb 2011
Posts: 10
|
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? |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Mar 2003
Posts: 571
|
The answer is in the InstallOptions Readme (just above the "Header file" section): HWND2 holds the HWND of the browse button:
PHP Code:
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2011
Posts: 10
|
Yes, HWND2 solved my problem.
Thank you!!! |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Feb 2011
Posts: 10
|
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... |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
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 |
|
|
|
|
|
#6 | |
|
Major Dude
|
Quote:
This is reason why to remove support for ini files
Cool looking installers with custom design: www.graphical-installer.com Create Setup Pages easily: www.install-designer.com Build installers in Visual Studio 2005-2022: www.visual-installer.com or RAD Studio 2009 - 11 Alexandria: www.rad-installer.com |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|