How to define a custom dialog functionIt allows you to specify your own dialog message function for any dialog. You can add additional features for standard dialogs. Look at an example of overloading Setup Path dialog. Step 1Specify the name of your function as a value of Dfunc variable in 'Additional settings'. Notice! Your function names must end with cmdproc Dfunc = mydlgpathcmdproc
Step 2Add 'Source code' command at the beginning of the script. Check on 'External source code' checkbox. Insert the body of the function or a link to a gentee file with the function in 'Source code' parameter. func uint mydlgpathcmdproc( uint wnd id ctl codedlg )
{
switch id
{
case $DLGINIT : print("Init\n")
case $IDC_PREV : print("Press Prev\n")
case $IDC_NEXT : print("Press Next\n")
}
}
return dlgpathcmdproc( wnd, id, ctl, codedlg )
} orinclude : $"c:\my files\myfunc.g" Don't forget to call a standard dialog message function from your function. The names and sources of standard functions can be found in cmds\sources subfolder of CreateInstall directory. |