<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Эффекты в ListView]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=16058</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16058&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Эффекты в ListView».]]></description>
		<lastBuildDate>Tue, 05 Mar 2024 11:58:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=160461#p160461</link>
			<description><![CDATA[<p><a href="https://codejock.com/products/reportcontrol/">https://codejock.com/products/reportcontrol/</a><br />899$.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 05 Mar 2024 11:58:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=160461#p160461</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150224#p150224</link>
			<description><![CDATA[<p><a href="https://www.grapecity.com/componentone/activex-ui-controls">https://www.grapecity.com/componentone/ … i-controls</a><br />1195$</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 27 Oct 2021 04:20:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150224#p150224</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150192#p150192</link>
			<description><![CDATA[<p><a href="https://bcgsoft.com/featuretour/tour194.htm">https://bcgsoft.com/featuretour/tour194.htm</a><br />600$.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 23 Oct 2021 18:26:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150192#p150192</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150189#p150189</link>
			<description><![CDATA[<p><a href="https://10tec.com/activex-grid/">https://10tec.com/activex-grid/</a><br />275 евро.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 23 Oct 2021 03:07:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150189#p150189</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=148438#p148438</link>
			<description><![CDATA[<p>XpTable (недоведенный до ума):<br /><a href="https://www.autohotkey.com/boards/viewtopic.php?t=23986">https://www.autohotkey.com/boards/viewtopic.php?t=23986</a></p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 14 Jun 2021 01:25:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=148438#p148438</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=148409#p148409</link>
			<description><![CDATA[<p>Столкнулся с подобным желанием у заказчика.<br />Решил через создание прокручиваемого окна.<br /></p><div class="codebox"><pre><code>;[edited to make it x64/x32 compatible]
;Scrollable Gui - Proof of Concept - Scripts and Functions - AutoHotkey Community
;https://autohotkey.com/board/topic/26033-scrollable-gui-proof-of-concept/#entry168174

#NoEnv

OnMessage(0x115, &quot;OnScroll&quot;) ; WM_VSCROLL
OnMessage(0x114, &quot;OnScroll&quot;) ; WM_HSCROLL

Gui, +Resize +0x300000 ; WS_VSCROLL | WS_HSCROLL

Loop 8
    Gui, Add, Edit, R5 W400, Edit %A_Index%
Gui, Add, Button,, Do absolutely nothing
Gui, Show, W200 H200

Gui, +LastFound
GroupAdd, MyGui, % &quot;ahk_id &quot; . WinExist()

return

GuiSize:
    UpdateScrollBars(A_Gui, A_GuiWidth, A_GuiHeight)
return

GuiClose:
ExitApp

#IfWinActive ahk_group MyGui
WheelUp::
WheelDown::
+WheelUp::
+WheelDown::
    ; SB_LINEDOWN=1, SB_LINEUP=0, WM_HSCROLL=0x114, WM_VSCROLL=0x115
    OnScroll(InStr(A_ThisHotkey,&quot;Down&quot;) ? 1 : 0, 0, GetKeyState(&quot;Shift&quot;) ? 0x114 : 0x115, WinExist())
return
#IfWinActive

UpdateScrollBars(GuiNum, GuiWidth, GuiHeight)
{
    static SIF_RANGE=0x1, SIF_PAGE=0x2, SIF_DISABLENOSCROLL=0x8, SB_HORZ=0, SB_VERT=1

    Gui, %GuiNum%:Default
    Gui, +LastFound

    ; Calculate scrolling area.
    Left := Top := 9999
    Right := Bottom := 0
    WinGet, ControlList, ControlList
    Loop, Parse, ControlList, `n
    {
        GuiControlGet, c, Pos, %A_LoopField%
        if (cX &lt; Left)
            Left := cX
        if (cY &lt; Top)
            Top := cY
        if (cX + cW &gt; Right)
            Right := cX + cW
        if (cY + cH &gt; Bottom)
            Bottom := cY + cH
    }
    Left -= 8
    Top -= 8
    Right += 8
    Bottom += 8
    ScrollWidth := Right-Left
    ScrollHeight := Bottom-Top

    ; Initialize SCROLLINFO.
    VarSetCapacity(si, 28, 0)
    NumPut(28, si, 0, &quot;uint&quot;) ; cbSize
    NumPut(SIF_RANGE | SIF_PAGE, si, 4, &quot;uint&quot;) ; fMask

    ; Update horizontal scroll bar.
    NumPut(ScrollWidth, si, 12, &quot;int&quot;) ; nMax
    NumPut(GuiWidth, si, 16, &quot;uint&quot;) ; nPage
    DllCall(&quot;SetScrollInfo&quot;, &quot;ptr&quot;, WinExist(), &quot;int&quot;, SB_HORZ, &quot;ptr&quot;, &amp;si, &quot;int&quot;, 1)

    ; Update vertical scroll bar.
;     NumPut(SIF_RANGE | SIF_PAGE | SIF_DISABLENOSCROLL, si, 4, &quot;uint&quot;) ; fMask
    NumPut(ScrollHeight, si, 12, &quot;int&quot;) ; nMax
    NumPut(GuiHeight, si, 16, &quot;uint&quot;) ; nPage
    DllCall(&quot;SetScrollInfo&quot;, &quot;ptr&quot;, WinExist(), &quot;int&quot;, SB_VERT, &quot;ptr&quot;, &amp;si, &quot;int&quot;, 1)

    if (Left &lt; 0 &amp;&amp; Right &lt; GuiWidth)
        x := Abs(Left) &gt; GuiWidth-Right ? GuiWidth-Right : Abs(Left)
    if (Top &lt; 0 &amp;&amp; Bottom &lt; GuiHeight)
        y := Abs(Top) &gt; GuiHeight-Bottom ? GuiHeight-Bottom : Abs(Top)
    if (x || y)
        DllCall(&quot;ScrollWindow&quot;, &quot;ptr&quot;, WinExist(), &quot;int&quot;, x, &quot;int&quot;, y, &quot;ptr&quot;, 0, &quot;ptr&quot;, 0)
}

OnScroll(wParam, lParam, msg, hwnd)
{
    static SIF_ALL=0x17, SCROLL_STEP=10

    bar := msg=0x115 ; SB_HORZ=0, SB_VERT=1

    VarSetCapacity(si, 28, 0)
    NumPut(28, si, 0, &quot;uint&quot;) ; cbSize
    NumPut(SIF_ALL, si, 4, &quot;uint&quot;) ; fMask
    if !DllCall(&quot;GetScrollInfo&quot;, &quot;ptr&quot;, hwnd, &quot;int&quot;, bar, &quot;ptr&quot;, &amp;si)
        return

    VarSetCapacity(rect, 16)
    DllCall(&quot;GetClientRect&quot;, &quot;ptr&quot;, hwnd, &quot;ptr&quot;, &amp;rect)

    new_pos := NumGet(si, 20, &quot;int&quot;) ; nPos

    action := wParam &amp; 0xFFFF
    if action = 0 ; SB_LINEUP
        new_pos -= SCROLL_STEP
    else if action = 1 ; SB_LINEDOWN
        new_pos += SCROLL_STEP
    else if action = 2 ; SB_PAGEUP
        new_pos -= NumGet(rect, 12, &quot;int&quot;) - SCROLL_STEP
    else if action = 3 ; SB_PAGEDOWN
        new_pos += NumGet(rect, 12, &quot;int&quot;) - SCROLL_STEP
    else if (action = 5 || action = 4) ; SB_THUMBTRACK || SB_THUMBPOSITION
        new_pos := wParam&gt;&gt;16
    else if action = 6 ; SB_TOP
        new_pos := NumGet(si, 8, &quot;int&quot;) ; nMin
    else if action = 7 ; SB_BOTTOM
        new_pos := NumGet(si, 12, &quot;int&quot;) ; nMax
    else
        return

    min := NumGet(si, 8, &quot;int&quot;) ; nMin
    max := NumGet(si, 12, &quot;int&quot;) - NumGet(si, 16, &quot;uint&quot;) ; nMax-nPage
    new_pos := new_pos &gt; max ? max : new_pos
    new_pos := new_pos &lt; min ? min : new_pos

    old_pos := NumGet(si, 20, &quot;int&quot;) ; nPos

    x := y := 0
    if bar = 0 ; SB_HORZ
        x := old_pos-new_pos
    else
        y := old_pos-new_pos
    ; Scroll contents of window and invalidate uncovered area.
    DllCall(&quot;ScrollWindow&quot;, &quot;ptr&quot;, hwnd, &quot;int&quot;, x, &quot;int&quot;, y, &quot;ptr&quot;, 0, &quot;ptr&quot;, 0)

    ; Update scroll bar.
    NumPut(new_pos, si, 20, &quot;int&quot;) ; nPos
    DllCall(&quot;SetScrollInfo&quot;, &quot;ptr&quot;, hwnd, &quot;int&quot;, bar, &quot;ptr&quot;, &amp;si, &quot;int&quot;, 1)
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Thu, 10 Jun 2021 15:51:00 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=148409#p148409</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=145986#p145986</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>на автохотки не было враппера и я к этому быстро остыл</p></blockquote></div><p>Абсолютно так.<br />Мои исследования закончились отображением надписи поверх директикс через FW1FontWrapper.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 06 Feb 2021 22:32:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=145986#p145986</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=145984#p145984</link>
			<description><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Справка - тут в архиве.</p></blockquote></div><p>Китайская тоже, она в других тоже есть.<br /></p><div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Но там в примерах</p></blockquote></div><p>Я так понял &quot;там&quot;, это про Autoit. Так у тебя получилось в directx11 своё гуи отобразить, или<br /></p><div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>на автохотки не было враппера и я к этому быстро остыл</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 06 Feb 2021 22:28:56 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=145984#p145984</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=145983#p145983</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Справку не видел к ней, вроде где то писали что только на китайском.</p></blockquote></div><p>Справка - тут в архиве.<br /><a href="https://www.freebasic.net/forum/viewtopic.php?t=27325">https://www.freebasic.net/forum/viewtopic.php?t=27325</a><br /></p><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>А на Autoit есть рабочие примеры?</p></blockquote></div><p>На автоите, как и на автохотки вообще нет примеров инжекта и хука directx11, кроме моего.<br />Но imgui на автоит перенесли.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 06 Feb 2021 22:22:00 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=145983#p145983</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=145982#p145982</link>
			<description><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>там в примерах везде инжектят imgui</p></blockquote></div><p>А на Autoit есть рабочие примеры?</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 06 Feb 2021 22:18:49 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=145982#p145982</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=145981#p145981</link>
			<description><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Так у тебя ж есть 27 примеров на автохотки.</p></blockquote></div><p>Тьфу, ё моё, последние ссылки кликнул не рабочие, а первую уже наверное не стал.<br />Справку не видел к ней, вроде где то писали что только на китайском.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 06 Feb 2021 22:15:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=145981#p145981</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=145980#p145980</link>
			<description><![CDATA[<p>Так у тебя ж есть 27 примеров на автохотки.<br /></p><div class="quotebox"><blockquote><p>Downloads: XCGUI_Examples.7z</p></blockquote></div><p><a href="https://www.autohotkey.com/boards/viewtopic.php?t=9201">https://www.autohotkey.com/boards/viewtopic.php?t=9201</a><br /></p><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Ты не пробовал там что нибудь запустить?</p></blockquote></div><p>Неа, мне никогда в UI не было интерса копаться, кроме одного раза, когда я пытался для прикола заинжектить в directx11 своё гуи.<br />Но там в примерах везде инжектят imgui, а на автохотки не было враппера и я к этому быстро остыл.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 06 Feb 2021 22:04:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=145980#p145980</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=145979#p145979</link>
			<description><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p><strong>serzh82saratov</strong>, вот тут дополненная библиотека:<br /><a href="https://github.com/xcgui/demo/tree/master/%E7%82%AB%E5%BD%A9%E7%BC%96%E7%A8%8B%E5%8A%A9%E6%89%8B/Data/DemoMgr/AHK">https://github.com/xcgui/demo/tree/mast … emoMgr/AHK</a></p></blockquote></div><p>Как всегда на AutoHotkey примеров нет, всё на автоит. Попытался запустить пример из 006 ListView.<br /></p><div class="quotebox"><blockquote><p>---------------------------<br />AutoIt Error<br />---------------------------<br />Line 4315&nbsp; (File &quot;L:\AutoHotKey\Custom Gui\demo-master\demo-master\AutoHotkey\Data\DemoMgr\AU3\Cpp\006 ListView\XCGUI_Fun.au3&quot;):</p><p>Return $_XAdapterL[0]<br />Return $_XAdapterL^ ERROR</p><p>Error: Subscript used on non-accessible variable.<br />---------------------------<br />ОК&nbsp; &nbsp;<br />---------------------------</p></blockquote></div><p>Это функция XAdapterListView_Create, в остальных примерах аналогично.</p><p>Ты не пробовал там что нибудь запустить?</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 06 Feb 2021 21:50:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=145979#p145979</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=145970#p145970</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong>, вот тут дополненная библиотека:<br /><a href="https://github.com/xcgui/demo/tree/master/%E7%82%AB%E5%BD%A9%E7%BC%96%E7%A8%8B%E5%8A%A9%E6%89%8B/Data/DemoMgr/AHK">https://github.com/xcgui/demo/tree/mast … emoMgr/AHK</a><br /></p><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>А всё окно мне точно не осилить</p></blockquote></div><p>Глаза боятся, а руки делают. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />А вот приятное гуи от <strong>tmplinshi</strong>:<br /><a href="https://github.com/tmplinshi/XCGUI-Example-SteamWishlist">https://github.com/tmplinshi/XCGUI-Exam … amWishlist</a></p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 06 Feb 2021 20:36:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=145970#p145970</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Эффекты в ListView]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=145969#p145969</link>
			<description><![CDATA[<div class="quotebox"><cite>Lolykroly пишет:</cite><blockquote><p>вот тут</p></blockquote></div><p>Картинка есть?</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 06 Feb 2021 20:28:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=145969#p145969</guid>
		</item>
	</channel>
</rss>
