<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Как добавить дочернюю вкладку в одну из уже созданных вкладок?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16248&amp;type=atom" />
	<updated>2021-04-09T16:43:55Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16248</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как добавить дочернюю вкладку в одну из уже созданных вкладок?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147233#p147233" />
			<content type="html"><![CDATA[<p>Простого и очевидного решения нет.<br /></p><div class="codebox"><pre><code>Gui, Main: Default
Gui, Margin, 0, 0
Gui, Add, Tab3, hwndhTab vMainTab w400 h300 gMainTab AltSubmit, Вкладка 1|Вкладка 2|Вкладка 3
hParent := DllCall(&quot;GetWindow&quot;, Ptr, hTab, UInt, GW_HWNDNEXT := 2, Ptr)
WinGetPos,,, W, H, ahk_id %hParent%

Colors := [&quot;Red&quot;, &quot;Lime&quot;, &quot;Blue&quot;]
Loop 3  {
   Gui, Tab%A_Index%: Default
   Gui, +Parent%hParent% -Caption +ToolWindow
   Gui, Add, Tab3, % &quot;x&quot; 5 &quot; y&quot; 5 &quot; w&quot; W - 20 &quot; h&quot; H - 20, Вкладка %A_Index%-1|Вкладка %A_Index%-2|Вкладка %A_Index%-3
   Gui, Tab, 1
   Gui, Add, Edit, w200 h100, Edit %A_Index%-1
   Gui, Tab, 2
   Gui, Add, Button, gOnClick w100, Кнопка %A_Index%-2
   Gui, Tab, 3
   Gui, Add, Progress, % &quot;w200 h20 c&quot; Colors[A_Index], % 100 * A_Index/3
   Gui, Show, % &quot;Hide x5 y5 w&quot; W - 10 &quot; h&quot; H - 10
}
Gui, Tab1:Show, NA

Gui,Main: Show, w400 h300
Return

OnClick:
   MsgBox, % A_GuiControl
   Return
   
MainTab:
   Gui, Tab%MainTab%:Show, Hide
   GuiControlGet, MainTab, Main:
   Gui, Tab%MainTab%:Show, NA
   Return
   
MainGuiClose:
   ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-04-09T16:43:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147233#p147233</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как добавить дочернюю вкладку в одну из уже созданных вкладок?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147232#p147232" />
			<content type="html"><![CDATA[<p>Имеется такой написанный скрипт для МТАшки, ну&nbsp; это не суть. В нем есть пару вкладок. Хочу сделать так сказать подвкладки в уже созданную вкладку. Для наглядности вот скриншот - https://yapx.ru/v/L01U1 . Во вкладке &quot;Информационная доска&quot; хочу создать дочернии вкладки. </p><p>Gui, 2:Add, Tab2, x0 y0 w1220 h25 cFF2400&nbsp; +BackgroundTrans, Бинды|РП Ситуации|Штрафы КоАП|Штрафы УАК|График работы|Автомобили и амуниция|Информационная доска</p><p>Вот, что имеется.</p>]]></content>
			<author>
				<name><![CDATA[Royce_Kasper]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41633</uri>
			</author>
			<updated>2021-04-09T16:06:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147232#p147232</id>
		</entry>
</feed>
