Archive: Selecting all the items in a listbox


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.


Did you write this script?
Use LB_SETSEL with SendMessage.

Stu


Actually I have not written this script .No where in the script such message are used.
I will try using this .Thanks once again


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.


Use LB_SETSEL with the 2nd parameter of -1 to select all items. They are already defined in WinMessages.nsh

Stu


i have to add something here,steps suggested by you was really helpful.Many thanks to u .....