NSD_OnChange
Knowing that NSD_OnChange macro receives two parameters (handle and function that will be called), is there a way to the called function receive another parameter besides the handle? I want to make the function settext.onChange generic and everytime I update a textbox a variable gets fill. I don't know if my question is clear but I researched on old foruns post and I saw that this was not possible (I saw a post from 2001 I think). SO is the best solution create a function for eache textbox? or there is a way to make it generic?
###
${NSD_CreateText} 90u 50 50% 10% $smtpHost
Pop $smtphwnd
${NSD_OnChange} $smtphwnd settext.onChange
${NSD_CreateText} 90u 50 50% 10% $from
Pop $fromhwnd
${NSD_OnChange} $smtphwnd settext.onChange
###
Function settext.onChange
${NSD_GetText} $R8 $R9
FunctionEnd