![]() |
Problem of NSD_CreateIPAddress.nsh
2 Attachment(s)
PHP Code:
Attachment 46797 Click next, the font of the custom page also changes, not the former one. Attachment 46798 |
huh.. never noticed that before - but confirmed anyway (no idea if it's related to installing XP SP3). That's a weird bug.
'fraid that might (depending on whether a cause can be found and addressed) leave you with the alternative options of creating 4 text controls, or using 1 text control and validating input, etc. Edit: looks like this is a known problem with SysIPAddress32. It disposes of the font that's used to create it, originally. |
okay, solved thusly... create a new font and set that on the control before display. E.g.
PHP Code:
Edit: adjusted post with the proper font langstrings. |
Header file in the wiki ( http://nsis.sourceforge.net/NsDialogs_CreateIPaddress ) is now updated.
End-users: download the new version and your scripts using NSD_CreateIPAddress should continue to work just fine - and the installer font should no longer corrupt. Developers: nsDialogs' framework doesn't allow for any particular post-fixing of its defines. The original define is renamed to NSD_CreateIPAddressControl. The original NSD_CreateIPAddress define is then re-defined to insert a macro which calls the renamed original and applies the font corruption fix and then pushes the control's handle back onto the stack. |
I tried the fixed header file, it works well. Neither click back or the next button, the font is right.
|
excellent - glad it's fixed with that :D
|
| All times are GMT. The time now is 17:51. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.