|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
Header file for creating and handling listview control
I am a Chinese NSIS fan. In a forum, a member named "gfm688" write a header file to create and handle a listview control with the report view. This header file is used to create a list view with report view and handle it. See the url below for details, 8 examples included.
A demo installer with listview control: The source code of this demo is also included. http://nsis.sourceforge.net/Header_file_for_Listview Last edited by jiake; 1st July 2010 at 13:06. Reason: incorrect words in text file |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Excellent. Is there a Wiki page?
Stu |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
No, I post this just the first time here.
|
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Mind making one then? Things get lost on the forum eventually.
Stu |
![]() |
![]() |
![]() |
#5 |
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
OK, never mind, whether making or not.
|
![]() |
![]() |
![]() |
#6 |
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
I meant that you can make a page if you thought it is necessary, I wouldn't mind.
There are still something wrong in the comment of the script, but this does not affect the understanding. |
![]() |
![]() |
![]() |
#7 |
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
|
![]() |
![]() |
![]() |
#8 |
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
For the latest header file please click here:
http://nsis.sourceforge.net/mediawik...a/ListView.zip or view the link above. Maybe errors or bugs in the former attachment on the first floor of this thread. Last edited by jiake; 5th July 2010 at 05:16. |
![]() |
![]() |
![]() |
#9 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
|
![]() |
![]() |
![]() |
#10 |
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
I thought maybe, in fact still some incorrect words in comments or readme file. Later I modify the example and macros in the page but this post is the beginning version, for the administrator have set that I cannot edit after 3 hours. Please edit my first post or remove the attachment, replace it with the page link and lock this thread if you can.
|
![]() |
![]() |
![]() |
#11 |
Junior Member
Join Date: Apr 2010
Posts: 29
|
How does one delete the selected item from the listbox?
There is a NSD_LV_InsertItem call for inserting items, but no NSD_LV_DeleteItem for removing an item. |
![]() |
![]() |
![]() |
#12 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
|
![]() |
![]() |
![]() |
#13 | ||
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
Quote:
Quote:
SendMessage listview_HWND ${LVM_DELETECOLUMN} col_idx 0 SendMessage listview_HWND ${LVM_DELETEITEM} item_idx 0 If you want to delete a specified item but not by item index, see this. A simple example modified by one of that in the attachment. Shows that how to delete selected item, delete all items, reload all items. Just using sendmessage simply. Last edited by jiake; 15th July 2010 at 02:48. |
||
![]() |
![]() |
![]() |
#14 |
Junior Member
Join Date: Feb 2011
Posts: 3
|
![]()
Is it possible to make a column item clickable? I'd like to eventually be able to turn some column item text into a clickable link.
Attached is an example screenshot: |
![]() |
![]() |
![]() |
#15 | |
Major Dude
|
Quote:
Btw in my real job where I work with MFC and I was trying to do this, but with no success ![]() Cool looking installers with custom design: www.graphical-installer.com Create Setup Pages easily: www.install-designer.com Build installers in Visual Studio 2005-2019: www.visual-installer.com or RAD Studio 2009, 2010, XE-10.4 Sydney: www.rad-installer.com |
|
![]() |
![]() |
![]() |
#16 |
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
The example script in the 13th floor of this thread has been updated.
Please visit the Wiki page for the latest example: http://nsis.sourceforge.net/Header_file_for_Listview If any problems or suggestions, please contact me through email. You can find it in signature below, or bottom of Wiki page. Contact me: 137729898@qq.com |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|