Skip to content
⌘ NSIS Forum Archive

Scrollbar for nsDialogs Custom Page?

3 posts

xbarns#

Scrollbar for nsDialogs Custom Page?

Good Morning all,

i am trying to create a custom page that will check (better display the result of) for prerequisites.

!insertmacro MUI_HEADER_TEXT "Prerequisites" "Prerequisites are being evaluated"
    
    nsDialogs::Create /NOUNLOAD 1018
    Pop $0
        
    ${IF} $0 == error
        Abort
    ${ENDIF} 
as things come along, there are more prerequisites than will fit on a page without it looking totally cramped or reducing font size to barely readable.

So i though a scrollbar would be nice, i found https://nsis-dev.github.io/NSIS-Foru.../t-211280.html but it did not do the trick, so far i have been fiddling around, and my last try is:
System::Call 'user32::MoveWindow(i$0,i 20 ,i 70,i 200,i 400,i 0)'
System::Call 'User32::EnableScrollBar(i $0,i 3,i 0)'    
System::Call 'User32::ShowScrollBar(i $0,i 3,b 1)' 
I do get a larger page (covering the bottom of the installer) but no scollbars.

I slowly come to the conclusion this might just no be possible so i am looking for other ideas to make a scrolling list (including icons that change during the process).



Can someone indicate if it is possible what i want to do (scrollbars) oder has a hint for me what other way i could go?

Thanks a lot
x
Anders#
Windows does not really have a scrolling container control unfortunately, the closest you can get is the pager control ( https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx ) but since it requires you to handle a WM_NOTIFY message it would be better to create a custom plugin that implements a real scrolling container.

The other alternative would be to use a listview (report mode, hidden columns, icon in subitem)
xbarns#
Hi Anders,

thanks, i now use http://nsis.sourceforge.net/Header_file_for_Listview and it works the way i want it.

x