<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Проблема с перемещением ListView.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15652&amp;type=atom" />
	<updated>2020-09-07T23:05:28Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15652</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с перемещением ListView.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142026#p142026" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />О как всё просто оказалось, а я уже думал всю справку перерыл.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-09-07T23:05:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142026#p142026</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с перемещением ListView.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142025#p142025" />
			<content type="html"><![CDATA[<p>Метка <em>GuiSize</em> относится к <em>Gui, 1</em>. Для <em>Gui, 2</em> нужно использовать <em>2GuiSize</em>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-09-07T23:03:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142025#p142025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Проблема с перемещением ListView.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142024#p142024" />
			<content type="html"><![CDATA[<p>Столкнулся с тем, что если создать во втором Gui окне ListView список, то его не удаётся переместить при помощи GuiSize.</p><br /><div class="codebox"><pre><code>Gui, +Resize
Gui, Add, ListView, vMyList1 r4 x10 y10 w400, Первое окно|Проблем с ним нет
LV_Add(&quot;&quot;,&quot;Окно 1&quot;,&quot;Текст 1&quot;)	; Добавить в окно №1.
Gui, Show	; Отобразить окно №1.

Gui, 2: +Resize
Gui, 2: Add, ListView, vMyList2 HWNDhML2 r10 x10 y10 w300, Второе окно|Нет реакции

Gui, 2: Default			; Установить окно №2 по умолчанию.
;Gui, ListView, MyList2	; Переключаем на второй ListView (нет эффекта?).

LV_Add(&quot;&quot;,&quot;Окно 2&quot;,&quot;Текст 2&quot;)	; Добавить в окно №2	(работает благодаря &#039;Gui, 2: Default&#039;).

Gui, 2: Show	; Отобразить окно №2.
Return


GuiSize:
;Gui, Submit, NoHide	; Не заметил эффекта.
If ErrorLevel = 1 ; Окно минимизировано. Ничего делать не нужно.
 Return

WinGetPos,,,W0,H0	; Получить текущие размеры окна.

; Применить перемещение с отступом:
GuiControl, Move, MyList1, % &quot;W&quot; . (W0 - 70) . &quot; H&quot; . (H0 - 70)
GuiControl, Move, MyList2, % &quot;W&quot; . (W0 - 70) . &quot; H&quot; . (H0 - 70)		; Нет эффекта.


;Tool(A_GuiControl &quot;`nW0=&quot; W0 &quot;`nH0=&quot; H0)	; Отобразить размеры.
;GuiControl, +Redraw, MyList1		; Нет эффекта.
;GuiControl, +Redraw, MyList2
Return</code></pre></div><p>Имею в виду перемещение ListView внутри окна при изменении размера окна.<br />Это так задумано или есть обходной путь решить проблему?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-09-07T22:59:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142024#p142024</id>
		</entry>
</feed>
