<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Правильное завершение Gui, если их несколько]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8585&amp;type=atom" />
	<updated>2013-08-17T17:44:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8585</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Правильное завершение Gui, если их несколько]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=74671#p74671" />
			<content type="html"><![CDATA[<p>Исправил.</p>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2013-08-17T17:44:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=74671#p74671</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Правильное завершение Gui, если их несколько]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=74668#p74668" />
			<content type="html"><![CDATA[<p><span style="color: #008800"><strong>Next</strong>, ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой, отредактируйте заголовок.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2013-08-17T16:56:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=74668#p74668</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Правильное завершение Gui, если их несколько]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=74658#p74658" />
			<content type="html"><![CDATA[<p>Понял, когда окно Gui &quot;закрывается&quot; нажатием на крестик, оно просто переходит в невидимые, но не уничтожается, если это не указано специально. Если оно понадобится снова, его нужно просто показать и всё.<br />&nbsp; Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2013-08-17T11:43:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=74658#p74658</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Правильное завершение Gui, если их несколько]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=74656#p74656" />
			<content type="html"><![CDATA[<p>1. Это не вызов Gui3, а повторное его создание. Gui нужно создать один раз, а потом только прятать и показывать его командами Gui, Hide и Gui, Show.</p><p>2. GuiClose выполняется для Gui по умолчанию, а не для обоих. Метку для Gui2 назовите 2GuiClose, а для Gui3 — 3GuiClose. В метках можно, например, проверять какую-нибудь переменную. Первое закрываемое Gui её обнуляет, а второе, видя, что она уже равна 0, т.е. первое Gui уже закрыто, вызывает ExitApp.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2013-08-17T08:46:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=74656#p74656</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Правильное завершение Gui, если их несколько]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=74655#p74655" />
			<content type="html"><![CDATA[<p>Не могу правильно закрыть Gui, если их больше одного?</p><p> Для примера:<br /></p><div class="codebox"><pre><code>
Gui, 2:Add, Edit, vEdit2, 12345
gui, 2:add, Button, x50 w14 h12 gButton2
Gui, 2:show, w800
return



Button2:
Gui, 3:Add, Edit, vEdit3, 456
gui, 3:add, Button, x500 w24 h25
Gui, 3:show, w400
return



Guiclose:
ExitApp
</code></pre></div><p>1.&nbsp; Если вызвать кликом на Button2 Gui3, а потом Gui3 закрыть кликом на крестик, повторный вызов Gui3 выдаёт ошибку связанную с vEdit3. <br />2.&nbsp; Закрытие обоих Gui не приводит к завершению приложения.</p><p>&nbsp; Пробовал экспериментировать с Destroy, Default и прочим, но безуспешно. Прошу помощи.</p>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2013-08-17T08:02:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=74655#p74655</id>
		</entry>
</feed>
