Archive: is there a way to change font in ini pages


is there a way to change font in ini pages
  Hi,
Is there any way to change the font in .ini pages?
I want some font to be bold atleast.
If possible please let me know the way to do.
Thank you


This will be possible with the new Install Options version which will hopefully be released today.


thank you.
Is the latest version is similar to old in way of coding or lot of changes should be done to my existing code(using instopts.dll from multini of sunjammer)?
thank you very much.


New InstallOptions.dll avaiable :D

Not a lot of changes at all.

InstallOptions::initDialog file.ini

Pop$0
IntCmp$0 0 error
; $0 is now the IO dialog HWND
; use getdlgitem with it and sendmessage
GetDlgItem$1 $0 12000 ; 12000 + field number - 1
; $1 is now the HWND of the first field
; CreateFont... $2
SendMessage$1 ${WM_SETFONT} $2...
InstallOptions::show
Goto done
error:
>MessageBox MB_OK "IO error: $0"
>done:

question about using
  Hi,
Thanks for the reply. i have few doubts.
1.can you please tell me about GetDlgItem parameters, because i didn't find in the documentation.
2.I am using multini4, i think i should write the above mentioned code in onCustomPage function(which has code below) after push statement. Please suggest me the rihgt way.


Push "$TEMP\myini$2.ini"

>$TEMPini$2.ini ,2val is $2"
CallInstDll "
$TEMPInstOpts.dll" dialog
Pop $2
....
....
>
Thankyou.

Have a look at the docs of the new paging system. You don't have to use multini anymore.


need documentation of multipage system
  Thank you very much for the suggestion.
please can anyone can give me the link to the multi page system document.
Thank you.


You will need to download the latest CVS version for this to work. This doesn't work with 1.98.
You can download the latest development version from here or from CVS as explained here.


Is there any particular place the InstallOptions::initDialog file.ini call should go? I'm currently calling it in .onInit and it doesn't seem to be working and it's not documented where it should go. Does it have to be called before or after
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "file.ini"
?


The INI file must be where you say it is before you can call IO to read this INI file. You should call initDialog in the custom page function. Another reason is that IO creates the window when you can initDialog, and destroys it when you move away from the IO page. Everytime it creats a window it can have a different HWND, therefore it can't be created once.

Contrib\Modern UI\System.nsh has an example of this, although wrapped around with tons of macros, it's there. And it's also stated in the IO readme...