<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Tab и Tab3]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12135&amp;type=atom" />
	<updated>2019-05-17T06:48:16Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12135</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134386#p134386" />
			<content type="html"><![CDATA[<p>Лучше тогда использовать - <br /></p><div class="codebox"><pre><code>Gui, Tab ; Добавленные элементы управления появятся вне вкладок.</code></pre></div>]]></content>
			<author>
				<name><![CDATA[-Sema-]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39521</uri>
			</author>
			<updated>2019-05-17T06:48:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134386#p134386</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134385#p134385" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Gui, Main: Add, Button, x2 y560 w100 h40 gCancel, Отмена
Gui, Main: Add, Button, x492 y600 w70 h30 gVersion, О программе
Gui, Main: Add, Button, x122 y560 w110 h40 gHelp, Помощь
Gui, Main: Add, Button, x572 y560 w190 h70 gSave, Сохранить
Gui, Main: Add, Button, x492 y560 w70 h30 gRemove, Сброс параметров
Gui, Main: Add, Tab, x2 y70 w810 h490 , Основные бинды|Пользовательский биндер|Биндерботство|Команды|Overlay|Настройки
Gui, Main: Tab, Основные бинды</code></pre></div><p>Это пример с одной из моих программ. Вышеописанные кнопки всегда видны и всегда работают, ещё ни разу ничего не ломалось. Или кнопки должны находится поверх области tab&#039;a? Не разумнее будет урезать область tab&#039;a в таком случае для универсальных кнопок?</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2019-05-17T06:37:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134385#p134385</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134384#p134384" />
			<content type="html"><![CDATA[<p>Если так -<br /></p><div class="codebox"><pre><code>
   Gui, Add, Button, Default x20 y50 w100 vnew1%A_Index%, ok
   Gui, Add, Button, x150 y50 w100 vnew2%A_Index%, Cancel</code></pre></div><p>то каждой переменной добавится индекс вкладки.</p><p>Со своей проблемой - разобрался сам. Оказалось записи, к примеру -<br /></p><div class="codebox"><pre><code>Zad_Lich:
Gui, Submit, NoHide
MsgBox, %Numb_Tab%
Return</code></pre></div><div class="codebox"><pre><code>Zad_Lich:
Gui, Submit, NoHide
MsgBox, %Tab%
Return</code></pre></div><p>иногда интерпретируются одинаково.<br />Переменная Tab тогда равна номеру вкладки с которой был вызов подпрограммы<br />(но только если использовать - Gui, Submit).<br />Однако, при таком варианте -<br /></p><div class="codebox"><pre><code>Zad_Lich:
Gui, Submit, NoHide
MsgBox, %Numb_Tab%`n%A_GuiControl%
Return</code></pre></div><p>переменная Numb_Tab будет пустая.</p><p>Я вообще не знал о такой переменной - Tab.</p>]]></content>
			<author>
				<name><![CDATA[-Sema-]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39521</uri>
			</author>
			<updated>2019-05-17T04:43:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134384#p134384</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109004#p109004" />
			<content type="html"><![CDATA[<p>Можно, например, так:<br /></p><div class="codebox"><pre><code>Gui, Add, Tab3, x10 y10 w250 h120 , 1|2|3
Loop 3 {
   Gui, Tab, %A_Index%
   Gui, Add, Button, % &quot;x20 y50 w100 vnew&quot; A_Index * 2 - 1, ok
   Gui, Add, Button, % &quot;x150 y50 w100 vnew&quot; A_Index * 2, Cancel
}
Gui, Tab, 1
Gui, Add, Button, Default x80 y100 w100, Test
Gui, Show
GuiControl,, new1, ОК
GuiControl,, new2, Отмена
Return

ButtonOk:
ButtonCancel:
	MsgBox Test 1
Return
ButtonTest:
	MsgBox Test 2
Return</code></pre></div><p>Тогда у кнопок ok будут имена new1, new3, и new5, а у кнопок Cancel new2, new4, и new6.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-11-07T22:34:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109004#p109004</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109003#p109003" />
			<content type="html"><![CDATA[<p>Мелочный я, да и как-то русские буквы милей <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Sgy-x2]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32753</uri>
			</author>
			<updated>2016-11-07T22:30:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109003#p109003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109002#p109002" />
			<content type="html"><![CDATA[<p>Ну правильно, несколько контролов в одном окне нельзя называть одинаково. А зачем вам давать им имена, можно ведь ориентироваться на OK и Cancel.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-11-07T22:27:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109002#p109002</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109001#p109001" />
			<content type="html"><![CDATA[<p>Мне уже не по себе от этого вопроса, можно было просто использовать Tab или Tab2, и не умчать вас. В общем ещё проблема.<br />Если использовать ссылку на GuiControl, то выводится ошибка об использовании нескольких контролов.<br /></p><div class="codebox"><pre><code>Gui, Add, Tab3, x10 y10 w250 h120 , 1|2|3
Loop 3 {
   Gui, Tab, %A_Index%
   Gui, Add, Button, Default x20 y50 w100 vnew1, ok
   Gui, Add, Button, x150 y50 w100 vnew2, Cancel
}
Gui, Tab, 1
Gui, Add, Button, Default x80 y100 w100, Test
Gui, Show
GuiControl,, new1, ОК
GuiControl,, new2, Отмена
Return

ButtonOk:
ButtonCancel:
	MsgBox Test 1
Return
ButtonTest:
	MsgBox Test 2
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Sgy-x2]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32753</uri>
			</author>
			<updated>2016-11-07T22:16:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109001#p109001</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109000#p109000" />
			<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>2016-11-07T21:59:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109000#p109000</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=108999#p108999" />
			<content type="html"><![CDATA[<p>Спасибо. <br />Я правильно понимаю, цикл просто обновляет кнопки для каждой вкладки?</p>]]></content>
			<author>
				<name><![CDATA[Sgy-x2]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32753</uri>
			</author>
			<updated>2016-11-07T21:57:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=108999#p108999</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=108998#p108998" />
			<content type="html"><![CDATA[<p>Ну, или как я выше предлагал:<br /></p><div class="codebox"><pre><code>Gui, Add, Tab3, x10 y10 w250 h120 , 1|2|3
Loop 3 {
   Gui, Tab, %A_Index%
   Gui, Add, Button, Default x20 y50 w100, ok
   Gui, Add, Button, x150 y50 w100, Cancel
}
Gui, Tab, 1
Gui, Add, Button, Default x80 y100 w100, Test
Gui, Show
Return

ButtonOk:
ButtonCancel:
	MsgBox Test 1
Return
ButtonTest:
	MsgBox Test 2
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-11-07T21:50:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=108998#p108998</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=108997#p108997" />
			<content type="html"><![CDATA[<p>Да, они даже на наведение мыши не реагируют. Значит, для вас Tab3 не подойдёт.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-11-07T21:44:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=108997#p108997</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=108996#p108996" />
			<content type="html"><![CDATA[<p>Заметил ещё одну странность. Те кнопки в вашем коде не активны, и не переходят к метки. Вот код для примера.<br /></p><div class="codebox"><pre><code>Gui, Add, Tab3, x10 y10 w250 h120 , 1|2|3
Gui, Tab
Gui, Add, Button, Default x20 y50 w100, ok
Gui, Add, Button, x150 y50 w100, Cancel
Gui, Tab, 1
Gui, Add, Button, Default x80 y100 w100, Test
Gui, Show
Return

ButtonOk:
ButtonCansel:
	MsgBox Test 1
Return
ButtonTest:
	MsgBox Test 2
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Sgy-x2]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32753</uri>
			</author>
			<updated>2016-11-07T21:24:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=108996#p108996</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=108995#p108995" />
			<content type="html"><![CDATA[<p>Вот так у меня вышло:<br /></p><div class="codebox"><pre><code>Gui, Add, Tab3, x10 y10 w250 h120 , 1|2|3
Gui, Tab
Gui, Add, Button, Default x20 y50 w100, ok
Gui, Add, Button, x150 y50 w100, Cancel
Gui, Show</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-11-07T17:05:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=108995#p108995</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=108994#p108994" />
			<content type="html"><![CDATA[<p>Ну тогда проще Tab2 использовать, т.к. я особой разницы не вижу между ними, а добавлять для двух десятков вкладок свои кнопки, ну...</p>]]></content>
			<author>
				<name><![CDATA[Sgy-x2]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32753</uri>
			</author>
			<updated>2016-11-07T16:59:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=108994#p108994</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=108993#p108993" />
			<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>2016-11-07T16:56:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=108993#p108993</id>
		</entry>
</feed>
