Skip to content
⌘ NSIS Forum Archive

Horizontal scroll bar in instfiles page

10 posts

Sadeesh#

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
Anders#
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
Sadeesh#
Yes Andres, it works, thanks again.
But the problem is after adding this piece of code my installer becomes very slow and hags often.
Anders#
you should only call SizeInstFilesColumn once (in installer and uninstaller) not after every detailprint
Sadeesh#
Yeah i have done it only once. I have inserted that macro in my installer and uninstaller section alone.
Sadeesh#
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