Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Scrollbar for nsDialogs Custom Page? (http://forums.winamp.com/showthread.php?t=399754)

xbarns 8th February 2017 05:45

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.

PHP Code:

!insertmacro MUI_HEADER_TEXT "Prerequisites" "Prerequisites are being evaluated"
    
    
nsDialogs::Create /NOUNLOAD 1018
    Pop 
$0
        
    
${IF} $== 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:
PHP Code:

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).

https://picload.org/image/roirildr/bild42.png

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 8th February 2017 13:10

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 8th February 2017 13:38

Hi Anders,

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

x


All times are GMT. The time now is 17:43.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.