Old 17th December 2005, 19:39   #1
GreyFlcn
Junior Member
 
Join Date: Dec 2005
Posts: 3
Like to remove some Header text

I'd like to know how I can remove the text shown in this image.

GreyFlcn is offline   Reply With Quote
Old 17th December 2005, 20:14   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
I don't know:

-Removing the strings from the language file
-Destroying the static control


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 17th December 2005, 20:16   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Use Resource Hacker. Edit IDD 105.

Edit: Or probably a better idea would be to hide them with ShowWindow $R0 ${SW_HIDE} in .onGUIInit rather than delete them.

-Stu
Afrow UK is offline   Reply With Quote
Old 18th December 2005, 10:04   #4
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
-Removing the strings from the language file
won't work. the labels arent autosizing

-Destroying the static control
this could work.

-Use Resource Hacker. Edit IDD 105 and delete the STATIC control
this will work.

- hide them with ShowWindow $R0 ${SW_HIDE} in .onGUIInit
this is probably the best solution.
but .onGUIInit is the wrong function. you should use the SHOW or PRE function of the directory page, because the control isnt created yet in .onGUIInit i guess.
Comm@nder21 is offline   Reply With Quote
Old 18th December 2005, 10:26   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
GUIInit is the correct place to do this, as this is when the outer dialog (which contains the header labels) are initialised. You also only need to do it once and not for all pages.

Edit: No, you're correct.

code:

!include MUI.nsh
OutFile "NoHeaderText.exe"

!insertmacro MUI_PAGE_WELCOME
!define MUI_PAGE_CUSTOMFUNCTION_SHOW DirectoryShow
!insertmacro MUI_PAGE_DIRECTORY

!insertmacro MUI_LANGUAGE English

Function DirectoryShow

GetDlgItem $R0 $HWNDPARENT 1037
ShowWindow $R0 ${SW_HIDE}

GetDlgItem $R0 $HWNDPARENT 1038
ShowWindow $R0 ${SW_HIDE}

FunctionEnd

Section
SectionEnd



-Stu
Afrow UK is offline   Reply With Quote
Old 19th December 2005, 11:30   #6
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
Comm@nder21 is offline   Reply With Quote
Old 20th December 2005, 08:12   #7
GreyFlcn
Junior Member
 
Join Date: Dec 2005
Posts: 3
Cool, I'll give this a try tommorow and see if I can get it to work.

Thanks
GreyFlcn is offline   Reply With Quote
Old 25th January 2006, 16:18   #8
GreyFlcn
Junior Member
 
Join Date: Dec 2005
Posts: 3
Thanks

Worked great.
Looks like I even got them to copy me

http://planetside.station.sony.com/download.vm
GreyFlcn is offline   Reply With Quote
Old 25th January 2006, 16:37   #9
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
why do you have the black spaces on the sides of the image
ZmAn3 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