tbednarz
23rd May 2006, 06:29
When using MUI_INSTALLOPTIONS_WRITE, message Boxes show only ONE line and CUT the text after the first escaped CR/LF($\n)!
I have the following code:
;------- Validation Messages ------
LangString SK-TEXT_VALIDATE1 ${LANG_ENGLISH} "Please enter a correct subscription key.$\n(16 characters without any spaces or dashes)"
LangString SK-TEXT_VALIDATE1 ${LANG_GERMAN} "Bitte geben Sie einen korrekten Abonnements-Key ein.$\n(16 Zeichen ohne Leerzeichen oder Bindestriche)"
....
; -- Language specific validation error messages
!insertmacro MUI_INSTALLOPTIONS_WRITE "SubscriptionKey.ini" "Field 3" "ValidateText" "$(SK-TEXT_VALIDATE1)"
If an illeagal or wrong string is entered, an error meassage appears. The problem is, that only the text BEFORE the CR/LF is shown. If I do NOT add CR/LF the whole screensize is used before it wraps text!
Is this a bug and is there an work-around? Just as a sidenote: If I use
MessageBox MB_RETRYCANCEL|MB_ICONSTOP "$(SK-ERROR_INETCALLFAILED)" IDRETRY Loop
to display an error message, the escaped CR/LF work just fine!
Many thanks for your help.
Tom
I have the following code:
;------- Validation Messages ------
LangString SK-TEXT_VALIDATE1 ${LANG_ENGLISH} "Please enter a correct subscription key.$\n(16 characters without any spaces or dashes)"
LangString SK-TEXT_VALIDATE1 ${LANG_GERMAN} "Bitte geben Sie einen korrekten Abonnements-Key ein.$\n(16 Zeichen ohne Leerzeichen oder Bindestriche)"
....
; -- Language specific validation error messages
!insertmacro MUI_INSTALLOPTIONS_WRITE "SubscriptionKey.ini" "Field 3" "ValidateText" "$(SK-TEXT_VALIDATE1)"
If an illeagal or wrong string is entered, an error meassage appears. The problem is, that only the text BEFORE the CR/LF is shown. If I do NOT add CR/LF the whole screensize is used before it wraps text!
Is this a bug and is there an work-around? Just as a sidenote: If I use
MessageBox MB_RETRYCANCEL|MB_ICONSTOP "$(SK-ERROR_INETCALLFAILED)" IDRETRY Loop
to display an error message, the escaped CR/LF work just fine!
Many thanks for your help.
Tom