AutoHotkey Community

It is currently May 26th, 2012, 7:29 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: June 29th, 2005, 12:20 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
To get the row number of a selected row in a ListView with -Multi the LV_GetNext function has to be used. Wouldn't it be easier (for us scripter not for Chris) to have that number in A_EventInfo?
Code:
RowNumber := LV_GetNext("0")


Second wish:
I can select a row with LV_Modify(RowNumber, "Select"). But that doesn't trigger A_GuiEvent = "Normal". Is it possible to add a "Activate" option to LV_Modify?

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
PostPosted: June 29th, 2005, 3:09 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
toralf wrote:
Wouldn't it be easier ...to have [row number] in A_EventInfo [for single-select ListView]?
I considered that, but the benefit did not seem worth the code size given the relative rarity of a single-select ListView.

Quote:
LV_Modify(RowNumber, "Select") ... doesn't trigger A_GuiEvent = "Normal". Is it possible to add a "Activate" option to LV_Modify?
Although this seems fairly easy, the benefit might not justify the cost (code-size). When I estimate benefit, I'm thinking of how many people would actually use it. In this case, I estimate less than 3% of ListView users.

If you can't find a work-around, let me know. Otherwise I'll put it on the ListView to-do list to be reconsidered at a later time.

Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 6th, 2005, 5:41 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I think you were right that A_EventInfo should be used for more types of events (the added code size is very small).

It has been added to the latest version. Thanks for the suggestion.


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: Google [Bot] and 1 guest


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