<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Tab и Tab3]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12135</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12135&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Tab и Tab3».]]></description>
		<lastBuildDate>Fri, 17 May 2019 06:48:16 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134386#p134386</link>
			<description><![CDATA[<p>Лучше тогда использовать - <br /></p><div class="codebox"><pre><code>Gui, Tab ; Добавленные элементы управления появятся вне вкладок.</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (-Sema-)]]></author>
			<pubDate>Fri, 17 May 2019 06:48:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134386#p134386</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134385#p134385</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (belyankin12)]]></author>
			<pubDate>Fri, 17 May 2019 06:37:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134385#p134385</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134384#p134384</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (-Sema-)]]></author>
			<pubDate>Fri, 17 May 2019 04:43:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134384#p134384</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=109004#p109004</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 07 Nov 2016 22:34:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=109004#p109004</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=109003#p109003</link>
			<description><![CDATA[<p>Мелочный я, да и как-то русские буквы милей <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (Sgy-x2)]]></author>
			<pubDate>Mon, 07 Nov 2016 22:30:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=109003#p109003</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=109002#p109002</link>
			<description><![CDATA[<p>Ну правильно, несколько контролов в одном окне нельзя называть одинаково. А зачем вам давать им имена, можно ведь ориентироваться на OK и Cancel.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 07 Nov 2016 22:27:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=109002#p109002</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=109001#p109001</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Sgy-x2)]]></author>
			<pubDate>Mon, 07 Nov 2016 22:16:21 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=109001#p109001</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=109000#p109000</link>
			<description><![CDATA[<p>Нет, цикл добавляет кнопки на каждую вкладку, просто циклом запись более компактная.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 07 Nov 2016 21:59:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=109000#p109000</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108999#p108999</link>
			<description><![CDATA[<p>Спасибо. <br />Я правильно понимаю, цикл просто обновляет кнопки для каждой вкладки?</p>]]></description>
			<author><![CDATA[null@example.com (Sgy-x2)]]></author>
			<pubDate>Mon, 07 Nov 2016 21:57:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108999#p108999</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108998#p108998</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 07 Nov 2016 21:50:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108998#p108998</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108997#p108997</link>
			<description><![CDATA[<p>Да, они даже на наведение мыши не реагируют. Значит, для вас Tab3 не подойдёт.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 07 Nov 2016 21:44:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108997#p108997</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108996#p108996</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Sgy-x2)]]></author>
			<pubDate>Mon, 07 Nov 2016 21:24:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108996#p108996</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108995#p108995</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 07 Nov 2016 17:05:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108995#p108995</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108994#p108994</link>
			<description><![CDATA[<p>Ну тогда проще Tab2 использовать, т.к. я особой разницы не вижу между ними, а добавлять для двух десятков вкладок свои кнопки, ну...</p>]]></description>
			<author><![CDATA[null@example.com (Sgy-x2)]]></author>
			<pubDate>Mon, 07 Nov 2016 16:59:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108994#p108994</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Tab и Tab3]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108993#p108993</link>
			<description><![CDATA[<p>Ну, или просто ниже всех вкладок.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 07 Nov 2016 16:56:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108993#p108993</guid>
		</item>
	</channel>
</rss>
