1 (изменено: inseption86, 2018-10-13 18:26:35)

Тема: AHK: Gui, открытие .png поверх окна.

Добрый день, подскажите пож-та, возможно ли , чтобы открываемый файл был поверх основного окна gui, а после нажатия на открытую картинку - она закрывалась. Заранее спасибо!



Gui, +Caption ;+AlwaysOnTop
Gui, Font, S12 CDefault  Italic, Verdana

Gui, Add, Text, x20 y30, Экзамен 
Gui, Add, Text, x5  y+25   w1275   h1    0x10   
Gui, Add, Text, x10 y+10 +Left, Панель вопросов 

Gui, Add, Pic, xm vPic

Gui, Add, Text, x5  y170   w1275   h1    0x10  


Gui, Add, Tab2, AltSubmit x30 y130 w1200 h50 Buttons -Wrap vTAB_BUTTON,`   1  |  


Gui, Add, Button, x300 , &Load New Image

Gui, Tab, 1

Gui, Add, Text, x5  y+30   w1275   h1    0x10  

Gui, Add, Text, x52 y+10 w1000 h60, Vopros1

Gui, Add, Button, x10 y+-30 w150 h50 g1, Otvet1
Gui, Add, Button,  x+60  w150 h50 g2,  Otvet2
Gui, Add, Button, x+60  w150 h50 g3, Otvet3
Gui, Add, Button, x+60  w150 h50 g4,  Otvet4


Gui, Show, w800 h600, Test
return


1:
2:
3:
4:


ButtonLoadNewImage:

FileSelectFile, file,,, Select an image:, Images (*.gif; *.jpg; *.bmp; *.png)

GuiControl,, Pic, *w%width% *h%height% %file%  
Gui, Show, xCenter y0 AutoSize, %file%  .
return



Esc::ExitApp