Code: Select all
Class GuiConfig {
Cores(id="") {
if(Strlen(id)>0) {
Gui, %id%:Color, ,dbdbdb
Gui, %id%:Color, 425942
} else {
Gui, Color, ,dbdbdb
Gui, Color, 425942
}
}
}
GuiConfig.Cores()
Gui, Add, ListView, x62 y39 w350 h200 grid gvai +AltSubmit, teste | av
LV_ModifyCol(2, -1)
Gui, Add, Edit, x62 y249 w350 h100 vEdit01,
Gui, add, button, w200 ggo,add
Gui, Show, w479 h379, Untitled GUI
return
go:
av1 = av_test1
av2 = av_test2
av3 = av_test3
t1 = test1
t2 = test2
t3 = test3
LV_Add("",t1,av1)
LV_Add("",t2,av2)
LV_Add("",t3,av3)
return
vai:
Gui, Submit, NoHide
Row := A_EventInfo
;~ if(A_GuiEvent="Normal" or A_GuiEvent="Up" or A_GuiEvent="Down")
;~ if(A_GuiEvent="Normal" or A_GuiEvent=Up or A_GuiEvent=Down)
;~ if(A_GuiEvent="Normal" or A_GuiEvent={Up} or A_GuiEvent={Down})
if(A_GuiEvent="Normal")
LV_GetText(ob, Row ,2)
GuiControl, , Edit01, % ob
return
GuiClose:
ExitApp