<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Gui, открытие .png поверх окна.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14239&amp;type=atom" />
	<updated>2018-10-13T14:26:13Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14239</id>
		<entry>
			<title type="html"><![CDATA[AHK: Gui, открытие .png поверх окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129192#p129192" />
			<content type="html"><![CDATA[<p>Добрый день, подскажите пож-та, возможно ли , чтобы открываемый файл был поверх основного окна gui, а после нажатия на открытую картинку - она закрывалась. Заранее спасибо!</p><br /><div class="codebox"><pre><code>
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 , &amp;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

</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2018-10-13T14:26:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129192#p129192</id>
		</entry>
</feed>
