<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Ограничить высоту Menu]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=9249&amp;type=atom" />
	<updated>2014-02-12T11:40:45Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=9249</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ограничить высоту Menu]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=80010#p80010" />
			<content type="html"><![CDATA[<p>Для этого нужно самому создавать скроллбар с помощью CreateWindowEx() и затем самостоятельно отслеживать события от него.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-02-12T11:40:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=80010#p80010</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ограничить высоту Menu]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=80009#p80009" />
			<content type="html"><![CDATA[<p>Да.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-02-12T11:34:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=80009#p80009</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ограничить высоту Menu]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=80008#p80008" />
			<content type="html"><![CDATA[<p>В смысле, ширину ползунка скроллбара?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-02-12T11:29:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=80008#p80008</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ограничить высоту Menu]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=80005#p80005" />
			<content type="html"><![CDATA[<p>Да, согласен. <br />Кстати насчёт красоты, навскидку не помнишь, как задать свою ширину VScroll в контроле?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-02-12T10:17:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=80005#p80005</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ограничить высоту Menu]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=79998#p79998" />
			<content type="html"><![CDATA[<p>С DDL не так красиво, но проще гораздо. Контекстное меню окна:<br /></p><div class="codebox"><pre><code>Loop, % A_ProgramFiles &quot;\*&quot;, 2
   Folders .= (A_Index = 1 ? &quot;&quot; : &quot;|&quot;) . A_LoopFileName

Gui, Menu:-Caption +ToolWindow
Gui, Menu:Add, DDL, x0 y0 w150 hwndhDDL gDDL vDDL, % Folders
PostMessage, CB_SETITEMHEIGHT := 0x153, 0, 17,, ahk_id %hDDL%
PostMessage, CB_SETMINVISIBLE := (CBM_FIRST := 0x1700) + 1, 10,,, ahk_id %hDDL%
GuiControlGet, DDL, Menu:Pos

Gui, Main:Show, w300 h200
return

DDL:
   Gui, Menu: Submit
   Run, % A_ProgramFiles &quot;\&quot; DDL
   return

MainGuiContextMenu:
   GuiControl, Menu:, DDL, |%Folders%
   CoordMode, Mouse
   MouseGetPos, X, Y
   Gui, Menu:Show, % &quot;Hide x&quot; X &quot; y&quot; Y-DDLH
   PostMessage, CB_SHOWDROPDOWN := 0x14F, 1,,, ahk_id %hDDL%
   return
   
MainGuiClose:
   ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-02-11T23:47:46Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=79998#p79998</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ограничить высоту Menu]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=79997#p79997" />
			<content type="html"><![CDATA[<p>Тогда уж ListView с иконками и стилями.<br />Что-то наподобие:<br /></p><div class="codebox"><pre><code>
Gui, Font, s14
Gui, Margin, 0, 0
Gui -Caption -DPIScale
Gui, Add, ListView, r10 Grid -Hdr vMyListView hwndhListView, 1
ImageListID := IL_Create(), LV_SetImageList(ImageListID)  
Loop 20  
    IL_Add(ImageListID, &quot;shell32.dll&quot;, A_Index+133)   
    , LV_Add(&quot;Icon&quot; . A_Index, &quot; item &quot; A_Index) 
LV_ModifyCol()  
SendMessage, 0x101D, 0, , , ahk_id %hListView% ; LVM_GETCOLUMNWIDTH
WIDTH := ErrorLevel + 25
GuiControl, Move, MyListView, w%WIDTH% 
Gui Show, w%WIDTH%
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-02-11T19:49:51Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=79997#p79997</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ограничить высоту Menu]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=79987#p79987" />
			<content type="html"><![CDATA[<p>Большое спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2014-02-11T14:16:00Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=79987#p79987</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ограничить высоту Menu]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=79986#p79986" />
			<content type="html"><![CDATA[<p>В меню такой возможности нет, пользуйтесь DDL.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-02-11T12:24:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=79986#p79986</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Ограничить высоту Menu]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=79968#p79968" />
			<content type="html"><![CDATA[<p>Доброго времени суток .Помогите ограничить высоту &quot;Menu&quot;, а то получается выпадающий список на весь экран.Если можно сделать так что бы показывало 10 строк вниз а не все строки сразу.</p><div class="codebox"><pre><code>~vk20::

Menu, m, Add, *, ItemName 
Menu, m, Add, *~, ItemName
Menu, m, Add, $, ItemName
Menu, m, Add, ~, ItemName
Menu, m, Add, =, ItemName
Menu, m, Add, :=, ItemName
Menu, m, Add, &amp;, ItemName
Menu, m, Add, @, ItemName
Menu, m, Add, #, ItemName
Menu, m, Add, while, ItemName
Menu, m, Add, Loop, ItemName
Menu, m, Add, Break, ItemName
Menu, m, Add, Menu, ItemName
Menu, m, Add, GetKeyState, ItemName
Menu, m, Add, Send { }, ItemName
Menu, m, Add, SendRaw, ItemName    
Menu, m, Add, SendMessage, ItemName    
Menu, m, Add, Input, ItemName    
Menu, m, Add, KeyWait, ItemName    
Menu, m, Add, SetKeyDelay, ItemName
Menu, m, Add, SetTimer, ItemName    
Menu, m, Add, Sleep, ItemName
Menu, m, Add, Pause, ItemName
Menu, m, Add, Suspend, ItemName
Menu, m, Add, Reload, ItemName    
Menu, m, Add, Return, ItemName
Menu, m, Add, LButton, ItemName 
Menu, m, Add, RButton, ItemName 
Menu, m, Add, MButton, ItemName
Menu, m, Add, WheelDown, ItemName 
Menu, m, Add, WheelUp, ItemName 
Menu, m, Add, XButton1, ItemName 
Menu, m, Add, XButton2, ItemName
Menu, m, Add, Up, ItemName
Menu, m, Add, Down, ItemName
Menu, m, Add, Left, ItemName
Menu, m, Add, Right, ItemName
Menu, m, Add, LeftClick, ItemName
Menu, m, Add, LeftClickDrag, ItemName    
Menu, m, Add, RightClick, ItemName    
Menu, m, Add, RightClickDrag, ItemName
Menu, m, Add, MouseClick, ItemName    
Menu, m, Add, MouseClickDrag, ItemName    
Menu, m, Add, MouseGetPos, ItemName    
Menu, m, Add, MouseMove, ItemName
Menu, m, Add, SetMouseDelay, ItemName
Menu, m, Add, SetControlDelay, ItemName    
Menu, m, Add, SetDefaultMouseSpeed, ItemName    
Menu, m, Add, SetTitleMatchMode, ItemName
Menu, m, Add, SetBatchLines, ItemName    
Menu, m, Add, SetWinDelay, ItemName    
Menu, m, Add, SetWorkingDir, ItemName    
Menu, m, Add, Shutdown, ItemName
Menu, m, Add, ToolTip, ItemName    
Menu, m, Add, TrayTip, ItemName
Menu, m, Add, SoundBeep, ItemName    
Menu, m, Add, Process, ItemName    
Menu, m, Add, PixelGetColor, ItemName    
Menu, m, Add, PixelSearch, ItemName    
Menu, m, Add, PostMessage, ItemName    
Menu, m, Add, Run, ItemName    
Menu, m, Add, RunAs, ItemName    
Menu, m, Add, RunWait, ItemName    
Menu, m, Add, Exit, ItemName    
Menu, m, Add, ExitApp, ItemName
Menu, m, show
Return 

ItemName:
  clipboard =
   clipboard = %A_ThisMenuItem%
   ClipWait
   Return

   *Mbutton::
Send, ^{vk56}
Sleep 20
Reload
Return </code></pre></div>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2014-02-10T23:34:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=79968#p79968</id>
		</entry>
</feed>
