View Single Post
Old 13th August 2019, 14:55   #1
Junior Member
Join Date: Jul 2019
Posts: 30
Icon already set not updated with another icon


I have set an icon with a label in a custom page to display a validation status. When the validation fails, it shows error icon else done icon. My problem is once an icon is set say error icon, I can navigate to previous page to put some value that can make validation success. So as I proceed to next page, the validation success message and done icon should be displayed. But always the first icon is shown , in this case error icon will be set whereas in actual it should be done icon.

Function StartValidation

Call ValidateSite
${If} ${Errors}
SendMessage $Page5_SiteValidateStatusLbl ${WM_SETTEXT} 0 "STR:Site not validated"
File /oname=$PLUGINSDIR\image.ico "error.ico"
${NSD_SetIcon} $Page5_StatusImage $PLUGINSDIR\image.ico $Page5_ImageHandle

SendMessage $Page5_SiteValidateStatusLbl ${WM_SETTEXT} 0 "STR:Site ID successfully validated"
File /oname=$PLUGINSDIR\image.ico "done.ico"
${NSD_SetIcon} $Page5_StatusImage $PLUGINSDIR\image.ico $Page5_ImageHandle


Function Page5

${NSD_CreateIcon} 0.09u 21.54u 16 16 ""
Pop $Page5_StatusImage
${NSD_AddStyle} $Page5_StatusImage ${SS_REALSIZECONTROL}

${NSD_FreeImage} $Page5_ImageHandle
${NSD_FreeIcon} $Page5_StatusImage

Please help.
DivyaArun is offline   Reply With Quote