|
|
|
|
#1 |
|
Junior Member
Join Date: May 2011
Posts: 5
|
Issues with ListBox
Hi,
I'm having issues with the listbox control. I have created a custom page with a listbox, and am populating it with strings read from a file(>1000 lines). The problem I'm experiencing is that while the items are being inserted into the listbox, I do not see them there until the process completes. Now the interesting part is that I can see the vertical scrollbar shrink. Once the file read is complete, then it displays the items in the listbox..... Below is excerpt for the insertion of the strings. code: Any ideas how to get around this? I'm trying to accomplish something similar to the install part where you can see the details of the installation. Thanks in advance.... |
|
|
|
|
|
#2 | |
|
Major Dude
|
Quote:
Try to send WM_REDRAW message after each LB_INSERTSTRING - but you will lose a lot of performance! 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 |
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2011
Posts: 5
|
How is this done in the MUI_PAGE_INSTFILES where you can see the items being inserted in the details box (I assume WM_REDRAW is being sent??)
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
That uses a list view control and inserts items from another thread separate to the UI thread.
Stu |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: May 2011
Posts: 5
|
Are there any examples out there that mimic the INSTFILES page? If not can you point me in the right direction with the listview?
Thanks |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Search Google for "nsis listview".
Stu |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jun 2011
Posts: 15
|
ListBox Multiselectable
Please teachme how to get the selected strings in a ListBox with the style ${LBS_MULTIPLESEL}
${NSD_LB_GetSelection} return only a item, I want recover several items. Please helpme! Last edited by vicokoby; 10th June 2011 at 23:05. Reason: Missing details |
|
|
|
|
|
#8 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
|
|
|
|
|
|
#9 | |
|
Junior Member
Join Date: Jun 2011
Posts: 15
|
Please helpme with this issue,
This is a try to get the selected items Quote:
Example complete: ListBoxMultipleSel.nsi Please give me more help! |
|
|
|
|
|
|
#10 | |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Your LB_GETTEXT code is ok, but you need to get the item index out of the array you filled with LB_GETSELITEMS
Quote:
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
|
#11 |
|
Junior Member
Join Date: Jun 2011
Posts: 15
|
Thank you very much!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|