It is necessary that when the mouse pointer hovers over checkbox 1, the text about the purpose of checkbox 1 is sent to the list box.
And when the mouse pointer hovers over checkbox 2, the text about the purpose of checkbox 2 is sent to the list box.
If the mouse pointer is removed from the checkboxes, the list box is empty.
The list box is used because the text is very voluminous. Other information will also be sent to the list box.
OutFile ListBoxInfo.exe
!include "MUI2.nsh"
Page custom MyPage
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Var Dlg
Var ListBox
Var check
Var check2
Function MyPage
nsDialogs::Create 1044
Pop $Dlg
GetDlgItem $1 $hwndparent 1
ShowWindow $1 0
GetDlgItem $1 $hwndparent 1028
ShowWindow $1 0
nsDialogs::CreateControl /NOUNLOAD ${__NSD_ListBox_CLASS} ${__NSD_ListBox_STYLE}|${WS_HSCROLL} ${__NSD_ListBox_EXSTYLE} 15u 30u 300u 100u ""
Pop $ListBox
SendMessage $ListBox ${LB_SETHORIZONTALEXTENT} 2000 0
SetCtlColors $ListBox `0x0000FF` `0x99FFFF`
${NSD_CreateCheckbox} 15u 140u 50u 14u "checkbox"
Pop $check
${NSD_CreateCheckbox} 100u 140u 50u 14u "checkbox2"
Pop $check2
nsDialogs::Show
FunctionEnd
Section
SectionEnd