AutoHotkey Community

It is currently May 27th, 2012, 3:26 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: June 7th, 2010, 12:12 pm 
Offline

Joined: May 12th, 2005, 8:20 am
Posts: 331
Location: Münster, Germany
Hi, Community,
so I've got a listview with lots of entries.
The user can search in the listview and the hits get coloured (by LVX).
Now it's possible, that the coloured row(s) are not in the visible part of the listview and the user has to scroll down (or up) until the coloured rows appear.
Does anyone know about the possibility to scroll programmatically and to show the coloured rows?

Thanks in advance,
Klaus


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 7th, 2010, 12:33 pm 
Hey!

As I was browsing MSDN I stumbled upon the LVM_ENSUREVISIBLE message at http://msdn.microsoft.com/en-us/library/aa932071.aspx.
MSDN wrote:
This message ensures that a list-view item is entirely or at least partially visible, scrolling the list-view control if necessary.

You could probably cook something up with it, and if you do please post it. If I'll have some time I'm gonna look into this too.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 7th, 2010, 2:18 pm 
Offline

Joined: August 24th, 2005, 5:29 pm
Posts: 549
Location: Berlin / Germany
Quote:
Row Functions
Vis [1.0.44+]: Ensures that the specified row is completely visible by scrolling the ListView, if necessary. This has an effect only for LV_Modify(); for example: LV_Modify(RowNumber, "Vis")

_________________
nick :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 7th, 2010, 5:16 pm 
Thanks to both of you,
didn't see it in the manual!
Klaus


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: rbrtryn and 14 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group