<?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=16806&amp;type=atom" />
	<updated>2021-12-07T14:11:52Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16806</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не работает GUI без рамки и перемещение]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151028#p151028" />
			<content type="html"><![CDATA[<p>В функции</p><div class="codebox"><pre><code>WM_LBUTTONDOWN()
{
	PostMessage, 0xA1, 2,,, A
}</code></pre></div><p>эта часть <strong>,,, A</strong> лишняя, действие применяется к окну, из которого пришло сообщение.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-12-07T14:11:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151028#p151028</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не работает GUI без рамки и перемещение]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151027#p151027" />
			<content type="html"><![CDATA[<p>Кхм, да, это то, что нужно. Спасибо.<br />Может кому-то пригодится (хотя такого полно будет).</p><div class="codebox"><pre><code>gui, main:-Caption
gui, main:Margin, 10, 10
gui, main:Color, 090909, 252525

gui, main:Font, s9 Bold c909090, Consolas

gui, main:add, edit, x5 y10 h15 +number -E0x200 gonEdit vedit
gui, main:add, text, x8 y+5 w100 vresult

gui, main:Show ;, x1920 y735

OnMessage(0x201, &quot;WM_LBUTTONDOWN&quot;)
return

WM_LBUTTONDOWN()
{
	PostMessage, 0xA1, 2,,, A
}

onEdit()
{
	GuiControlGet, edit, main:, edit
	GuiControl, main:, result, % calcBlock2Stack(edit)
}

calcBlock2Stack(count)
{
	stack := count // 64
	rest := mod(count, 64)

	return (rest ? rest (stack ? &quot; + &quot; : &quot;&quot;) : &quot;&quot;) (stack ? &quot;(64 x &quot; stack &quot;)&quot; : &quot;&quot;)
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2021-12-07T14:03:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151027#p151027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не работает GUI без рамки и перемещение]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151026#p151026" />
			<content type="html"><![CDATA[<p>Смотря, что называть рамкой. Можно вместо <em>-Border -SysMenu</em> использовать <em>-Caption</em>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-12-07T13:56:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151026#p151026</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не работает GUI без рамки и перемещение]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151025#p151025" />
			<content type="html"><![CDATA[<p>Хорошо, я и в правду думал на данный участок, но почему-то в древнем скрипте ее не было и все работало как нужно.<br />Все работает, после добавления:<br /></p><div class="codebox"><pre><code>WM_LBUTTONDOWN()
{
	PostMessage, 0xA1, 2,,, A
}</code></pre></div><p>Остается вопрос насчет рамки окна.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2021-12-07T13:43:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151025#p151025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не работает GUI без рамки и перемещение]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151024#p151024" />
			<content type="html"><![CDATA[<p>Это очевидно — отсутствует функция <em>WM_LBUTTONDOWN()</em>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-12-07T13:37:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151024#p151024</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Не работает GUI без рамки и перемещение]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151023#p151023" />
			<content type="html"><![CDATA[<p>Есть данный код:<br /></p><div class="codebox"><pre><code>gui, main:-Border -SysMenu
gui, main:Margin, 10, 10
gui, main:Color, 090909, 252525

gui, main:Font, s9 Bold c909090, Consolas

gui, main:add, edit, x5 y10 h15 +number -E0x200 gonEdit vedit
gui, main:add, text, x8 y+5 w100 vresult

gui, main:Show

OnMessage(0x201, &quot;WM_LBUTTONDOWN&quot;)
return

onEdit()
{
	GuiControlGet, edit, main:, edit
	GuiControl, main:, result, % calcBlock2Stack(edit)
}

calcBlock2Stack(count)
{
	stack := count // 64
	rest := mod(count, 64)

	return (rest ? rest (stack ? &quot; + &quot; : &quot;&quot;) : &quot;&quot;) (stack ? &quot;(64 x &quot; stack &quot;)&quot; : &quot;&quot;)
}</code></pre></div><p>По сути, окно должно было появится без рамки и должна быть возможность перемещения, но это не работает. Почему?</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2021-12-07T13:23:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151023#p151023</id>
		</entry>
</feed>
