Talk:NsDialogs CreateTextMultiline

From NSIS Wiki
Jump to navigationJump to search

If you are using the multiline textbox to display a license file you may need to edit the nsDialogs_createTextMultiline.nsh to allow the textbox to wrap the text.

Replace:

!define __NSD_TextMultiline_STYLE ${DEFAULT_STYLES}|${WS_VSCROLL}|${WS_TABSTOP}|${ES_AUTOHSCROLL}|${ES_MULTILINE}|${ES_WANTRETURN}

With:

!define __NSD_TextMultiline_STYLE ${DEFAULT_STYLES}|${WS_VSCROLL}|${WS_TABSTOP}|${ES_MULTILINE}|${ES_WANTRETURN}

Also, I don't know why you'd set ES_AUTOHSCROLL without setting WS_HSCROLL, so you can see the horizontal scrollbar.