Shwetha
7th November 2007 06:13 UTC
Selecting all the items in a listbox
I have a installer(.nsi) file which contains a listbox ,in which all the plam users are listed.Also it has two buttons one select all for selecting all the items in the list box and unselect all for unselecting the same.
On compiling this script ,.exe set up is created,all the users are listed inside the list box but on clicking the select all ,none of the items gets selected.
This set up file is called programatically inside a plugin project for publishing onto the palm.
When i compile and run the .nsi file no operation takes place.Can any one help me out in this.
Afrow UK
7th November 2007 10:30 UTC
Did you write this script?
Use LB_SETSEL with SendMessage.
Stu
Shwetha
7th November 2007 10:40 UTC
Actually I have not written this script .No where in the script such message are used.
I will try using this .Thanks once again
Shwetha
22nd November 2007 06:48 UTC
I tried but it doesnt seems to be working here is the code that i have used
SendMessage $R0 ${LB_SELITEMRANGEEX} 0 $count
where the count is the total number of items in the list box ..on using !define LB_SELITEMRANGEEX 0x0183 it pops up an error saying already defined .What can be the problem.
Afrow UK
22nd November 2007 17:42 UTC
Use LB_SETSEL with the 2nd parameter of -1 to select all items. They are already defined in WinMessages.nsh
Stu
Shwetha
7th December 2007 11:35 UTC
i have to add something here,steps suggested by you was really helpful.Many thanks to u .....