AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ListView: How to get the column number of a selected cell?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Rabiator



Joined: 17 Apr 2005
Posts: 265
Location: Sauerland

PostPosted: Wed Jul 04, 2007 1:40 pm    Post subject: ListView: How to get the column number of a selected cell? Reply with quote

After a A_GuiEvent the row number of a selected ListView cell is provided by A_EventInfo, but where can I get the column number?

I read Micahs' thread Listview In-Cell Editing, where he gets the column info by transforming the mouse positions to cell positions.
It's shrewd and works good, but isn't there a simplier way that doesn't increase the script so much?
Back to top
View user's profile Send private message
Helpy
Guest





PostPosted: Wed Jul 04, 2007 3:26 pm    Post subject: Reply with quote

Rabiator wrote:
isn't there a simplier way that doesn't increase the script so much?
No.
ListViews are that: lists, not grids.
Now, you can use grids, or even spreadsheets, see Custom GUI Controls. This is at the cost of a (small) DLL and some wrapper code, so it won't entirely solve your problem...
Back to top
Rabiator



Joined: 17 Apr 2005
Posts: 265
Location: Sauerland

PostPosted: Wed Jul 04, 2007 8:51 pm    Post subject: Reply with quote

Helpy wrote:
... This is at the cost of a (small) DLL and some wrapper code, so it won't entirely solve your problem...
Not entirely, I didn't expect that. Smile

Thank you for the link! I'll try the grid wrapper, it seems to fit at best.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group