Skip to content
⌘ NSIS Forum Archive

Prevent NSISVCLStyles from affecting child windows

4 posts

Endy-kun#

Prevent NSISVCLStyles from affecting child windows

Hey guys. Given the sample code below... when you press next, a fileselect dialog pops-up. Is it possible to prevent skinning of this dialog and child windows in general?

Plugin has a way to unskin controls (NSISVCLStyles::RemoveStyleControl), but I don't know if it is good enough for windows. If yes, can you please assist me with doing this? If not, are there any other options? Maybe I can unload the .dll at some right time or something... The reason for this is that more often than not the plugin breaks/changes child windows in undesirable ways.
!include "MUI2.nsh"
Name "Modern UI Test"
OutFile "Basic.exe"
Function .onInit
    InitPluginsDir
    File /oname=$PLUGINSDIR\xxx.vsf "resources\xxx.vsf"
    NSISVCLStyles::LoadVCLStyle $PLUGINSDIR\xxx.vsf
FunctionEnd
!insertmacro MUI_PAGE_INSTFILES
Page custom pgPageCreate pgPageLeave
Function pgPageCreate
    nsDialogs::SelectFileDialog "bla-bla" "$0" "bla"
FunctionEnd
Function pgPageLeave
FunctionEnd
Section "Dummy Section" SecDummy
SectionEnd 
Anders#
Maybe related to https://github.com/RRUZ/vcl-styles-plugins/issues/40

I'm allergic to skins so I'm not sure if I can do anything to help.