Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 17th July 2009, 09:32   #1
Sadeesh
Junior Member
 
Join Date: May 2009
Posts: 9
Question Horizontal scroll bar in instfiles page

Hi,

I need a horizontal scroll bar in the instfiles page after clicking the show details button.

How should we do this?

Thanks in Advance,
Sadeesh
Sadeesh is offline   Reply With Quote
Old 17th July 2009, 10:04   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,777
code:
Function SizeInstFilesColumn
FindWindow $0 "#32770" "" $HWNDPARENT
FindWindow $0 "SysListView32" "" $0
!ifndef LVM_SETCOLUMNWIDTH
!define LVM_SETCOLUMNWIDTH 4126 ;(LVM_FIRST + 30)
!endif
SendMessage $0 ${LVM_SETCOLUMNWIDTH} 0 0xFFFF
FunctionEnd

Section
DetailPrint "Scrolllllllllllling for this long entry, leeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeets hope soooooooooooooooo hah"
call SizeInstFilesColumn
SectionEnd

Page InstFiles


IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 17th July 2009, 12:02   #3
Sadeesh
Junior Member
 
Join Date: May 2009
Posts: 9
Thanks.

Thanks Anders.

This works, how can we add this in uninstall pages as well?
Sadeesh is offline   Reply With Quote
Old 17th July 2009, 12:19   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,777
change Function/FunctionEnd to !macro/!macroend and call to !insertmacro

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 17th July 2009, 13:40   #5
Sadeesh
Junior Member
 
Join Date: May 2009
Posts: 9
Yes Andres, it works, thanks again.
But the problem is after adding this piece of code my installer becomes very slow and hags often.
Sadeesh is offline   Reply With Quote
Old 17th July 2009, 13:55   #6
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,840
If you remove the code again (and only that code), does that speed it back up?
MSG is online now   Reply With Quote
Old 17th July 2009, 13:59   #7
Sadeesh
Junior Member
 
Join Date: May 2009
Posts: 9
Yes after removing the code, its working fine.
Sadeesh is offline   Reply With Quote
Old 17th July 2009, 14:16   #8
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,777
you should only call SizeInstFilesColumn once (in installer and uninstaller) not after every detailprint

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 17th July 2009, 14:18   #9
Sadeesh
Junior Member
 
Join Date: May 2009
Posts: 9
Yeah i have done it only once. I have inserted that macro in my installer and uninstaller section alone.
Sadeesh is offline   Reply With Quote
Old 20th July 2009, 14:01   #10
Sadeesh
Junior Member
 
Join Date: May 2009
Posts: 9
Hi Anders,

I have one more doubt, the above code shows a scroll bar based on the text printed in detailprint, how to make the scroll bar dynamic based on the installation log printed.

Thanks,
Sadeesh
Sadeesh is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

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