<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: GUI, изменение цвета TAb после нажатия button]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=14106</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14106&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: GUI, изменение цвета TAb после нажатия button».]]></description>
		<lastBuildDate>Fri, 24 Aug 2018 05:18:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: GUI, изменение цвета TAb после нажатия button]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=128213#p128213</link>
			<description><![CDATA[<p>Спасибо, я, наверное, не правильно задал вопрос, хотелось бы изменение не всей вкладки, а только её верхней части, где номера вкладок.</p>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Fri, 24 Aug 2018 05:18:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=128213#p128213</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GUI, изменение цвета TAb после нажатия button]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=128212#p128212</link>
			<description><![CDATA[<p>Можно, но сложно, пример:<br /></p><div class="codebox"><pre><code>Gui, Main:Add, Tab3, x0 y0 w300 h200 hwndhTab vMainTab gChangeTab AltSubmit, Tab1|Tab2|Tab3
Gui, Main:Margin, 0, 0
hParent := DllCall(&quot;GetWindow&quot;, Ptr, hTab, UInt, GW_HWNDNEXT := 2, Ptr)
WinGetPos,,, W, H, ahk_id %hParent%

for k, v in [&quot;FFDDDD&quot;, &quot;DDFFDD&quot;, &quot;EEEEFF&quot;]  {
   Gui, Tab%k%: Default
   Gui, +Parent%hParent% -Caption +ToolWindow
   Gui, Color, % v
   Gui, Add, Button, vButton%k%, Change Color
   handler := Func(&quot;ChangeTabColor&quot;).Bind(v)
   GuiControl, +g, Button%k%, % handler
   Gui, Show, Hide x0 y0 w%W% h%H%
}
Gui, Tab1: Show
Gui, Main: Show
Return

MainGuiClose:
   ExitApp

ChangeTabColor(color)  {
   static obj := {}
   Gui, % &quot;Tab&quot; . SubStr(A_GuiControl, 0) . &quot;:Color&quot;, % (obj[A_GuiControl] := !obj[A_GuiControl]) ? &quot;White&quot; : color
}

ChangeTab()  {
   global MainTab
   Gui, Tab%MainTab%:Show, Hide
   GuiControlGet, MainTab, Main:
   Gui, Tab%MainTab%:Show, NA
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Fri, 24 Aug 2018 03:51:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=128212#p128212</guid>
		</item>
		<item>
			<title><![CDATA[AHK: GUI, изменение цвета TAb после нажатия button]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=128210#p128210</link>
			<description><![CDATA[<p>Добрый вечер! Подскажите пож-та, возможно ли изменить вид вкладки (цвет или шрифт), если в это вкладке была нажата кнопка. Заранее спасибо!</p><div class="codebox"><pre><code>Gui, color, 0xFFFFFF
Gui, Font, S10 CDefault, Verdana

Gui, Add, Tab2, x30 y90 w900 h50  Buttons vTAB_BUTTON, 1|2|

Gui, Font, S14 CDefault Bold Italic, Verdana

Gui, Tab, 1
Gui, Add, Text, x102 y+40 w710 h60, Who is it?
Gui, Add, Button, v11 x60 y+30 w190 h60 g11, 1
Gui, Add, Button, v12 x+60 y248 w190 h60 g12, 2
Gui, Add, Button, v13 x+60 y248 w190 h60 g13, 3

Gui, Tab, 2
Gui, Add, Text, x102 y+40 w710 h60, WTF?
Gui, Add, Button, v21 x60 y+30 w190 h60 g21, 1
Gui, Add, Button, v22 x+60 y248 w190 h60 g22, 2
Gui, Add, Button, v23 x+60 y248 w190 h60 g23, 3

Gui, Show, w860 h724, Untitled GUI
return

11:
GuiControl, Disable, 11
GuiControl, Enable, 12
GuiControl, Enable, 13
sleep 300
GuiControl, Choose, TAB_BUTTON, 2
return


12:
GuiControl, Disable, 12
GuiControl, Enable, 11
GuiControl, Enable, 13
sleep 300
GuiControl, Choose, TAB_BUTTON, 2
return

13:
GuiControl, Disable, 13
GuiControl, Enable, 11
GuiControl, Enable, 12
sleep 300
GuiControl, Choose, TAB_BUTTON, 2
return

21:
GuiControl, Disable, 21
GuiControl, Enable, 22
GuiControl, Enable, 23
return

22:
GuiControl, Disable, 22
GuiControl, Enable, 21
GuiControl, Enable, 23
return

23:
GuiControl, Disable, 23
GuiControl, Enable, 21
GuiControl, Enable, 22
return



Esc::ExitApp</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Thu, 23 Aug 2018 18:58:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=128210#p128210</guid>
		</item>
	</channel>
</rss>
