don't know if this is a bug or if I'm just missing anything...
The following code creates a new gui and displays an edit field and a listview, populated with two rows
When you double click on one of the rows, it's text is inserted into the edit field.
The problem:
The G-Label for the edit field isn't triggered when you use the option "r2" (or higher) or a high "h<value>" so that
more than one line is displayed (with an additional scroll bar). If you use "r1" or a low number for h<value>,
or leave out r<value> or h<value> completely, the G-Label is triggered...
Code: Select all
#NoEnv
#SingleInstance Force
#Persistent
Gui, New
Gui, Add, Edit, w200 r2 vEW_Execute gEW_Execute
Gui, Add, ListView, w200 gMyListView, Name
LV_Add("", "me")
LV_Add("", "you")
Gui, Show
return
EW_Execute:
MsgBox, Edit G-Label triggered
return
MyListView:
if (A_GuiEvent = "DoubleClick") {
row := A_EventInfo
LV_GetText(rowText, row)
ControlSetText, % EW_Execute, % rowText
}
return