<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: GUI ListView настройка VScroll/HScroll]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11830&amp;type=atom" />
	<updated>2016-07-20T19:48:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11830</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI ListView настройка VScroll/HScroll]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106212#p106212" />
			<content type="html"><![CDATA[<p>У меня прикол, т.е. я чтото не понимаю.</p><p>Написал только&nbsp; и все скроллы отрубились. </p><div class="codebox"><pre><code>Gui, Add, ListView, NoSortHdr -LV0x10 r%vCountTab% w%vSizeLVW% hwndidLV, Ключ|Описание ключа</code></pre></div><p>В тестовом варианте работает как положено.</p><p>В чём причина?</p><br /><p><strong>UPD</strong><br />У меня переменное число строк - сам дурак. <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" /><br />Тема закрыта.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2016-07-20T19:48:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106212#p106212</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI ListView настройка VScroll/HScroll]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106211#p106211" />
			<content type="html"><![CDATA[<p>Спасибо, остался один вопрос - небольшой.</p><p>В функции CutCtrl(idLV,18) есть параметр <strong>idLV</strong>.<br />Он берётся из Gui,add,ListView,r5 <strong>hwndidLV</strong> ,A|B.</p><p>Верно?</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2016-07-20T18:55:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106211#p106211</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI ListView настройка VScroll/HScroll]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106210#p106210" />
			<content type="html"><![CDATA[<p>Можно так подрезать.<br /></p><div class="codebox"><pre><code>Gui,add,ListView,r5 hwndidLV ,A|B
loop 10
	LV_Add(&quot;&quot;,A_Index,Format(&quot;{:050}&quot;,&quot;&quot;)) ; В &#039;b&#039; добавляем 50 нулей.
LV_ModifyCol()
DllCall(&quot;EnableScrollBar&quot; ,(A_PtrSize=8) ? &quot;Ptr&quot;:&quot;UInt&quot;,	idLV, &quot;UInt&quot;,0x0 ,&quot;UInt&quot;,0x3)
CutCtrl(idLV,18)
Gui,show,w600 h600

Return





CutCtrl(id,num)
{
	Local w,h
	ControlGetPos,,,w,h,,ahk_id %idLV%
	WinSet, Region, %  &quot;0-0 &quot; w &quot;-0 &quot; w &quot;-&quot; h-num &quot; 0-&quot; h-num,ahk_id %id%
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-07-20T18:44:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106210#p106210</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI ListView настройка VScroll/HScroll]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106208#p106208" />
			<content type="html"><![CDATA[<p><strong>yalanne</strong> А показать вертикальную? <br />Хотя можно подрезать размер области... немного и она всегда будет, но всё же... это не то.</p><p>Да, можно и до <strong>Gui,show</strong>, только вот проблемка скролл пропал, но осталось его поле.<br /></p><div class="codebox"><pre><code>Gui,add,ListView,r5 hwndidLV ,A|B
loop 10
	LV_Add(&quot;&quot;,A_Index,Format(&quot;{:050}&quot;,&quot;&quot;)) ; В &#039;b&#039; добавляем 50 нулей.
LV_ModifyCol()
DllCall(&quot;EnableScrollBar&quot; ,(A_PtrSize=8) ? &quot;Ptr&quot;:&quot;UInt&quot;,	idLV, &quot;UInt&quot;,0x0 ,&quot;UInt&quot;,0x3)
Gui,show,w600 h600</code></pre></div><p>Его то как убрать?</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2016-07-20T18:28:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106208#p106208</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI ListView настройка VScroll/HScroll]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106206#p106206" />
			<content type="html"><![CDATA[<p>2) Можно вот так заблокировать горизонтальную прокрутку:<br /></p><div class="codebox"><pre><code>Gui,add,ListView,r5 hwndidLV ,A|B
loop 10
	LV_Add(&quot;&quot;,A_Index,Format(&quot;{:050}&quot;,&quot;&quot;)) ; В &#039;b&#039; добавляем 50 нулей.
LV_ModifyCol()
Gui,show,w600 h600
sleep 2000
DllCall(&quot;EnableScrollBar&quot; ,(A_PtrSize=8) ? &quot;Ptr&quot;:&quot;UInt&quot;,	idLV, &quot;UInt&quot;,0x0 ,&quot;UInt&quot;,0x3)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-07-20T17:52:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106206#p106206</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: GUI ListView настройка VScroll/HScroll]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106205#p106205" />
			<content type="html"><![CDATA[<p>Приветствую.</p><p>Мой вопрос похож на <a href="http://forum.script-coding.com/viewtopic.php?id=11821">AHK: VScroll/HScroll для GUI.</a>, но немножко другой.</p><p><strong>Вопрос №1</strong>&nbsp; Как принудительно показывать <strong>VScroll</strong> - в любом случае?<br /><strong>Вопрос №2</strong>&nbsp; Как принудительно не показывать <strong>НScroll</strong>, даже если общая ширина больше заданной?</p><br /><p>Код есть, вот его фрагмент. </p><div class="codebox"><pre><code>;=======================================================================================
;Подпрограмма генерации справки-дигностики
;=======================================================================================   
lHelpGui:
  vCountChar  := StrLen(vTitleWin)
  vSizeFont   :=  12
  vSizeWinW   :=  790 ;ширина размер по X
  vSizeWinH   :=  590 ;высота размер по Y
  vSizeLVW    := vSizeWinW - 33
  vBtW        := 120
  vBtH        := 50  
  vBtX        := 25
  vBtY        := vSizeWinH - vBtH -10
  
  Gui, New , -maximizebox -minimizebox +AlwaysOnTop +Caption, %vTitleWin%
  Gui, Font, c000000 s12, Verdana
  Gui, Add, Text,, %vTitle%
  Gui, Add, ListView, NoSortHdr -LV0x10 r%vCountTab% w%vSizeLVW%, Ключ|Описание ключа
  Gui, Add, Text,, %vEndTitle%
  Gui, Add, Button, section Default x%vBtX% y%vBtY% w%vBtW% h%vBtH% , &amp;Закрыть
  Loop %vCountTab%
      LV_Add(&quot;&quot;, arTable[A_Index,1],  arTable[A_Index,2], &quot;&quot;)
  LV_ModifyCol()
  Gui, Show, Center w%vSizeWinW% h%vSizeWinH%
  SoundPlay *64
  fHelpKey := True
Return

GuiHelpEnd:
  While (fHelpKey)
    Sleep 500
  Gui, Cancel
Return
 
ButtonЗакрыть:
GuiEscape:
GuiClose:
  fHelpKey := False
  Goto GuiHelpEnd
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2016-07-20T16:49:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106205#p106205</id>
		</entry>
</feed>
