<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Создание CheckBox в GUI]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5307&amp;type=atom" />
	<updated>2013-04-16T17:48:00Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5307</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создание CheckBox в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71473#p71473" />
			<content type="html"><![CDATA[<p>Да, я имел в виду запуск подпрограммы с использованием <em>ControlGet</em> для определения состояния флажка.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2013-04-16T17:48:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71473#p71473</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создание CheckBox в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71472#p71472" />
			<content type="html"><![CDATA[<p>Ну и ещё конечно команда ControlGet или танцы с SendMessage.</p><p>Но я так понял что <strong>ypppu</strong> имел ввиду что-то другое... ибо упоминались &quot;Встроенные переменные&quot;.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-04-16T17:30:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71472#p71472</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создание CheckBox в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71470#p71470" />
			<content type="html"><![CDATA[<p>Я смог только через <em><strong>GuiControlGet</strong></em> обойти <em><strong>Submit</strong></em></p>]]></content>
			<author>
				<name><![CDATA[Mikki]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5905</uri>
			</author>
			<updated>2013-04-16T17:22:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71470#p71470</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создание CheckBox в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71469#p71469" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Есть позаковыристей - см. Встроенные переменные: графический интерфейс пользователя (GUI)</p></blockquote></div><p>А как? Подумал что типа:<br /></p><div class="codebox"><pre><code>

Gui, Add, CheckBox, vCheckBox gCheckBox, CheckBox
Gui, Show
Return

CheckBox:
    ;    GuiControlGet %A_GuiControl%
    ToolTip % A_GuiControl &quot; = &quot; %A_GuiControl%
    Return

</code></pre></div><p>конечно без применения <em>GuiControlGet</em>.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-04-16T16:55:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71469#p71469</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создание CheckBox в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71455#p71455" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Mikki пишет:</cite><blockquote><p>Правильно ли я понимаю - пока не сделаешь &quot;gui, submit&quot;, в переменной, присвоенной чекбоксу, не изменится значение?</p></blockquote></div><p>Да, это один из вариантов, довольно удобный. Есть позаковыристей - см.<strong> <em>Встроенные переменные: графический интерфейс пользователя (GUI)</em></strong></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2013-04-16T13:58:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71455#p71455</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создание CheckBox в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71453#p71453" />
			<content type="html"><![CDATA[<p>Правильно ли я понимаю - пока не сделаешь &quot;gui, submit&quot;, в переменной, присвоенной чекбоксу, не изменится значение?</p>]]></content>
			<author>
				<name><![CDATA[Mikki]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5905</uri>
			</author>
			<updated>2013-04-16T13:46:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71453#p71453</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создание CheckBox в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43094#p43094" />
			<content type="html"><![CDATA[<p>Спасибо больше, всё работает <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Monterrey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26559</uri>
			</author>
			<updated>2010-12-27T12:26:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43094#p43094</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создание CheckBox в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43074#p43074" />
			<content type="html"><![CDATA[<p>После строки &quot;ButtonSave:&quot; добавь<br />gui, submit, nohide</p>]]></content>
			<author>
				<name><![CDATA[pant-79]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=960</uri>
			</author>
			<updated>2010-12-26T21:05:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43074#p43074</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Создание CheckBox в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43073#p43073" />
			<content type="html"><![CDATA[<p>Возникла проблема с настройкой CheckBox. Дело в том, что я хочу сделать так, чтобы при поставленной галочке в файле ini переменной присваивалось значение 1, иначе - 0.&nbsp; <br />Файл ini я создал, эта переменная там есть, её значение - 0 (изначально).<br /></p><div class="codebox"><pre><code>IniWrite, 0 , new.ini, Section, Key</code></pre></div><p>Далее идет CheckBox. <br />Проверяется значение переменной Key (будет стандартно поставлена галочка или нет).<br /></p><div class="codebox"><pre><code>IniRead, NewValue, new.ini, Section, Key
If NewValue = 0
{ 
Gui, Add, CheckBox, vCheckValue, ...
}else{
Gui, Add, CheckBox, Checked vCheckValue, ...
}
Gui, Add, Button, Default, Save
Return</code></pre></div><p>Теперь сохраняем то, что изменили (кнопка Save).<br /></p><div class="codebox"><pre><code>ButtonSave:
If CheckValue=1 
{
IniWrite, 1, new.ini, Section, Key
}else{
IniWrite, 0, new.ini, Section, Key
Return</code></pre></div><p>Вроде, всё написано правильно, но почему то в файле ini, переменной присваивается значение 0, в любом случае. То есть CheckValue никогда не принимает значения 1. Помогите пожалуйста разобраться с данной проблемой.<br />Заранее спасибо!</p>]]></content>
			<author>
				<name><![CDATA[Monterrey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26559</uri>
			</author>
			<updated>2010-12-26T20:40:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43073#p43073</id>
		</entry>
</feed>
