Old 3rd September 2013, 08:17   #1
ilaiyaraja
Member
 
Join Date: Sep 2012
Posts: 81
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?
ilaiyaraja is offline   Reply With Quote
Old 3rd September 2013, 14:24   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,539
Quote:
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...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
java, nsis

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump