AutoHotkey Community

It is currently May 26th, 2012, 5:41 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: April 24th, 2009, 5:38 pm 
Offline

Joined: April 24th, 2009, 5:24 pm
Posts: 9
I have a list view where the user can promote or demote rows (ie move a row up or down), each row has an icon from an imagelist.

Moving the rows works, except that the icon is lost, ie defaults back to #1 (I'm deleting and re-inserting the row at the required position: not sure if that's the best way to do it??).

So to use that type of method I need to find out the icon number in the ImageList to use it for the new row.

Or is there a different/better way to achieve the same??

_________________
Scribbly


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2009, 10:06 am 
Offline

Joined: February 7th, 2008, 9:48 pm
Posts: 509
Maybe a hidden column that has the icon number you can retrieve it from there on the new row location.

I am not so familiar with listview so i would probably do the same del/insert row.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2009, 10:38 am 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
maybe some suggestion here (should optimize also .... grrr ... )
http://www.autohotkey.com/forum/topic26888.html


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, BrandonHotkey, Miguel, mrhobbeys, notsoobvious, rbrtryn and 63 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