Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How can i get the conctrol ID in the dialog? (http://forums.winamp.com/showthread.php?t=247378)

kinki kids 30th May 2006 04:06

How can i get the conctrol ID in the dialog?
 
3ks

Comperio 30th May 2006 04:41

???
Can you be more specific?

kinki kids 30th May 2006 05:09

i want to change the static text on dialog when oninit,
i want to useGetDlgItem to implement, so...

Afrow UK 30th May 2006 10:12

You can't use GetDlgItem in .onInit... The dialog is not created until .onGUIInit (which is where you should use GetDlgItem).

Use Resource Hacker and open up the UI you are using (e.g. Contrib\UIs\modern.exe for Modern UI). Google Resource Hacker for a download link.

-Stu

kinki kids 31st May 2006 03:21

How to use .onGUIInit ?
can it change all pages?

Afrow UK 31st May 2006 10:53

What control(s) do you need to change exactly?
If it's the heading text labels for pages, then there are Modern UI !defines to set the texts.

-Stu

kinki kids 1st June 2006 01:55

Yes, i know,
but i'm going to develop a German setup package, and i must use my own wording.
so i use LangString to define strings in script, then modify the wording when setup running.

Is that OK? and how to?
Thanks a lot!

Afrow UK 1st June 2006 09:51

!define MUI_PAGE_HEADER_TEXT $(LangStringA)
!define MUI_PAGE_HEADER_SUBTEXT $(LangStringB)
!insertmacro MUI_PAGE_...

There should be defines for all the different labels.

-Stu

kinki kids 2nd June 2006 01:35

Thanks a lot!


All times are GMT. The time now is 04:57.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.