Old 13th October 2005, 23:56   #1
edream
Junior Member
 
Join Date: Oct 2005
Posts: 5
I'm trying to add text in ListBox in Leave page. The ListBox is not getting refreshed. If I use abort or MessageBox followed by it, then I can see the refreshed content.

Is there a way I can refresh the newly added text?

I tried ShowWindow {SW_HIDE} and {SW_SHOW}, but the hidden window never comes back. Here is the snippet

Function tempProgressLeave

; disable back button before showing the progress
GetDlgItem $0 $HWNDPARENT 3
EnableWindow $0 0

; disable next button
GetDlgItem $0 $HWNDPARENT 1
EnableWindow $0 0

FindWindow $1 "#32770" "" $HWNDPARENT
GetDlgItem $0 $1 1202
StrCpy $2 0
StrCpy $vard "hello world"

loopd:
IntOp $2 $2 + 10 ;here the progressbar increases
;MessageBOX MB_OK "hello ${SW_SHOW} ${SW_HIDE}"
ShowWindow $0 ${SW_HIDE}
SendMessage $0 ${LB_ADDSTRING} "" "STR: $2:$vard"
ShowWindow $0 ${SW_SHOW}
IntCmp $2 100 loopd loopd

Sleep 5000

FunctionEnd
edream is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump