Skip to content
⌘ NSIS Forum Archive

How to create Label repeatly inside the looping condition?

2 posts

ilaiyaraja#

How to create Label repeatly inside the looping condition?

I have created user defined custom page..I have auto increment variable for count.
Based on this count value i want create label.

Function custompage
${While } count ! = 0
${NSD_CreateLabel} 0 0 100% 15u "sample label"
Pop $Label
IntOp $0 $0 - 1
${EndWhile}
FunctionEnd

If the count value is 3.I need to create 3 labels in this page.

Is it possible to create label dynamically?
Anders#
Originally Posted by ilaiyaraja View Post
Is it possible to create label dynamically?
Yes but you probably have to use the count to calculate the top/left label location so they don't overlap...