<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AutoHotKey - Checkbox / GuiControl]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5169&amp;type=atom" />
	<updated>2011-02-13T21:11:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5169</id>
		<entry>
			<title type="html"><![CDATA[Re: AutoHotKey - Checkbox / GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=45127#p45127" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>VlaDOS</strong>, не заставляйте нырять в потоки сознания, расставьте знаки препинания.</span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2011-02-13T21:11:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=45127#p45127</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoHotKey - Checkbox / GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=45126#p45126" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>   Gui, Add, Checkbox, vCheckName gCheckbox hwndhCheckbox, Я Чекбокс
   Gui, Show, w100 h50
   Return

Checkbox:
   GuiControlGet, State,, CheckName
   if State
   {
      ControlGetText, Text,, ahk_id %hCheckbox%
      MsgBox, % Text
   }
   Return
   
GuiClose:
   ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-02-13T21:08:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=45126#p45126</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoHotKey - Checkbox / GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=45125#p45125" />
			<content type="html"><![CDATA[<p>Слушайте есть CheckBox нужно вот что: при отметки чекбокса текст чекс бокса копировался в файл тхт FileAppend,&nbsp; (с FileAppend, проблем нет) а вот CheckBox меня что то озадачил.</p>]]></content>
			<author>
				<name><![CDATA[VlaDOS]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26748</uri>
			</author>
			<updated>2011-02-13T20:25:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=45125#p45125</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoHotKey - Checkbox / GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41668#p41668" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>FurniturMan пишет:</cite><blockquote><p>Мне нужно что бы по нажатию галочки, присвоелся параметр +ReadOnliy</p></blockquote></div><p>Такого параметра нет. У Edit-контрола есть стиль ES_READONLY. Чтобы его присвоить контролу после создания, нужно послать ему сообщение <a href="http://msdn.microsoft.com/en-us/library/bb761655%28VS.85%29.aspx">EM_SETREADONLY</a>:<br /></p><div class="codebox"><pre><code>Gui, Add, Checkbox, x6 y49 w10 h20 gCheck_Box_Lebel, CheckBox
Gui, Add, Edit, x16 y49 w50 h20 vVar_1_1 , 10.00
Gui, Show, w200 h100, Checkbox | AutoHotKey
Return

GuiClose:
    ExitApp

Check_Box_Lebel:
Start := !Start
SendMessage, EM_SETREADONLY := 0xCF, Start,, Edit1, Checkbox | AutoHotKey
Return</code></pre></div><div class="quotebox"><cite>FurniturMan пишет:</cite><blockquote><p>1. Подскажите пожалуйста, правильно ли я понимаю Checkbox. Или этот элемент гуи можно обрабатывать иначе?</p></blockquote></div><p>А как ты его понимаешь? Можно и иначе, в зависимости от того, что нужно сделать.<br /></p><div class="quotebox"><cite>FurniturMan пишет:</cite><blockquote><p>2. Можно ли аналогичнм способ, превратить вот этот контрол:</p></blockquote></div><p>Один контрол в другой превратить нельзя, можно один удалить либо скрыть, другой создать.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-11-14T16:21:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41668#p41668</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AutoHotKey - Checkbox / GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41667#p41667" />
			<content type="html"><![CDATA[<p>Доброго времени&nbsp; суток!<br />Вот пример кода:<br /></p><div class="codebox"><pre><code>Gui, Add, Checkbox, x6 y49 w10 h20 gCheck_Box_Lebel, CheckBox
Gui, Add, Edit, x16 y49 w50 h20 vVar_1_1 , 10.00
Gui, Show, w200 h100, Checkbox | AutoHotKey
Return

GuiClose:
    ExitApp

Check_Box_Lebel:
Start := !Start
If Start
    GuiControl, +ReadOnly, Var_1_1
Else
    GuiControl, -ReadOnly, Var_1_1
Return</code></pre></div><p>Мне нужно что бы по нажатию галочки, присвоелся параметр <strong>+ReadOnliy</strong><br />иначе:<br />-ReadOnliy</p><p>1. Подскажите пожалуйста, правильно ли я понимаю <strong>Checkbox</strong>. Или этот элемент гуи можно обрабатывать иначе?<br />2. Можно ли аналогичнм способ, превратить вот этот контрол:<br /></p><div class="codebox"><pre><code>Gui, Add, Edit, x16 y49 w50 h20 vVar_1_1 , 10.00</code></pre></div><p>Вот в этот:<br /></p><div class="codebox"><pre><code>Gui, Add, DateTime, x776 y49 w80 h20 vVar_12_1</code></pre></div><p>?</p>]]></content>
			<author>
				<name><![CDATA[FurniturMan]]></name>
			</author>
			<updated>2010-11-14T15:10:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41667#p41667</id>
		</entry>
</feed>
