When I updated to v1.1.31.00, I found that Listview g-Label "e" no longer works.
When I finish editing the first field of a row, I can't use LV_GetText(OutputVar, A_EventInfo) to get the new value.
Edit:
else if ( A_GuiEvent == "e" ) will not be executed
This is a shorthand script, but it works fine:
Code: Select all
Gui, Add, ListView,r10 w200 -ReadOnly AltSubmit glv vlv, Title|
LV_Add(, 1)
Gui, Show
return
lv()
{
Gui, +OwnDialogs
Global name
if A_EventInfo
{
if ( A_GuiEvent = "Normal" || A_GuiEvent = "RightClick" )
LV_GetText(name, A_EventInfo)
else if ( A_GuiEvent == "e" )
{
MsgBox, % A_GuiEvent
LV_GetText(newname, A_EventInfo)
if ( newname != name )
msgbox % newname
}
}
return
}
e (lowercase E): The user has finished editing the first field of a row (the user may edit it only when the ListView has -ReadOnly in its options). The variable A_EventInfo contains the row number.