ListBox example

From NSIS Wiki
Jump to navigationJump to search
Author: Instructor (talk, contrib)


Description

  1. Modern UI custom page
  2. FileRequest control (autoadd in ListBox or not)
  3. Add file to ListBox button
  4. Delete file from ListBox button
  5. You must select file to enable Next button and Delete button
  6. If file already exists in ListBox then shows message
  7. If file inputed in FileRequest manually and it not exists then shows message

When adapting this to your script:

  1. "GetDlgItem $1 $HWND 1203". Note that "1203" is the dialog ID of that control within the custom page. For custom pages, Field 1 is assigned the ID of 1200, Field 2 gets 1201, Field 14 would be 1213, and so on.

Download

Listbox.zip (1 KB)