<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Размер CheckBox]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=9630</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9630&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Размер CheckBox».]]></description>
		<lastBuildDate>Tue, 20 May 2014 19:15:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Размер CheckBox]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=83163#p83163</link>
			<description><![CDATA[<p>Ну, если для себя, то как угодно, если для публикации — можно сбить пользователя с толку.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 20 May 2014 19:15:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=83163#p83163</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Размер CheckBox]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=83160#p83160</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Как сортируются эти иконки в Shell32.dll ? Хочу красный крестик поставить вместо галочки, но получаю лишь ID иконки, которое не подходит.</p></blockquote></div><p>У меня есть такой код, для просмотра иконок:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>
#SingleInstance Force
#NoEnv
ListLines Off
SetBatchLines -1
Menu, Tray, Icon, Shell32.dll, 305 

Files = Shell32.dll|explorer.exe|connect.dll|DDORes.dll|imageres.dll|ieframe.dll|comres.dll|irprops.cpl|mmres.dll|mspaint.exe|netcenter.dll|networkexplorer.dll|pnidui.dll|SyncCenter.dll|wlanpref.dll|wmploc.DLL|wpdshext.dll|xpsrchvw.exe|wlandlg.dll|main.cpl|accessibilitycpl.dll|ActionCenterCPL.dll|netprof.dll|netshell.dll|networkmap.dll|PortableDeviceStatus.dll|powercpl.dll|powrprof.dll|shdocvw.dll|WISPTIS.EXE|SndVolSSO.dll|Utilman.exe
arrFiles := StrSplit(Files, &quot;|&quot;), MaxIndex := arrFiles.MaxIndex(), this := 0
  
HLim = 500
GoTo PgUp

#If WinActive(&quot;ahk_id&quot; hGui)

PgUp::
PgDn:: 
    this := A_ThisLabel = &quot;PgUp&quot; ? ++this : --this
    this := this &gt; MaxIndex ? 1 : this = 0 ? MaxIndex : this
    Gui, Destroy
    Gui, -DPIScale +HWNDhGui
    Gui, Color, 2F4F4F
    File := arrFiles[this], ColH := 0
    Loop 
    { 
        glue := ColH &gt; HLim ? &quot;ym&quot; : &quot;&quot;, ColH := glue = &quot;&quot; ? ColH : 0 
        Gui, Add, Picture, % glue &quot; Icon&quot; A_Index &quot; v&quot; A_Index &quot; gIcon  Border&quot;, % File  
        GuiControlGet, Pos, Pos , % A_Index
        ColH += PosH
    } 
    Until PosH = 0
    Gui, Show, Hide 
    Gui, Show, x-1 y-1 AutoSize, % File
    WinGetPos, , , WinWidth, , ahk_id %hGui%
    If WinWidth &lt; 350
        Gui, Show, w350 
    Return

#If

Icon:
    GuiControlGet, Pos, Pos , % A_GuiControl
    Gui, Show,  , % File &quot;   № &quot; A_GuiControl &quot;   &quot; PosW-2 &quot; x &quot; PosH-2  
    FileGetSize, SizeKB, C:\Windows\System32\%File%, K
    ToolTip % File &quot;`nИконка № &quot;&quot;&quot; A_GuiControl &quot;&quot;&quot;`n&quot; PosW-2 &quot; x &quot; PosH-2 &quot;`n&quot; SizeKB &quot; KB&quot;
    Clipboard := File &quot;, &quot; A_GuiControl
    KeyWait Lbutton
    ToolTip
    Return 
    
GuiClose: 
GuiEscape:
    ExitApp 
</code></pre></div></div></div><div class="quotebox"><blockquote><p>Да, чекбоксы обычно используются независимо друг от друга.</p></blockquote></div><p>Как то не думал об этом. Вроде как удобно, так и используй. Чекбокс и радио это кнопка разных стилей, для радио встроен алгоритм привязки, для чеков нет. А так мало ли какая нужда, мне недавно в меню надо было сделать группу из нескольких пунктов, если там нет радио, или радио внешне не устраивает, что же теперь, не делать.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 20 May 2014 18:25:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=83160#p83160</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Размер CheckBox]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=83158#p83158</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Ты про выражение:</p><div class="quotebox"><blockquote><p>объединить в радио группу</p></blockquote></div></blockquote></div><p>Да, чекбоксы обычно используются независимо друг от друга.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 20 May 2014 16:28:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=83158#p83158</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Размер CheckBox]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=83156#p83156</link>
			<description><![CDATA[<p>Спасибо за ответы.<br />Как сортируются эти иконки в Shell32.dll ? Хочу красный крестик поставить вместо галочки, но получаю лишь ID иконки, которое не подходит. <br />До радио групп дело пока не дошло, возможно позже когда понадобится.</p>]]></description>
			<author><![CDATA[null@example.com (Странникх)]]></author>
			<pubDate>Tue, 20 May 2014 16:05:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=83156#p83156</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Размер CheckBox]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=83148#p83148</link>
			<description><![CDATA[<p>Ты про выражение:</p><div class="quotebox"><blockquote><p>объединить в радио группу</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 20 May 2014 13:57:06 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=83148#p83148</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Размер CheckBox]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=83144#p83144</link>
			<description><![CDATA[<p>Думаю, ты путаешь CheckBox с Radio-button.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 20 May 2014 12:25:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=83144#p83144</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Размер CheckBox]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=83142#p83142</link>
			<description><![CDATA[<p>Не знаю надо ли это ТС, но на основе одной переменной нетрудно объединить самодельные чекбоксы в радио группу:<br /></p><div class="codebox"><pre><code>
GroupCount := 12 
IsCheck := 5
Gui, -DPIScale
Gui, Font, s16
Loop % GroupCount
{
    Gui, Add, Picture, xm w32 h-1 +0x1000 Icon51 gGroup Border vCheck%A_Index%, Shell32.dll  
    Gui, Add, Text, x+0 hp +0x201 gGroup vText%A_Index%, % &quot;  CheckBox &quot; A_Index 
}
GuiControl, , Check%IsCheck%, *Icon145 Shell32.dll 
Gui, Show
Return

Group: 
    GuiControl, , Check%IsCheck%, *Icon51 Shell32.dll
    IsCheck := RegExReplace(A_GuiControl, &quot;S).*?(\d+)$&quot;, &quot;$1&quot;)
    GuiControl, , Check%IsCheck%, *Icon145 Shell32.dll   
    GuiControl, Focus, Check%IsCheck%
    Return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 20 May 2014 11:52:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=83142#p83142</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Размер CheckBox]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=83131#p83131</link>
			<description><![CDATA[<div class="codebox"><pre><code>
Gui, Font, s20
Gui, Add, Picture, +0x1000 Icon51 gGroupControl w50 h-1 Border vCheck1, Shell32.dll  
Gui, Add, Text, x+0 hp +0x201 gGroupControl, % &quot;  CheckBox  &quot;
Gui, Show
Return

GroupControl:
    GuiControl, Focus, Check1
    GuiControl, , Check1, % ((Opt1 := !Opt1) ? &quot;*Icon145&quot; : &quot;*Icon51&quot;) &quot; Shell32.dll&quot; 
    if !Opt1 
        MsgBox, ВЫКЛ  
    else
        MsgBox, ВКЛ 
    Return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 20 May 2014 07:56:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=83131#p83131</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Размер CheckBox]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=83128#p83128</link>
			<description><![CDATA[<p>Впрямую, наверно, никак. В качестве обходного пути можно попробовать стиль BS_PUSHLIKE (0x1000). Галочку можно имитировать буквой V. Но текст возле бокса уже придётся задавать отдельно, как контрол Text.<br /></p><div class="codebox"><pre><code>
Gui, -Caption +AlwaysOnTop +E0x08000000 +Lastfound
Gui, Margin, 0, 0
Gui, Add, Picture, x0 y0 w588 h266, C:\Pic.jpg
Gui, Add, CheckBox, +0x1000 x42 y80 w30 h30 vGroupControl gGroupControl
Gui, Add, Text, x+4 yp+8, Hello, world!
Gui, Show, x21 y49 h266 w588, GUI Windows
Return

GroupControl:
GuiControlGet, Opt1, , GroupControl
if(Opt1 = 0) {
GuiControl,, GroupControl
MsgBox, ВЫКЛ
Return
}

if(Opt1 = 1) { 
GuiControl,, GroupControl, V
MsgBox, ВКЛ
Return
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Tue, 20 May 2014 04:59:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=83128#p83128</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Размер CheckBox]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=83124#p83124</link>
			<description><![CDATA[<div class="codebox"><pre><code>Gui, -Caption +AlwaysOnTop +E0x08000000 +Lastfound
Gui, Margin, 0, 0
Gui, Add, Picture, x0 y0 w588 h266, C:\Pic.jpg
Gui, Add, CheckBox, x42 y80 w13 h13 vGroupControl gGroupControl
Gui, Show, x21 y49 h266 w588, GUI Windows
Return

GroupControl:
GuiControlGet, Opt1, , GroupControl
if(Opt1 = 0) {
MsgBox, ВЫКЛ
Return
}

if(Opt1 = 1) { 
MsgBox, ВКЛ
Return
}</code></pre></div><p>Как можно задать размер чек бокса больше чем 13х13 ? Я имею в виду квадратик, в котором галочка ставится, а не дополнительное место под текст для пояснения чек бокса.</p>]]></description>
			<author><![CDATA[null@example.com (Странникх)]]></author>
			<pubDate>Mon, 19 May 2014 22:38:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=83124#p83124</guid>
		</item>
	</channel>
</rss>
