Old 8th February 2017, 06:45   #1
xbarns
Senior Member
 
xbarns's Avatar
 
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 187
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).



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
xbarns is offline   Reply With Quote
Old 8th February 2017, 14:10   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,608
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)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 8th February 2017, 14:38   #3
xbarns
Senior Member
 
xbarns's Avatar
 
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 187
Hi Anders,

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

x
xbarns is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast 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