Editing first row cell in a ListView (without F2 or double click)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
EntropicBlackhole
Posts: 40
Joined: 12 Jun 2021, 15:28

Editing first row cell in a ListView (without F2 or double click)

08 Feb 2022, 15:25

So basically, i have this listview where, i want to activate the cell editing feature but without having to press F2 or double clicking slowly, but probably using SendMessage would work, however im not sure how this would be done exactly, any help would be appreciated!

Test Code:

Code: Select all

Gui, Add, ListView, , A|B
Loop, 10
	LV_Add(, "A" A_Index, "B" A_Index)
Gui, Show
User avatar
mikeyww
Posts: 27366
Joined: 09 Sep 2014, 18:38

Re: Editing first row cell in a ListView (without F2 or double click)

08 Feb 2022, 16:06

With the native commands, I thought that only the first field could be edited, but I imagine that one could simulate an editor just by toggling to a separate edit control that would accept a string and then populate a cell. Perhaps there are some more direct approaches to this. Some of my listviews just populate from a CSV file, so that's an easy workaround if needed.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 352 guests