What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Question] Scripted LstView scrolling

[Question] Scripted LstView scrolling
Author: Message:
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
36 / Male / Flag
Joined: Jul 2007
O.P. [Question] Scripted LstView scrolling
There's a Plus! Window.
In it, there's a ListView.
The ListView has a height set to show 20 entries, in Report Mode.
The script adds 30 entries to the list, so the last 10 ones are outside the viewport, and a vertical Y-scrollbar is shown.
Now the script changes entry #25, outside the viewport, using LstView_SetItemText.
How can the script make the ListView scroll down to move that entry into the viewport?
LstView_SetSelectedState will highlight or mark the row, but won't move it into the viewport.

Any help appreciated,
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
12-10-2007 08:15 PM
Profile E-Mail PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: [Question] Scripted LstView scrolling
You can send LVM_ENSUREVISIBLE to the ListViewControl using PlusWnd.SendControlMessage ;)
12-10-2007 08:22 PM
Profile PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
36 / Male / Flag
Joined: Jul 2007
O.P. RE: [Question] Scripted LstView scrolling
Thank you very much. Altogether with
code:
var LVM_FIRST = 4096;
var LVM_ENSUREVISIBLE = LVM_FIRST  + 19;
it works now perfectly.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
12-10-2007 08:33 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On