This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Controls not updating
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 17, 2009
04:22 PM
Controls not updating
I've created a few dropdownlist controls on a new blank dialog.
I create a new STRINGLIST object, assign values to it but nothing appears. The control id's do match up on the dialog yet still no values.
Using messages boxes, I can verify that the values do exist and the lists are being created. What gives?
Legend:
EnsureStringList function creates a stringlist if it doesn't already exist.
Setup is a .NET Object with some properties that I return.
[CODE]
// ----[List of Network Domains]---- //
EnsureStringList(domainList);
StrGetTokens(domainList, Setup.GetCurrentDomains(), ",");
MessageBox(Setup.GetCurrentDomains(), INFORMATION);
CtrlSetList(dialogName, DomainId, domainList);
CtrlSetCurSel(dialogName, DomainId, Setup.Configuration.NetworkDomain);
[/CODE]
Even a simple CtrlSetText doesn't work.
I create a new STRINGLIST object, assign values to it but nothing appears. The control id's do match up on the dialog yet still no values.
Using messages boxes, I can verify that the values do exist and the lists are being created. What gives?
Legend:
EnsureStringList function creates a stringlist if it doesn't already exist.
Setup is a .NET Object with some properties that I return.
[CODE]
// ----[List of Network Domains]---- //
EnsureStringList(domainList);
StrGetTokens(domainList, Setup.GetCurrentDomains(), ",");
MessageBox(Setup.GetCurrentDomains(), INFORMATION);
CtrlSetList(dialogName, DomainId, domainList);
CtrlSetCurSel(dialogName, DomainId, Setup.Configuration.NetworkDomain);
[/CODE]
Even a simple CtrlSetText doesn't work.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 17, 2009
06:28 PM
Where are you calling this code? (In the DLG_INIT case of the custom dialog code?) Do return values from CtrlSetZzzz tell you anything?
Does the skeleton code in the "Using InstallScript to Implement Custom Dialogs" and "Using InstallScript to Process Dialog Controls" topics work?
Does the skeleton code in the "Using InstallScript to Implement Custom Dialogs" and "Using InstallScript to Process Dialog Controls" topics work?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 18, 2009
09:27 AM
Yes, I am calling it in the DLG_INIT code. And using MessageBoxes I can tell that the code is firing.
When I create a new dialog I first chose Blank Template. Nothing seems to work when talking with the controls. I chose, create a new scripting template and it works.
I don't know what backend changes are present, but I guess I'll have to work with that template instead.
When I create a new dialog I first chose Blank Template. Nothing seems to work when talking with the controls. I chose, create a new scripting template and it works.
I don't know what backend changes are present, but I guess I'll have to work with that template instead.