- NSIS Discussion
- problem with the picture being overwitten by text
Archive: problem with the picture being overwitten by text
radudinca
26th March 2007 11:18 UTC
problem with the picture being overwitten by text
In the image below you can see the problem ... The text overwrites the picture from the Installer and that looks ugly...
http://photos1.blogger.com/x/blogger...bug%20NSIS.jpg
Until now I haven't found any solutions ... Please help :)
PS :
link to the picture since it isn't showed here :
http://photos1.blogger.com/x/blogger/8161/3988/1600/740500/bug%20NSIS.jpg
Red Wine
26th March 2007 12:46 UTC
Can't see the image, however this thread might help you :)
http://forums.winamp.com/showthread....hreadid=268363
radudinca
26th March 2007 13:08 UTC
this forum has some annoying features... I can't add picture , i can't put url cause instead of it I get a message ( url submited by user ) ...
Red Wine
26th March 2007 13:37 UTC
Actually they aren't annoying rules... just intelligent rules against spammers who like to put their crap all over, after some days and some posts you shall not have such problems :)
Now, what exactly you're trying to achieve, you want to disappear the text or what?
radudinca
26th March 2007 13:39 UTC
that text shouldn't appear in there ! yes .. i'd like it to disappear or be somewhere else .
Red Wine
26th March 2007 14:09 UTC
Maybe you should try:
MUI_HEADER_TRANSPARENT_TEXT
MUI_PAGE_HEADER_TEXT
MUI_PAGE_HEADER_SUBTEXT
See MUI documentation,
http://nsis.sourceforge.net/Docs/Mod...UI/Readme.html
radudinca
27th March 2007 10:24 UTC
[B]Maybe you should try:
MUI_HEADER_TRANSPARENT_TEXT
MUI_PAGE_HEADER_TEXT
MUI_PAGE_HEADER_SUBTEXT
I already defined them :( ... doesn't work.
Red Wine
27th March 2007 10:51 UTC
!define APP_NAME 'Test'
name ${APP_NAME}
outfile '${APP_NAME}.exe'
showinstdetails show
InstallDir '$PROGRAMFILES\${APP_NAME}'
!include 'mui.nsh'
!define MUI_HEADER_TRANSPARENT_TEXT ;in case you add text below
!define MUI_PAGE_HEADER_TEXT ""
!define MUI_PAGE_HEADER_SUBTEXT ""
!define MUI_PAGE_CUSTOMFUNCTION_SHOW ChangeHeaderColor
!insertmacro MUI_PAGE_LICENSE '${NSISDIR}\License.txt'
!define MUI_PAGE_HEADER_TEXT ""
!define MUI_PAGE_HEADER_SUBTEXT ""
!insertmacro MUI_PAGE_COMPONENTS
!define MUI_PAGE_HEADER_TEXT ""
!define MUI_PAGE_HEADER_SUBTEXT ""
!insertmacro MUI_PAGE_DIRECTORY
!define MUI_PAGE_HEADER_TEXT ""
!define MUI_PAGE_HEADER_SUBTEXT ""
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"
function ChangeHeaderColor
GetDlgItem $1 $HWNDPARENT 1034
SetCtlColors $1 "" "0x00FF00"
GetDlgItem $1 $HWNDPARENT 1039
SetCtlColors $1 "" "0x00FF00"
functionend
Section -
;
SectionEnd
radudinca
27th March 2007 12:43 UTC
I tried your code ... and it works, but that is not what I wanted :) ... You lose the text, but the picture is still overwritten by white , even if without the writting.
Red Wine
27th March 2007 17:30 UTC
Well, for me works as expected, I added even a green background to the control to make it more clear.
When I use
!define MUI_HEADER_TRANSPARENT_TEXT
!define MUI_PAGE_HEADER_TEXT ""
!define MUI_PAGE_HEADER_SUBTEXT ""
the result is this:
Red Wine
27th March 2007 17:32 UTC
But when I use
# !define MUI_HEADER_TRANSPARENT_TEXT
!define MUI_PAGE_HEADER_TEXT ""
!define MUI_PAGE_HEADER_SUBTEXT ""
the result is this:
radudinca
27th March 2007 18:21 UTC
hmm ... i get the second picture even though i use Transparent ....
What version of NSIS do you use ? maybe i have old version
Red Wine
27th March 2007 18:50 UTC
I'm using the current release which is 2.24 :)
http://nsis.sourceforge.net/Download
radudinca
28th March 2007 09:23 UTC
Thanks alot ... it was the NSIS version indeed :)