MyTetra Share
Делитесь знаниями!
Табличная форма
Время создания: 14.06.2017 11:22
Текстовые метки: read
Раздел: AutoHotkey - gui - ListView
Запись: xintrea/mytetra_db_mcold/master/base/1497428521ivp9s7f76q/text.html на raw.githubusercontent.com

#SingleInstance force

#NoEnv

SetTitleMatchMode 2

SetWorkingDir %A_ScriptDir%


Loop 100

{

RowNo = %A_Index%

Loop 5

{

ColNo = %A_Index%

EnvAdd Sum,1

Res_%RowNo%_%ColNo% := Sum

}

}


Gui +Resize ; Allow the user to maximize or drag-resize the window:


Gui Add, ListView, w500 H300 vMyLV gLV, Column1|Column2|Column3|Column4|Column5|Sum

Loop 100

LV_Add("", Res_%A_Index%_1, Res_%A_Index%_2, Res_%A_Index%_3, Res_%A_Index%_4, Res_%A_Index%_5, Res_%A_Index%_4 * Res_%A_Index%_5)


; loop, 5

; LV_ModifyCol(a_index, "30 Integer")

Gui, Show

Return


LV:

if A_GuiEvent = DoubleClick

{

LV_GetText(Col1, A_EventInfo, 1) ; Get the text of the first field.

LV_GetText(Col5, A_EventInfo, 5) ; Get the text of the last field.

MsgBox You select the row %A_EventInfo%`nCol1=%Col1%`nCol5=%Col5%

}

Return


GuiEscape:

GuiClose:

ExitApp

Return

 
MyTetra Share v.0.59
Яндекс индекс цитирования