Skip to content
⌘ NSIS Forum Archive

How can put a limited number of characters?

3 posts

Kuppy#

How can put a limited number of characters?

Can put a limited number of characters in ${NSD_CreateText}?
Anders#
!include LogicLib.nsh
!include nsDialogs.nsh
!include WinMessages.nsh
Page custom nsDialogsPage
Page instfiles
Function nsDialogsPage
    nsDialogs::Create 1018
    Pop $0
    ${If} $0 == error
        Abort
    ${EndIf}
    ${NSD_CreateText} 0 12u 93% 12u ""
    Pop $0
    SendMessage $0 ${EM_LIMITTEXT} 5 0
    nsDialogs::Show
FunctionEnd