<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: изображения в GUI (мигания при guicontrol)]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5192&amp;type=atom" />
	<updated>2010-11-23T17:28:35Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5192</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изображения в GUI (мигания при guicontrol)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=42108#p42108" />
			<content type="html"><![CDATA[<p>Я так понимаю без внешних библиотек не обойтись. Жаль, что такая простая вещь работает немного криво.</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2010-11-23T17:28:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=42108#p42108</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изображения в GUI (мигания при guicontrol)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=42003#p42003" />
			<content type="html"><![CDATA[<p>У меня так же точно мелькает.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-11-20T15:58:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=42003#p42003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изображения в GUI (мигания при guicontrol)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=42002#p42002" />
			<content type="html"><![CDATA[<p>Ну это тот же самый, 1.jpg, но другого цвета.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2010-11-20T15:46:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=42002#p42002</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изображения в GUI (мигания при guicontrol)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=42000#p42000" />
			<content type="html"><![CDATA[<p>Ещё бы знать, что такое здесь <em>2.jpg</em>, чтобы можно было проверить!</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-11-20T15:06:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=42000#p42000</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изображения в GUI (мигания при guicontrol)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41999#p41999" />
			<content type="html"><![CDATA[<p>Вообще, вот такой код работает, хотя я и сам не вполне понимаю, как.<br /></p><div class="codebox"><pre><code>   Gui, add, picture, w100 h900 x100 y100 , 1.jpg
   Gui, add, picture, w100 h900 x100 y100 gLabel, 2.jpg
   gui, show, w300 h900, GUI
Return

Label:
   GuiControl, hide, static2
sleep, 50
   While GetKeyState(&quot;lbutton&quot;, &quot;P&quot;)
   sleep 0
   GuiControl, show, static2
Return</code></pre></div><p>При мигании видно не фон GUI, а нижнюю картинку. Причём вероятность увидеть мигание тем больше, чем больше высота картинки (у меня ЖК монитор). Так что я не понял, почему без sleep работает не как задумано.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2010-11-20T15:02:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41999#p41999</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изображения в GUI (мигания при guicontrol)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41998#p41998" />
			<content type="html"><![CDATA[<p>Есть, но относительно сложные <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />. Нужно использовать &quot;layered windows&quot; и <a href="http://www.autohotkey.com/forum/topic32238.html"><strong>GDI+</strong></a>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-11-20T14:54:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41998#p41998</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изображения в GUI (мигания при guicontrol)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41996#p41996" />
			<content type="html"><![CDATA[<p>Да. В <a href="http://forum.script-coding.com/viewtopic.php?id=5177">этой</a> теме помогли разобраться как сделать фон картинки прозрачным. Теперь надо разобраться как избавиться от мигания кнопок. Хочу создать скин для GUI.<br />Читал на офф форуме, что GuiControl перерисовывает элементы, в результате чего появляется мигание. Писали, что может помочь AltSubmit, но не помогло.<br />Может есть другие варианты?</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2010-11-20T13:36:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41996#p41996</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изображения в GUI (мигания при guicontrol)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41995#p41995" />
			<content type="html"><![CDATA[<p>Как бы имитируете вдавливание кнопки в панель?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2010-11-20T13:10:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41995#p41995</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: изображения в GUI (мигания при guicontrol)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41994#p41994" />
			<content type="html"><![CDATA[<p>Читал офф форум, там решения не нашел, может у нас кто знает.<br />Есть картинка. Добавляю ее в GUI. Сверху накладываю такую же картинку. При нажатии на вторую картинку, которая сверху, она должна скрываться, при отпускании Lbutton - появляться опять.<br />Казалось ничего происходить не должно, т.к. две одинаковые картинки наложены друг на друга, и если убрать ту, что сверху, то ничего происходить не должно.<br />На тут получается небольшое мигание, в результате чего виден фон GUI. Это происходит не всегда, иногда после первого нажатия, иногда после 10-20 быстрых нажатий.<br />Есть решения?</p><br /><div class="codebox"><pre><code>If !FileExist(&quot;1.jpg&quot;)
   URLDownloadToFile, http://onemove.ru/get/27414, 1.jpg

   Gui, add, picture, w100 h100 x100 y100 gLabel, 1.jpg
   Gui, add, picture, w100 h100 x100 y100 gLabel, 1.jpg
   gui, show, w300 h300, GUI
Return

Label:
   GuiControl, hide, static2
   While GetKeyState(&quot;lbutton&quot;, &quot;P&quot;)
   sleep 100
   GuiControl, show, static2
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2010-11-20T12:59:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41994#p41994</id>
		</entry>
</feed>
