Ciao
Is it possible to store handle gui and function into array?
I'd like to dinamically store all the informations in a matrix
if I write
$TransparentButtonTest2 = GUICreate("", 400, 400, 2, 2,$WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_MDICHILD), $myGuiHandle)
$hImageButton2 = _GDIPlus_ImageLoadFromFile(@ScriptDir & $pathImage & "regione1_down.png")
SetBitMap($TransparentButtonTest2, $hImageButton2, 255)
the function works, but if I do
$aDecoderStatus[$row][2] = GUICreate("", 400, 400, 2, 2,$WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_MDICHILD), $myGuiHandle)
$aDecoderStatus[$row][3] = _GDIPlus_ImageLoadFromFile(@ScriptDir & $pathImage & $aDecoder[$row][0]& "_down.png")
$aDecoderStatus[$row][4] = _GDIPlus_ImageLoadFromFile(@ScriptDir & $pathImage & $aDecoder[$row][0]& "_warning.png")
and after
SetBitMap(GUICtrlRead($aDecoderStatus[5][2]), GUICtrlRead($aDecoderStatus[5][4]), 255)
but doesn't works
This is the full script
The allarmi_ita.ini is like this:
[settings]
regione1= A25112
regione2= F20C01
regione3= 789213
regione4= 152201
regione5= 156879
regiane6= F8AEW8
and in the "images" folder, the name of the files have this structure:
regione1_down.png
regione1_warning.png
regione2_down.png
regione2_warning.png
and so on...
thankyou and sorry for my bad english
Marco