<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Class_ImageButton смена фона картинки кнопки при наведении]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=15660</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15660&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Class_ImageButton смена фона картинки кнопки при наведении».]]></description>
		<lastBuildDate>Thu, 10 Sep 2020 13:57:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Class_ImageButton смена фона картинки кнопки при наведении]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142088#p142088</link>
			<description><![CDATA[<p>Решил добавить показательный код:<br /></p><div class="codebox"><pre><code>
#NoEnv
SetBatchLines, -1
#Include Class_ImageButton.ahk
; ----------------------------------------------------------------------------------------------------------------------
Gui, DummyGUI:Add, Pic, hwndHPIC, PIC1.jpg
SendMessage, 0x0173, 0, 0, , ahk_id %HPIC% ; STM_GETIMAGE
HPIC1 := ErrorLevel

GuiColor := &quot;Blue&quot;
Gui, Margin, 50, 20
Gui, Font, s10
Gui, Color, %GuiColor%
ImageButton.SetGuiColor(GuiColor)

Gui, Add, Button, vBT4 w200 h30 hwndHBT4
; Opt1 := [0, HPIC1]                                          ; normal image
Opt1 := [0, &quot;warning.png&quot;]                                          ; normal image
; Opt2 := {2:&quot;PIC2.jpg&quot;}                                      ; hot image (object syntax)
Opt2 := {2:&quot;info.png&quot;}
If !ImageButton.Create(HBT4, Opt1, Opt2)
   MsgBox, 0, ImageButton Error Btn4, % ImageButton.LastError
; GuiControl, Focus, BT2
Gui, Show, , Image Buttons
Return
; ----------------------------------------------------------------------------------------------------------------------
GuiClose:
GuiEscape:
ExitApp
; ----------------------------------------------------------------------------------------------------------------------
Check:
   GuiControlGet, CheckBox
   GuiControl, Enable%CheckBox%, BT3
   GuiControl, Text, CheckBox, % (CheckBox ? &quot;Disable!&quot; : &quot;Enable!&quot;)
Return

</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Шикарная услуга плана)]]></author>
			<pubDate>Thu, 10 Sep 2020 13:57:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142088#p142088</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Class_ImageButton смена фона картинки кнопки при наведении]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142087#p142087</link>
			<description><![CDATA[<p>Добрый день!<br />Делаю свой интерфейс, нашел Class_ImageButton, сделал кнопки иконки с прозрачностью.<br />Мне нужно сделать смену фона при наведении мышкой на кнопку. <br />Смотрел код, но пока недостаточно квалификации, чтобы понять как это менять.<br />Можете помочь с примерами\объяснениями.</p>]]></description>
			<author><![CDATA[null@example.com (Шикарная услуга плана)]]></author>
			<pubDate>Thu, 10 Sep 2020 13:45:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142087#p142087</guid>
		</item>
	</channel>
</rss>
