View Single Post
Old 12th October 2017, 02:25   #3
Junior Member
Join Date: May 2015
Posts: 9
Yea I wanted to add more information but did not expected that premoderation is on.
I also forgot to mention that I am not showing final page at all. If I do, it is not a problem since all buttons on it work fine.
Lastly I managed to solve the issue with the button using that wiki page that shows how to enable cancel button (just with a different ID). I tried to do this before but it appears that my own approach to enable it wasn't working. Code is below.

So now I only have the issue with a scrollbar.
What we do: On directory page open folder select dialog and assume that we have more folders that fit the window
What we see: Mouse wheel doesn't scroll anything and the scrollbar is missing
What we do next: Click on some triangles to expand folders
What happens: Mouse wheel now works and scrollbar magically appears

I don't think this can be solved just as easy. Perhaps I shoudl try to replace the whole dialog with my own... Didn't have much success with that yet but perhaps due to lack of a know-how also.

Unicode true
!include "MUI2.nsh"
Name "Modern UI Test"
OutFile "Basic.exe"
RequestExecutionLevel admin
!insertmacro MUI_LANGUAGE "English"
InstallDir "C:\Desktop\NSISTEST\"

Section "Dummy Section" SecDummy
SetDetailsPrint both
SetOutPath "$INSTDIR"
Sleep 3000
#Call fff


Function fff
Push $R0
GetDlgItem $0 $HWNDPARENT 1
# This will make the button look correct. It shouldn't be needed but it is...
# I want to mention again that it only looks disabled but can be pressed and becomes normal onmouseover
# but still it is confusing for the end user so had to find a solution
EnableWindow $0 1
Pop $R0

Function .OnInit
File /oname=$PLUGINSDIR\anystyle.vsf "resources\anystyle.vsf"
NSISVCLStyles::LoadVCLStyle $PLUGINSDIR\anystyle.vsf

Endy-kun is offline   Reply With Quote