|
|
|
|
#1 |
|
Member
|
Custompage - Scrolling Textbox
Using the nsdialog controls I can create a multiline textbox, but I would like to append text to it and have it scroll just like the classic log display that uses detailprint. The only thing I can see being able to do is to REPLACE the text in the textbox via the SetText.
Anyone have any ideas? Thanks, Squirre1 |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
http://nsis.sourceforge.net/Header_file_for_Listview
Use LVM_ENSUREVISIBLE (with SendMessage) to scroll to the newly inserted item. Stu |
|
|
|
|
|
#3 |
|
Member
|
Sweet Control... Thanks for pointing it out to me... Ill give it a shot, but it looks like that will get the job done..
|
|
|
|
|
|
#4 |
|
Member
|
Not quite getting it to work like I want to...
What I am looking for is a multiline textbox, lets say it displays 4 lines. Line 1 Line 2 Line 3 Line 4 It will allow you to append lines to it, and when it does, it scrolls up showing the last line appended. (w/ a Vertical Scroll) Line 2 Line 3 Line 4 Line 5 Using the ensure Visible w/ the listbox appends the lines to the top.. displaying the "log" backwards basically. Line 5 Line 4 Line 3 Line 2 Thoughts.? |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
You can add listview items to the bottom, set the LVITEM iItem member to 0x7fffffff and it will be appended to the end...
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#6 | |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
This duplicates the InstFiles page log:
Quote:
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
|
#7 | |
|
Member
|
Here is the code I have and this is working... Obviously, there are some pieces missing, like including the aforementioned control that afrow pointed out. This automatically scrolls like it should... I got the sendmessage for the LVM_SCROLL from here which is the detailprint source..:
http://nsis.sourceforge.net/DetailPr...nside_.NET_DLL Quote:
But Anyway, I think i have the worst done.. Thanks for the help guys... |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|