Archive: Dynamic alignment of checkBoxes on a custom page


Dynamic alignment of checkBoxes on a custom page
Hi all,

I am designing an installer with a custom page in it (using nsDialog). In this custom page I have to list all the flavors of a particular product installed on my machine(with checxboxes for the user to select them). I obtain this list by scanning the registry.
Now since there can be as many as 20 flavors of this particular product, I wanted to show them in a 10 rows of 2 columns each like –

X flavor1 X flavor11
X flavor2 X flavor12
X flavor3 X flavor13
X flavor4 X flavor14
X flavor5 X flavor15
X flavor6 X flavor16
X flavor7 X flavor17
X flavor8 X flavor18
X flavor9 X flavor19
X flavor10 X flavor20

I could read from registry and display the first column correctly (flavor1-10; but on reaching 10, when I modify the X and Y co-ordinates (by setting it to say X=150, y = 0) I am not able to get the second column of flavors displayed.

I use
${NSD_CreateCheckbox} $X_Coodu $Y_Coodu 100% 10u “flavor name”
Pop $flavorname_Checkbox

To display the checkboxes.
Any help will be greatly appreciated.


Thanks,
SB


You use checkboxes width a width of 100%, which is the width of the page.
So the second row of checkboxes is hidden behind the first row.
Try using a width of for example 50%, and tweak until you have the best results.


jpderuiter, a big thanks from me :)
I owe you a beer!