Old 26th August 2010, 09:12   #1
xbarns
Senior Member
 
xbarns's Avatar
 
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 187
Talking "Updating" DetailPrint Message in LogWindow

Hi all,

i remember once reading a Thread about this but i cannot find it. Maybe you can point me to the right direction.

I want to be able (if possible) to update the most recent line in the LogWindow that i have just put in there using "DetailPrint"

so i use DetailPint "Installing Dll bla bla" and the Window looks like

code:
Installing Dll bla bla


now after (hopefully) successful installation of that dll, i want to change that last line so it looks like

code:
Installing Dll bla bla - successful.


is that possible?
xbarns is offline   Reply With Quote
Old 26th August 2010, 09:50   #2
Pawel
Moderator
 
Pawel's Avatar
 
Join Date: Aug 2004
Location: Poland
Posts: 528
Send a message via ICQ to Pawel
They say, everything is possible...

I think you should get control handle, get last item and replace its data :P
-Pawel
Pawel is offline   Reply With Quote
Old 26th August 2010, 10:47   #3
pengyou
Major Dude
 
Join Date: Mar 2003
Posts: 571
This old topic shows how to delete entries from the log window:

http://forums.winamp.com/showthread.php?t=141538
pengyou is offline   Reply With Quote
Old 26th August 2010, 11:49   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
http://nsis.sourceforge.net/DetailUpdate

Stu
Afrow UK is offline   Reply With Quote
Old 26th August 2010, 12:49   #5
xbarns
Senior Member
 
xbarns's Avatar
 
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 187
i knew there was something, Thanks for pointing,

but i am using Unicode NSIS and when using the example from http://nsis.sourceforge.net/DetailUpdate

i get in the

status label: Processing: 0% done...
listview: Processing: 0% done...

status label: Processing: 20% done...
listview: P

status label: Processing: 40% done...
listview: P

status label: Processing: 60% done...
listview: P

status label: Processing: 80% done...
listview: P

status label: Complete
listview: P
listview: Complete

Then i started digging around and found that

!define LVM_SETITEMTEXT 0x102E

defines to use the ANSI Version and that changing

0x102E to 0x1074 makes it use the Unicode Version.

Tried it and it works (i am kinda proud of myself), now to the professionals here will that get me in some kind of trouble? Because i just did some lucky guessing here.
xbarns is offline   Reply With Quote
Old 26th August 2010, 13:24   #6
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
That's fine. You probably want to change the name of the define to LVM_SETITEMTEXTW as well.

Stu
Afrow UK is offline   Reply With Quote
Old 26th August 2010, 13:31   #7
xbarns
Senior Member
 
xbarns's Avatar
 
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 187
Thumbs up

Quote:
Originally Posted by Afrow UK View Post
That's fine. You probably want to change the name of the define to LVM_SETITEMTEXTW as well.

Stu
Did so, thanks a lot !
xbarns 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