<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Форум QUIK [тема: Перестают работать события SetTableNotificationCallback]</title>
		<link>http://forum.quik.ru</link>
		<description>Новое в теме Перестают работать события SetTableNotificationCallback форума  на сайте Форум QUIK [forum.quik.ru]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Mon, 20 Apr 2026 03:42:41 +0300</pubDate>
		<item>
			<title>Перестают работать события SetTableNotificationCallback</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum1/message52572/topic4967/">Перестают работать события SetTableNotificationCallback</a></b> в форуме <a href="http://forum.quik.ru/forum1/">Система QUIK</a>. <br />
			Добрый день,<br /> &nbsp; &nbsp; &nbsp; <br /> &nbsp; &nbsp; &nbsp; Мы постараемся исправить описанную в данном инциденте ошибку в &nbsp; &nbsp; &nbsp; одной из очередных версий программы. <br /> &nbsp; &nbsp; &nbsp; Приносим извинения за причиненные неудобства. <br />
			<i>04.02.2021 15:24:47, Egor Zaytsev.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum1/message52572/topic4967/</link>
			<guid>http://forum.quik.ru/messages/forum1/message52572/topic4967/</guid>
			<pubDate>Thu, 04 Feb 2021 15:24:47 +0300</pubDate>
			<category>Система QUIK</category>
		</item>
		<item>
			<title>Перестают работать события SetTableNotificationCallback</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum1/message51627/topic4967/">Перестают работать события SetTableNotificationCallback</a></b> в форуме <a href="http://forum.quik.ru/forum1/">Система QUIK</a>. <br />
			<a class="blog-p-user-name" id="bp_LKlv0aSh" href="/user/54/" bx-tooltip-user-id="54">Старатель</a>, здравствуйте.<br /><br />Действительно, наблюдаем подобные эффекты на своей стороне.<br />Ваше обращение получено, проблема изучается. Постараемся в ближайшее время дать ответ. <br />
			<i>11.01.2021 13:17:24, Evgeniy Karnaukhov.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum1/message51627/topic4967/</link>
			<guid>http://forum.quik.ru/messages/forum1/message51627/topic4967/</guid>
			<pubDate>Mon, 11 Jan 2021 13:17:24 +0300</pubDate>
			<category>Система QUIK</category>
		</item>
		<item>
			<title>Перестают работать события SetTableNotificationCallback</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum1/message51604/topic4967/">Перестают работать события SetTableNotificationCallback</a></b> в форуме <a href="http://forum.quik.ru/forum1/">Система QUIK</a>. <br />
			При нажатии клавиш с кодами 107 (+), 109 (-), 111 (/) на цифровом блоке клавиатуры не работают события QTABLE_CHAR и QTABLE_VKEY. <br />
			<i>09.01.2021 14:29:44, Старатель.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum1/message51604/topic4967/</link>
			<guid>http://forum.quik.ru/messages/forum1/message51604/topic4967/</guid>
			<pubDate>Sat, 09 Jan 2021 14:29:44 +0300</pubDate>
			<category>Система QUIK</category>
		</item>
		<item>
			<title>Перестают работать события SetTableNotificationCallback</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum1/message49229/topic4967/">Перестают работать события SetTableNotificationCallback</a></b> в форуме <a href="http://forum.quik.ru/forum1/">Система QUIK</a>. <br />
			<a class="blog-p-user-name" id="bp_Kl4qWOEv" href="/user/14335/" bx-tooltip-user-id="14335">Роман</a>, добрый день!<br /><br />Дело в том, что в приведенном вами скрипте, отсутствует бесконечный цикл, не позволяющий скрипту завершиться. Из-за этого, вместо того, чтобы работать и ждать появления событий, скрипт выполняется один раз и останавливается.<br /><br />Пример:
====code====
<pre>local stopped = false;
function OnStop()
&nbsp;&nbsp; stopped = true;
&nbsp;&nbsp; return 3000;
end

--data table
local data_table;


--main
-----------------------------------------------------------------------
function main()


--create window and table
data_table = AllocTable();

AddColumn(data_table, 1, 'Колонка №1', true,QTABLE_STRING_TYPE,14)
AddColumn(data_table, 2, 'Колонка №2', true,QTABLE_CACHED_STRING_TYPE,14)
AddColumn(data_table, 3, 'Колонка №3', true,QTABLE_STRING_TYPE,14)

SetTableNotificationCallback(data_table, OnTableEvent)

CreateWindow(data_table);
SetWindowCaption(data_table, 'Table 1');
SetWindowPos(data_table, 1000, 150, 400, 200);
InsertRow(data_table, -1);


SetCell(data_table, 1, 1, 'Клик 1 1');
SetCell(data_table, 1, 2, 'Клик 1 2');
SetCell(data_table, 1, 3, 'Клик 1 3');
InsertRow(data_table, 2);
SetCell(data_table, 2, 1, 'Клик 2 1');
SetCell(data_table, 2, 2, 'Клик 2 2');
SetCell(data_table, 2, 3, 'Клик 2 3');

-- бесконечный цикл (пока stopped == false)
while stopped~=true do
&nbsp;&nbsp;&nbsp;sleep(500)
end

end
--main end
-----------------------------------------------------------------------

-- Функция обрабатывает события в таблице
function OnTableEvent(data_table, msg, par1, par2)
&nbsp;&nbsp; -- Если был клик левой кнопкой
&nbsp;&nbsp; if msg == QTABLE_LBUTTONDBLCLK then
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Если это общий стоп
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if par1 == 1 -- Номер строки
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and par2 == 1 then -- Номер колонки
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Вызываем необходимую функцию
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; message('message 1')
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if par2 == 2 then
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Вызываем необходимую функцию
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; message('message 2')
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end
&nbsp;&nbsp; end
end
</pre>
============= <br />
			<i>13.10.2020 08:15:48, Roman Azarov.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum1/message49229/topic4967/</link>
			<guid>http://forum.quik.ru/messages/forum1/message49229/topic4967/</guid>
			<pubDate>Tue, 13 Oct 2020 08:15:48 +0300</pubDate>
			<category>Система QUIK</category>
		</item>
		<item>
			<title>Перестают работать события SetTableNotificationCallback</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum1/message49215/topic4967/">Перестают работать события SetTableNotificationCallback</a></b> в форуме <a href="http://forum.quik.ru/forum1/">Система QUIK</a>. <br />
			Добрый день! Подскажите пожалуйста, где ошибка. вроде по учебнику все делаю. но по клику не появляется message<br /><br />local stopped = false;<br />function OnStop()<br /> &nbsp; &nbsp;stopped = true;<br /> &nbsp; &nbsp;return 3000;<br />end<br /><br />--data table<br />local data_table;<br /><br /><br />--main<br />-----------------------------------------------------------------------<br />function main()<br /><br /><br />--create window and table<br />data_table = AllocTable();<br /><br />AddColumn(data_table, 1, &#39;Колонка №1&#39;, true,QTABLE_STRING_TYPE,14)<br />AddColumn(data_table, 2, &#39;Колонка №2&#39;, true,QTABLE_CACHED_STRING_TYPE,14)<br />AddColumn(data_table, 3, &#39;Колонка №3&#39;, true,QTABLE_STRING_TYPE,14)<br /><br />SetTableNotificationCallback(data_table, OnTableEvent)<br /><br />CreateWindow(data_table);<br />SetWindowCaption(data_table, &#39;Table 1&#39;);<br />SetWindowPos(data_table, 1000, 150, 400, 200);<br />InsertRow(data_table, -1);<br /><br /><br />SetCell(data_table, 1, 1, &#39;Клик 1 1&#39;);<br />SetCell(data_table, 1, 2, &#39;Клик 1 2&#39;);<br />SetCell(data_table, 1, 3, &#39;Клик 1 3&#39;);<br />InsertRow(data_table, 2);<br />SetCell(data_table, 2, 1, &#39;Клик 2 1&#39;);<br />SetCell(data_table, 2, 2, &#39;Клик 2 2&#39;);<br />SetCell(data_table, 2, 3, &#39;Клик 2 3&#39;);<br /><br /><br /><br />end<br />--main end<br />-----------------------------------------------------------------------<br /><br />-- Функция обрабатывает события в таблице<br />function OnTableEvent(data_table, msg, par1, par2)<br /> &nbsp; &nbsp;-- Если был клик левой кнопкой<br /> &nbsp; &nbsp;if msg == QTABLE_LBUTTONDBLCLK then<br /> &nbsp; &nbsp; &nbsp; &nbsp;-- Если это общий стоп<br /> &nbsp; &nbsp; &nbsp; &nbsp;if par1 == 1 -- Номер строки<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;and par2 == 1 then -- Номер колонки<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Вызываем необходимую функцию<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;message(&#39;message 1&#39;)<br /> &nbsp; &nbsp; &nbsp; &nbsp;else &nbsp; &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if par2 == 2 then<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Вызываем необходимую функцию<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;message(&#39;message 2&#39;)<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /> &nbsp; &nbsp; &nbsp; &nbsp;end<br /> &nbsp; &nbsp;end<br />end <br />
			<i>12.10.2020 13:42:30, Роман.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum1/message49215/topic4967/</link>
			<guid>http://forum.quik.ru/messages/forum1/message49215/topic4967/</guid>
			<pubDate>Mon, 12 Oct 2020 13:42:30 +0300</pubDate>
			<category>Система QUIK</category>
		</item>
		<item>
			<title>Перестают работать события SetTableNotificationCallback</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum1/message41390/topic4967/">Перестают работать события SetTableNotificationCallback</a></b> в форуме <a href="http://forum.quik.ru/forum1/">Система QUIK</a>. <br />
			<br />====quote====<br /><a class="blog-p-user-name" id="bp_lZRQmg7c" href="/user/54/" bx-tooltip-user-id="54">Старатель</a> написал:<br />Создаём QLua-окно, назначаем ему колбек на события QTABLE_CHAR и/или QTABLE_VKEY.<br />Если переключиться на контрол &quot;Edit&quot; или &quot;ComboBox&quot; на панели инструментов (&quot;Поиск инструмента&quot;, &quot;Окно сообщений&quot; и пр.), а затем активировать окно кликом на его заголовок, то события, назначенные раннее не работают. Чтобы заработали, нужно активировать кликом внутри окна.<br />=============<br />Добрый день.<br /> <br /> Описанная ошибка будет исправлена в одной из очередных версий ПО.<br /> Приносим извинения за причиненные неудобства. <br />
			<i>27.12.2019 13:42:07, Alexey Ivannikov.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum1/message41390/topic4967/</link>
			<guid>http://forum.quik.ru/messages/forum1/message41390/topic4967/</guid>
			<pubDate>Fri, 27 Dec 2019 13:42:07 +0300</pubDate>
			<category>Система QUIK</category>
		</item>
		<item>
			<title>Перестают работать события SetTableNotificationCallback</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum1/message41346/topic4967/">Перестают работать события SetTableNotificationCallback</a></b> в форуме <a href="http://forum.quik.ru/forum1/">Система QUIK</a>. <br />
			<a class="blog-p-user-name" id="bp_qu5aYXGi" href="/user/54/" bx-tooltip-user-id="54">Старатель</a>, <br />проблема изучается. Постараемся в ближайшее время дать ответ. <br />
			<i>25.12.2019 08:44:01, Sergey Gorokhov.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum1/message41346/topic4967/</link>
			<guid>http://forum.quik.ru/messages/forum1/message41346/topic4967/</guid>
			<pubDate>Wed, 25 Dec 2019 08:44:01 +0300</pubDate>
			<category>Система QUIK</category>
		</item>
		<item>
			<title>Перестают работать события SetTableNotificationCallback</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum1/message41320/topic4967/">Перестают работать события SetTableNotificationCallback</a></b> в форуме <a href="http://forum.quik.ru/forum1/">Система QUIK</a>. <br />
			Создаём QLua-окно, назначаем ему колбек на события QTABLE_CHAR и/или QTABLE_VKEY.<br />Если переключиться на контрол "Edit" или "ComboBox" на панели инструментов ("Поиск инструмента", "Окно сообщений" и пр.), а затем активировать окно кликом на его заголовок, то события, назначенные раннее не работают. Чтобы заработали, нужно активировать кликом внутри окна. <br />
			<i>24.12.2019 12:54:43, Старатель.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum1/message41320/topic4967/</link>
			<guid>http://forum.quik.ru/messages/forum1/message41320/topic4967/</guid>
			<pubDate>Tue, 24 Dec 2019 12:54:43 +0300</pubDate>
			<category>Система QUIK</category>
		</item>
	</channel>
</rss>
