Skip to content
⌘ NSIS Forum Archive

Dynamically remove and add new Items to DropList

4 posts

bltomov#

Dynamically remove and add new Items to DropList

Hi,

i want to create custom page with dynamic content, but this works only partially. I can enable, disable some fields, change the selection, but i can't change the content of a DropList (Combobox), the problem is that i can add some items to the combobox with the
SendMessage $Combobox ${CB_ADDSTRING} 0 "STR:test" 
but i want also remove all messages, or some messages. How can i do this, or it's not possible in a nsDialog.

Thank you in advance.
world80#
Take a look at nsdialogs.nsh in include folder.

${NSD_CB_AddString} $VAR STRING
${NSD_CB_SelectString} $VAR STRING
${NSD_LB_DelString} $VAR STRING
bltomov#
Thank you, for the quick reply.
The key was CB_RESETCONTENT to remove all items from the combobox, and CB_ADDSTRING to add or CB_SELECTSTRING to select a string from the Combobox.