Old 9th March 2019, 16:25   #1
Endy-kun
Junior Member
 
Join Date: May 2015
Posts: 24
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.
PHP Code:
!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 
Endy-kun is offline   Reply With Quote
Old 9th March 2019, 19:05   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,263
Have you tried contacting the plug-in author?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 9th March 2019, 19:23   #3
Endy-kun
Junior Member
 
Join Date: May 2015
Posts: 24
Yes, unfortunately he never responds =(
Endy-kun is offline   Reply With Quote
Old 9th March 2019, 19:42   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,263
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.

IntOp $PostCount $PostCount + 1
Anders 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