<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3483717</guid>
        <pubDate>Tue, 27 May 2014 02:48:09 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3483717</link>
        <description><![CDATA[Павел Калугин: <strong class='tag-b'>coolvasek</strong> так это и есть самое главное в решении задачи решить как хранить настройки. Чтобы они легко &quot;поднимались&quot; запросом. Собственно следующий Ваш шаг это модификация ER диаграммы - добавление сущности &quot;цвет&quot; и связей &quot;цвет текста&quot; и &quot;цвет заливки&quot;<br>
Придется подумать и как &quot;хранить&quot; условия, с которыми должен быть связан цвет.]]></description>
        <author>Павел Калугин</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3483631</guid>
        <pubDate>Mon, 26 May 2014 19:58:38 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3483631</link>
        <description><![CDATA[coolvasek: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=388489&view=findpost&p=3483595'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Павел Калугин &#064; <time class="tag-quote__quoted-time" datetime="2014-05-26T19:30:26+00:00">26.05.14, 19:30</time></span><div class='quote '><strong class='tag-b'>Павел Калугин</strong> <br>
Придумать как хранить настройку зависимостей цвета вывод от данных в таблице - отдельная задача, не всегда решаемая в лоб.</div></div><br>
Спасибо за ответ&#33; <br>
в этом то как раз основная загвоздка для меня и состоит - в хранении этой настройке зависимостей и его расшифровке.. <br>
(Как проще хранить - ID, наименование, уникальный буквенный код, три числа - да, примерно так и собирался). <br>
если бы можно было использовать что-то наподобие sql-запроса или что то похожее на использование filter и onfilterRecord, то было бы замечательно. <br>
Пока]]></description>
        <author>coolvasek</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3483595</guid>
        <pubDate>Mon, 26 May 2014 19:30:26 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3483595</link>
        <description><![CDATA[Павел Калугин: <strong class='tag-b'>coolvasek</strong> Инструмент один - голова.<br>
Велосипедов изобретать не нужно - все описано до Вас.<br>
Что такое раскраска. Это цвет. Как проще всего задать цвет - три числа R, G, B<br>
Как проще хранить - ID, наименование,уникальный буквенный код,  три числа<br>
<br>
Придумать как хранить настройку зависимостей цвета вывод от данных в таблице - отдельная задача, не всегда решаемая в лоб.]]></description>
        <author>Павел Калугин</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3483589</guid>
        <pubDate>Mon, 26 May 2014 19:13:24 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3483589</link>
        <description><![CDATA[coolvasek: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=388489&view=findpost&p=3438192'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Павел Калугин &#064; <time class="tag-quote__quoted-time" datetime="2014-03-30T03:03:52+00:00">30.03.14, 03:03</time></span><div class='quote '>И снова путают данные и отображение. По раскраске отображения смотрите статью &quot;разноцветный DBGrid&quot; на сайте &quot;Кололевство Delphi&quot;</div></div><br>
<strong class='tag-b'>Павел Калугин</strong><br>
Я так понял, что для того чтобы раскрасить таблицу по условиям надо писать обработчик например в DBGrid1DrawColumnCell, а с помощью sql запроса это сделать нельзя.. <br>
Есть потребность раскрашивать таблицу, причем задавать условия раскраски на форме и сохранять их в базу данных, в отдельную таблицу. <br>
Сейчас я вижу решение задачи в том, что формировать строку string с условием и сохранять ее в базу данных, а когда надо извлекать и расшифровывать с помощью алгоритма в DBGrid1DrawColumnCell.<br>
В статье - По следам «полосатого DBGrid» -  <a class='tag-url' href='http://www.delphikingdom.com/asp/viewitem.asp?catalogid=1193' target='_blank'>http://www.delphikingdom.com/asp/viewitem.asp?catalogid=1193</a> описано нечто подобное , но мне пока не ясно, можно ли это сохранить в базу данных.  <br>
Можно ли использовать для этого какой то инструмент наподобие sql запроса, чтобы не писать фактически собственные &quot;запросы&quot; по такой раскраске и потом не расшифровывать их?]]></description>
        <author>coolvasek</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3462850</guid>
        <pubDate>Sun, 06 Apr 2014 13:55:30 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3462850</link>
        <description><![CDATA[AlexandrNik: <strong class='tag-b'>Павел Калугин</strong>,всё,решил вопрос&#33;большое спасибо за полезные источники&#33;&#33;&#33;]]></description>
        <author>AlexandrNik</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3462769</guid>
        <pubDate>Sun, 06 Apr 2014 09:28:19 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3462769</link>
        <description><![CDATA[AlexandrNik: <strong class='tag-b'>Павел Калугин</strong>, <br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">procedure TForm12.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;</div><div class="code_line">&nbsp;&nbsp;DataCol: Integer; Column: TColumn; State: TGridDrawState);</div><div class="code_line">var s:integer;</div><div class="code_line">ss,t:string;</div><div class="code_line">begin</div><div class="code_line">ADOQuery5.SQL.Clear;</div><div class="code_line">ADOQuery5.SQL.Add(&#39;select ves1 from kkt&#39;);</div><div class="code_line">ADOQuery5.Open;</div><div class="code_line">t:=adoquery5.Fields[0].AsString;</div><div class="code_line">s:=strtoint(edit1.Text);</div><div class="code_line">s:=s-20;</div><div class="code_line">ss:=inttostr(s);</div><div class="code_line">if t&#60;=ss then begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;with &nbsp;DBGrid1.Canvas do</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Brush.Color:=clRed;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Font.Color:=clWhite;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FillRect(Rect);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;TextOut(Rect.Left+2,Rect.Top+2,Column.Field.Text);</div><div class="code_line">&nbsp;&nbsp; &nbsp;end;</div><div class="code_line">end;</div><div class="code_line">end;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
всё бы ничего,но грид окрашивается полностью,не взирая на условие]]></description>
        <author>AlexandrNik</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3462704</guid>
        <pubDate>Sun, 06 Apr 2014 02:22:31 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3462704</link>
        <description><![CDATA[Павел Калугин: <strong class='tag-b'>AlexandrNik</strong> все необходимое для решения, как Вы пишете, проблемы, есть по приведенным мной ссылкам]]></description>
        <author>Павел Калугин</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3462586</guid>
        <pubDate>Sat, 05 Apr 2014 13:45:48 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3462586</link>
        <description><![CDATA[AlexandrNik: <strong class='tag-b'>Павел Калугин</strong>, несколько дней пытался решить эту проблему,так ничего и не вышло...если не трудно, помогите решить проблему]]></description>
        <author>AlexandrNik</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438438</guid>
        <pubDate>Mon, 31 Mar 2014 06:53:27 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438438</link>
        <description><![CDATA[Павел Калугин: <strong class='tag-b'>Bas</strong> ну не только эта статья г-жи Филипповой (НеОбычный TDBGrid <a class='tag-url' href='http://www.delphikingdom.com/asp/viewitem.asp?catalogid=806' target='_blank'>http://www.delphikingdom.com/asp/viewitem.asp?catalogid=806</a>)<br>
<br>
Разноцветный D B G R I D  <a class='tag-url' href='http://www.delphikingdom.com/asp/viewitem.asp?catalogid=168' target='_blank'>http://www.delphikingdom.com/asp/viewitem.asp?catalogid=168</a><br>
По следам «полосатого DBGrid» <a class='tag-url' href='http://www.delphikingdom.com/asp/viewitem.asp?catalogid=1193' target='_blank'>http://www.delphikingdom.com/asp/viewitem.asp?catalogid=1193</a><br>
Дополнение по теме &#39;полосатый DBGrid&#39; <a class='tag-url' href='http://www.delphikingdom.com/asp/viewitem.asp?catalogid=170' target='_blank'>http://www.delphikingdom.com/asp/viewitem.asp?catalogid=170</a><br>
Grid с человеческим лицом <a class='tag-url' href='http://www.delphikingdom.com/asp/viewitem.asp?catalogid=667' target='_blank'>http://www.delphikingdom.com/asp/viewitem.asp?catalogid=667</a>]]></description>
        <author>Павел Калугин</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438416</guid>
        <pubDate>Mon, 31 Mar 2014 05:36:12 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438416</link>
        <description><![CDATA[Bas: <a class='tag-url' href='http://citforum.ru/programming/delphi/nogrid/#01' target='_blank'>НеОбычный TDBGrid</a>]]></description>
        <author>Bas</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438192</guid>
        <pubDate>Sun, 30 Mar 2014 03:03:52 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438192</link>
        <description><![CDATA[Павел Калугин: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=388489&view=findpost&p=3437980'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>AlexandrNik &#064; <time class="tag-quote__quoted-time" datetime="2014-03-29T10:05:56+00:00">29.03.14, 10:05</time></span><div class='quote '>Снова я к Вам с вопросом)))возможно ли по средствам запроса изменить цвет текста нужных полей таблицы? более конкретно - есть поле в таблице с числовыми значениями (вес), пользователь вводит с клавиатуры заданное значение и вот нужно с помощью этого запроса определить отклонение от нормы на +/-20 и выделить эти ячейки цветом</div></div><br>
И снова путают данные и отображение. По раскраске отображения смотрите статью &quot;разноцветный DBGrid&quot; на сайте &quot;Кололевство Delphi&quot;]]></description>
        <author>Павел Калугин</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438190</guid>
        <pubDate>Sun, 30 Mar 2014 00:25:26 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438190</link>
        <description><![CDATA[MIF: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=388489&view=findpost&p=3437980'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>AlexandrNik &#064; <time class="tag-quote__quoted-time" datetime="2014-03-29T10:05:56+00:00">29.03.14, 10:05</time></span><div class='quote '>возможно ли по средствам запроса изменить цвет текста нужных полей таблицы?</div></div><br>
У полей таблицы нет цвета.]]></description>
        <author>MIF</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438055</guid>
        <pubDate>Sat, 29 Mar 2014 13:50:30 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438055</link>
        <description><![CDATA[Gonarh: Ну если тебе это поможет, то на.<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">select color from table_colors where weight between %value1% and %value2%</div></ol></div></div></div></div>]]></description>
        <author>Gonarh</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438043</guid>
        <pubDate>Sat, 29 Mar 2014 13:18:20 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438043</link>
        <description><![CDATA[AlexandrNik: <strong class='tag-b'>Gonarh</strong>,код запроса]]></description>
        <author>AlexandrNik</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438010</guid>
        <pubDate>Sat, 29 Mar 2014 11:53:32 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3438010</link>
        <description><![CDATA[Gonarh: Подсказать как что?]]></description>
        <author>Gonarh</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3437997</guid>
        <pubDate>Sat, 29 Mar 2014 11:31:59 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3437997</link>
        <description><![CDATA[AlexandrNik: <strong class='tag-b'>Gonarh</strong>, а не подскажешь как?]]></description>
        <author>AlexandrNik</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3437982</guid>
        <pubDate>Sat, 29 Mar 2014 10:19:31 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3437982</link>
        <description><![CDATA[Gonarh: Можно.]]></description>
        <author>Gonarh</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3437980</guid>
        <pubDate>Sat, 29 Mar 2014 10:05:56 +0000</pubDate>
        <title>SQL-запрос на изменение цвета текста или шрифта</title>
        <link>https://forum.sources.ru/index.php?showtopic=388489&amp;view=findpost&amp;p=3437980</link>
        <description><![CDATA[AlexandrNik: Снова я к Вам с вопросом)))возможно ли по средствам запроса изменить цвет текста нужных полей таблицы? более конкретно - есть поле в таблице с числовыми значениями (вес), пользователь вводит с клавиатуры заданное значение и вот нужно с помощью этого запроса определить отклонение от нормы на +/-20 и выделить эти ячейки цветом]]></description>
        <author>AlexandrNik</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      </channel>
      </rss>
	