Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Header file for creating and handling listview control (http://forums.winamp.com/showthread.php?t=320459)

jiake 1st July 2010 12:19

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:
http://forums.winamp.com/attachment....chmentid=47188
The source code of this demo is also included.

http://nsis.sourceforge.net/Header_file_for_Listview

Afrow UK 1st July 2010 12:29

Excellent. Is there a Wiki page?

Stu

jiake 1st July 2010 12:43

No, I post this just the first time here.

Afrow UK 1st July 2010 12:51

Mind making one then? Things get lost on the forum eventually.

Stu

jiake 1st July 2010 13:00

OK, never mind, whether making or not.

jiake 2nd July 2010 01:05

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.

jiake 2nd July 2010 04:18

I made a page:
http://nsis.sourceforge.net/Header_file_for_Listview
I will update in the future.

jiake 5th July 2010 04:43

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.

MSG 5th July 2010 05:38

Quote:

Originally Posted by jiake (Post 2677680)
Maybe errors or bugs in the former attachment on the first floor of this thread.

I suggest you edit the first post as well.

jiake 5th July 2010 07:59

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.

JohaViss 13th July 2010 09:20

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.

Afrow UK 13th July 2010 09:46

Just send LVM_DELETEITEM.

Stu

jiake 15th July 2010 01:43

1 Attachment(s)
Quote:

Originally Posted by JohaViss (Post 2679649)
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.

Quote:

Originally Posted by Afrow UK (Post 2679659)
Just send LVM_DELETEITEM.
Stu

Yes, it is very easy as Afrow said:
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.

lancelhoff 28th February 2011 03:38

Clickable link for Listview column text?
 
1 Attachment(s)
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:

T.Slappy 1st March 2011 05:55

Quote:

Originally Posted by lancelhoff (Post 2750623)
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:

I suppose NO, all this stuff is related to WinAPI and I found no mention about this feature there.
Btw in my real job where I work with MFC and I was trying to do this, but with no success :(

jiake 3rd March 2011 10:57

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.


All times are GMT. The time now is 17:51.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.