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
- :
- Re: Populating a List Box
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
‎Oct 27, 2009
02:18 AM
Populating a List Box
Hello!
I am using IsntallScript MSI Project.
I want to fill a listbox for Language select, but i get this NULL error:
here's my code:
which calls this procedure:
what's missing then?
I am using IsntallScript MSI Project.
I want to fill a listbox for Language select, but i get this NULL error:
here's my code:
listLanguage = CreateLanguageList();
if (listLanguage = LIST_NULL) then
MessageBox ("Unable to create list of languages", SEVERE);
abort;
endif;
which calls this procedure:
function CreateLanguageList()
LIST listLanguage;
begin
listLanguage = ListCreate (STRINGLIST);
if (listLanguage != LIST_NULL) then
ListAddString (listLanguage, "English (GB)", AFTER);
ListAddString (listLanguage, "English (US)", AFTER);
ListAddString (listLanguage, "Deutsch", AFTER);
endif;
return listLanguage;
end;
what's missing then?
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 27, 2009
03:37 AM
i think the problem is in CtrlSetList:
nResult = CtrlSetList (szDialogName, SD_DLG_SEL_LANG_LIST, listLanguage);
if (nResult != 0) then
// Handle error from CtrlSetList.
MessageBox ("Unable to create folder name list.", SEVERE);
bDone = FALSE; //TRUE;
else
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 05, 2009
12:57 AM
Does anyone familiar with this problem?
better yet, if you have made a successful use of CtrlSetList, can you teach us how, and maybe post the code? i saw the same problem on other resources too. This should work.
by the way, i am working with InstallScript MSI (IS 2010)
better yet, if you have made a successful use of CtrlSetList, can you teach us how, and maybe post the code? i saw the same problem on other resources too. This should work.
by the way, i am working with InstallScript MSI (IS 2010)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 05, 2009
04:38 PM
Where are you calling CtrlSetList? In the DLG_INIT case of a custom dialog's code?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 08, 2009
11:42 PM
it worked in DLG_INIT!
thank you!
what i want to achieve now is to preserve the selected item.
right now, if i select "German" for the language, and i click Next that goes to another dialog. if i click "Back" on that dialog, it goes back to the language dialog but the selected item goes back to the default which is "English" in this case. It should still be "German"
thank you!
what i want to achieve now is to preserve the selected item.
right now, if i select "German" for the language, and i click Next that goes to another dialog. if i click "Back" on that dialog, it goes back to the language dialog but the selected item goes back to the default which is "English" in this case. It should still be "German"