Привет!
В теме http://autoit-script.ru/index.php/topic,16107.msg99568/topicseen.html#new посоветовали создавать двухмерный массив при создании контролов и вписывать все туда - размеры, идентификаторы, положение, текст... А я вот и с одномерными не дружу - пока обходил их. Мжно на примере - как это будет выглядеть?
В теме http://autoit-script.ru/index.php/topic,16107.msg99568/topicseen.html#new посоветовали создавать двухмерный массив при создании контролов и вписывать все туда - размеры, идентификаторы, положение, текст... А я вот и с одномерными не дружу - пока обходил их. Мжно на примере - как это будет выглядеть?
Код:
$vLabel8 = GUICtrlCreateLabel("", 12, 260, 580, 18, $SS_CENTER)
GUICtrlSetFont(-1, 10, 500, 2, $Font_name)
$vInput1 = GUICtrlCreateInput("", 140, 85, 80, 22,$ES_READONLY)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
$vInput2 = GUICtrlCreateInput("", 140, 109, 80, 22,$ES_READONLY)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
$vInput3 = GUICtrlCreateInput("", 140, 133, 80, 22,$ES_READONLY)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
$vInput4 = GUICtrlCreateInput("", 140, 157, 80, 22,$ES_READONLY)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
$vInput5 = GUICtrlCreateInput("", 140, 181, 80, 22,$ES_READONLY)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
$vInput6 = GUICtrlCreateInput("", 140, 205, 80, 22,$ES_READONLY)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
$vInput7 = GUICtrlCreateInput("", 140, 229, 80, 22,$ES_READONLY)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
$vInput8 = GUICtrlCreateInput("", 28, 30, 145, 22)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
$vButton1 = GUICtrlCreateButton($Scined[9], 232, 85, 65, 20)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
GUICtrlSetTip(-1, $Scined[10])
$vButton2 = GUICtrlCreateButton($Scined[9], 232, 109, 65, 20)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
GUICtrlSetTip(-1, $Scined[11])
$vButton3 = GUICtrlCreateButton($Scined[9], 232, 133, 65, 20)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
GUICtrlSetTip(-1, $Scined[12])
$vButton4 = GUICtrlCreateButton($Scined[9], 232, 157, 65, 20)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
GUICtrlSetTip(-1, $Scined[13])
$vButton5 = GUICtrlCreateButton($Scined[9], 232, 181, 65, 20)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
GUICtrlSetTip(-1, $Scined[14])
$vButton6 = GUICtrlCreateButton($Scined[9], 232, 205, 65, 20)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
GUICtrlSetTip(-1, $Scined[15])
$vButton7 = GUICtrlCreateButton($Scined[9], 232, 229, 65, 20)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
GUICtrlSetTip(-1, $Scined[16])
$vButton8 = GUICtrlCreateButton($Scined[17], 232, 54, 65, 20)
GUICtrlSetState(-1,$gui_disable)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
GUICtrlSetTip(-1, $Scined[18])
$vButton9 = GUICtrlCreateButton($Scined[19], 176, 30, 57, 20)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
GUICtrlSetTip(-1, $Scined[20])
$vButton11 = GUICtrlCreateButton($Scined[23], 232, 30,65, 20)
GUICtrlSetState(-1,$gui_disable)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
GUICtrlSetTip(-1, $Scined[24])
$vButton12 = GUICtrlCreateButton($Scined[25], 298, 54, 72, 20)
GUICtrlSetState(-1,$gui_disable)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
GUICtrlSetTip(-1, $Scined[26])
$vButton13 = GUICtrlCreateButton("", 298, 85, 20, 20, $BS_ICON)
GUICtrlSetState(-1,$gui_disable)
GUICtrlSetImage(-1, $sLib,4, 0)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
GUICtrlSetTip(-1, $Scined[27])
$vButton14 = GUICtrlCreateButton("", 298, 109, 20, 20, $BS_ICON)
GUICtrlSetState(-1,$gui_disable)
GUICtrlSetImage(-1, $sLib,4, 0)
GUICtrlSetFont(-1, 8, 400, 0, $Font_name)
GUICtrlSetTip(-1, $Scined[28])