<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: стиль или тип balloon tooltip]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=13650</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13650&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: стиль или тип balloon tooltip».]]></description>
		<lastBuildDate>Wed, 25 Apr 2018 20:01:28 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: стиль или тип balloon tooltip]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124903#p124903</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 (Dworkin)]]></author>
			<pubDate>Wed, 25 Apr 2018 20:01:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124903#p124903</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: стиль или тип balloon tooltip]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124901#p124901</link>
			<description><![CDATA[<p>Насколько я понял, если Ballontip нужно показывать в конкретных координатах, то хвостик будет вверх (за исключением расположения близко к нижнему краю экрана). Если Ballontip привязан к контролу либо к позиции курсора, тогда хвостик по возможности вниз.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 25 Apr 2018 18:22:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124901#p124901</guid>
		</item>
		<item>
			<title><![CDATA[AHK: стиль или тип balloon tooltip]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124899#p124899</link>
			<description><![CDATA[<p>Добрый вечер. Помогите пожалуйста.<br />Нашел вот такой код для создания balloon tooltip:<br /></p><div class="codebox"><pre><code>BalloonTip(&quot;This is a`t`tBalloonTip`tTest.`nThis is a BalloonTip Test.&quot;, &quot;BalloonTip`t-`tAHK, AHK_L compatible&quot;, &quot;I=1 Y=200&quot;)
BalloonTip(&quot;This is a`t`tBalloonTip`tTest.`nThis is a BalloonTip Test.&quot;, &quot;BalloonTip`t-`tAHK, AHK_L compatible&quot;, &quot;I=1 Y=400 Q=0 W=1&quot;)
ExitApp

;================================================================================
BalloonTip(sText, sTitle=&quot;BalloonTip&quot;, Options=&quot;&quot;) { ;		BalloonTip  -  AHK, AHK_L compatible
	; *****************************************************************************************************************************
	;	Options: Space separated string of options bellow like (X=10 Y=10 I=1 T=2000 C=FFFFFF). ( Default Options in [] ).
	;	X= x position [mouse x]
	;	Y= y position [mouse y]
	;	T= Timeout in milliseconds [0]
	;	W= Waits until Closed, by user or by Timeout or by WinClose command [0]
	;	I= Icon 0:None, [1], 2:Warning, 3:Error, &gt;3:assumed to be an hIcon.
	;	C= RGB color for background (like 0xFF00FF or FF00FF), text uses compliment color, [1]
	;	Q= Theme [1], Use 0 to disable Theme for colors to work in Vista, Win7.
	;	NOTE: To Close it before Timeout, use command (WinClose,  ahk_id %&lt;Returned hWnd&gt;%)
	; ******************************************************************************************************************************
	STATIC hWnd, X, Y, T, W, I, C, Q	; Options STATIC to force local variables
	X:=Y:=&quot;&quot;, T:=W:=0, I:=C:=Q:=1, Ptr:=(A_PtrSize ? &quot;Ptr&quot; : &quot;UInt&quot;), sTitle:=((StrLen(sTitle)&lt;99) ? sTitle : (SubStr(sTitle,1,95) . &quot; ...&quot;))
	loop, Parse, Options, %A_Space%=, %A_Space%%A_Tab%`r`n
		A_Index &amp; 1  ? (Var:=A_LoopField) : (%Var%:=A_LoopField)
	DllCall(&quot;GetCursorPos&quot;, &quot;int64P&quot;, pt), X:=(!X ? pt &lt;&lt; 32 &gt;&gt; 32 : X), Y:=(!Y ? pt &gt;&gt; 32 : Y)
	a:=((C=1) ? ((hDC:=DllCall(&quot;GetDC&quot;,&quot;Uint&quot;,0)) (C:=DllCall(&quot;GetPixel&quot;,&quot;Uint&quot;,hDC,&quot;int&quot;,X,&quot;int&quot;,Y)) (DllCall(&quot;ReleaseDC&quot;,&quot;Uint&quot;,0,&quot;Uint&quot;,hDC))) : ((C:=(StrLen(C)&lt;8 ? &quot;0x&quot; : &quot;&quot;) . C) (C:=((C&amp;255)&lt;&lt;16)+(((C&gt;&gt;8)&amp;255)&lt;&lt;8)+(C&gt;&gt;16)))) ; rgb -&gt; bgr
	VarSetCapacity(ti,(A_PtrSize ? 28+A_PtrSize*3 : 40),0), ti:=Chr((A_PtrSize ? 28+A_PtrSize*3 : 40)), NumPut(0x20,ti,4,&quot;UInt&quot;), NumPut(&amp;sText,&amp;ti,(A_PtrSize ? 24+A_PtrSize*3 : 36))
	hWnd:=DllCall(&quot;CreateWindowEx&quot;,Ptr,0x8,&quot;str&quot;,&quot;tooltips_class32&quot;,&quot;str&quot;,&quot;&quot;,Ptr,0xC3,&quot;int&quot;,0,&quot;int&quot;,0,&quot;int&quot;,0,&quot;int&quot;,0,Ptr,0,Ptr,0,Ptr,0,Ptr,0,Ptr)
	a:=(Q ? DllCall(&quot;SendMessage&quot;,&quot;Uint&quot;,hWnd,Ptr,0x200b,Ptr,0,Ptr,&quot;&quot;) : DllCall(&quot;uxtheme\SetWindowTheme&quot;,&quot;Uint&quot;,hWnd,Ptr,0,&quot;UintP&quot;,0)) ; TTM_SETWINDOWTHEME
	DllCall(&quot;SendMessage&quot;, Ptr, hWnd, &quot;Uint&quot;, 1028, Ptr, 0, Ptr, &amp;ti, Ptr)				; TTM_ADDTOOL
	DllCall(&quot;SendMessage&quot;, Ptr, hWnd, &quot;Uint&quot;, 1041, Ptr, 1, Ptr, &amp;ti, Ptr)				; TTM_TRACKACTIVATE
	DllCall(&quot;SendMessage&quot;, Ptr, hWnd, &quot;Uint&quot;, 1042, Ptr, 0, Ptr, (X &amp; 0xFFFF)|(Y &amp; 0xFFFF)&lt;&lt;16,Ptr)	; TTM_TRACKPOSITION
	DllCall(&quot;SendMessage&quot;, Ptr, hWnd, &quot;Uint&quot;, 1043, Ptr, C, Ptr,   0, Ptr)				; TTM_SETTIPBKCOLOR
	DllCall(&quot;SendMessage&quot;, Ptr, hWnd, &quot;Uint&quot;, 1044, Ptr, ~C &amp; 0xFFFFFF,  Ptr, 0,Ptr)		; TTM_SETTIPTEXTCOLOR
	DllCall(&quot;SendMessage&quot;, Ptr, hWnd, &quot;Uint&quot;,(A_IsUnicode ? 1057 : 1056),Ptr, I,Ptr, &amp;sTitle, Ptr)	; TTM_SETTITLE 0:None, 1:Info, 2:Warning, 3:Error, &gt;3:assumed to be an hIcon.
	DllCall(&quot;SendMessage&quot;, Ptr, hWnd, &quot;Uint&quot;, 1048, Ptr, 0, Ptr, A_ScreenWidth)			; TTM_SETMAXTIPWIDTH
	DllCall(&quot;SendMessage&quot;, Ptr, hWnd, &quot;UInt&quot;,(A_IsUnicode ? 0x439 : 0x40c), Ptr, 0, Ptr, &amp;ti, Ptr)	; TTM_UPDATETIPTEXT (OLD_MSG=1036)
	IfGreater, I, 0, SoundPlay, % &quot;*&quot; . (I=2 ? 48 : I=3 ? 16 : 64)
	IfGreater, T, 0, SetTimer, BalloonTip_TimeOut, %T%
	IfGreater, W, 0, WinWaitClose, ahk_id %hWnd%
	SetTimer, BalloonTip_TimeOut, Off
	Return hWnd
	BalloonTip_TimeOut:
	SetTimer, BalloonTip_TimeOut, Off
	WinClose, ahk_id %hWnd%
	Return
}</code></pre></div><p>Все что находил у сообщений хвостик показывает верх, а мне надо вниз.<br />Вот как тут на первой картинке:<br /><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/hh298401(v=vs.85).aspx">https://msdn.microsoft.com/en-us/librar … s.85).aspx</a></p>]]></description>
			<author><![CDATA[null@example.com (Dworkin)]]></author>
			<pubDate>Wed, 25 Apr 2018 16:05:56 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124899#p124899</guid>
		</item>
	</channel>
</rss>
