Menu

#755 nsDialogs - OnClick support for static controls not working

2.0 Series
closed-fixed
Plugin (102)
5
2008-03-06
2008-03-06
Anonymous
No

In the following code, the messagebox never pops up:

Function CustomPage
nsDialogs::Create /NOUNLOAD 1018
Pop $2
${NSD_CreateLabel} 0u 60u 300u 9u "booyeah"
Pop $NSDFIELD1
${NSD_OnClick} $NSDFIELD1 CustomPageField1
nsDialogs::Show
FunctionEnd

Function CustomPageField1
MessageBox MB_OK "Booyeah!"
FunctionEnd

Using v2.34

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Meh, not logged in. I'm MSG in the forums, Message in the channel.

     
  • Nobody/Anonymous

    Logged In: NO

    Suggested fix from the channel:

    <Anders> change nsDialogs.nsh to look like !define __NSD_Label_STYLE ${DEFAULT_STYLES}|${SS_NOTIFY}

     
  • Amir Szekely

    Amir Szekely - 2008-03-06
    • assigned_to: nobody --> kichik
    • status: open --> closed-fixed
     

Log in to post a comment.