<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[My Visual Database — Combo bgColor...]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=8936</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=8936&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Combo bgColor....]]></description>
		<lastBuildDate>Sun, 05 May 2024 21:33:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Combo bgColor...]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50834#p50834</link>
			<description><![CDATA[<p>Hi Derek,<br />Hi Sparrow,</p><br /><p>Thanks a lot guys.........<br />Nice lil trick Sparrow... I&#039;m sure it would benefit many MVD users here.</p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Sun, 05 May 2024 21:33:50 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50834#p50834</guid>
		</item>
		<item>
			<title><![CDATA[Re: Combo bgColor...]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50833#p50833</link>
			<description><![CDATA[<p>Hi Adam, Derek</p><p>Adam, You can create a component (for example Edit) place it behind another element or move it outside the boundaries of the form. <br />Switch focus to Edit after selecting in the combobox.</p>]]></description>
			<author><![CDATA[null@example.com (sparrow)]]></author>
			<pubDate>Sun, 05 May 2024 17:35:38 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50833#p50833</guid>
		</item>
		<item>
			<title><![CDATA[Re: Combo bgColor...]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50832#p50832</link>
			<description><![CDATA[<p>Hi Adam,<br />I&#039;ve always found it to be a case of &#039;either / or&#039; - you can change the text color of the combobox but then it also highlights the selected row or you can just change the background color (and leave the text color as is) and it doesn&#039;t highlight the selected row (see attached).<br />If you go with that as a fix (well, a compromise at best!!), then perhaps chose a different background color that doesn&#039;t obscure the value in the highlighted row quite so much.<br />I also had a quick play with changing the font to &#039;bold&#039; but that seemed to skew other things and ended up worse than the problem it was trying to solve!&nbsp; <img src="https://myvisualdatabase.com/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /><br />Derek.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Sun, 05 May 2024 16:54:26 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50832#p50832</guid>
		</item>
		<item>
			<title><![CDATA[Re: Combo bgColor...]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50831#p50831</link>
			<description><![CDATA[<p>With the combo bg and text coloring script I get selection color highlight of combo text - see image below. Is there a way to stop the highlight.</p><br /><p><a href="https://imgbox.com/mInZ9y8P"><span class="postimg"><img src="https://thumbs2.imgbox.com/4b/69/mInZ9y8P_t.jpg" alt="https://thumbs2.imgbox.com/4b/69/mInZ9y8P_t.jpg" /></span></a></p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Sun, 05 May 2024 14:08:05 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50831#p50831</guid>
		</item>
		<item>
			<title><![CDATA[Re: Combo bgColor...]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50828#p50828</link>
			<description><![CDATA[<p>Thanks a lot Derek.....<br />Now, all good and working.</p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Sat, 04 May 2024 16:58:49 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50828#p50828</guid>
		</item>
		<item>
			<title><![CDATA[Re: Combo bgColor...]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50825#p50825</link>
			<description><![CDATA[<p>Hi Adam,<br />As you&#039;ve noticed, it&#039;s when you have a range that includes single and double digits (or double and triple digits etc etc).<br />Probably the easiest way around it is to use combinations of range values and, if relevant, single values.&nbsp; For example, in the attached example, there are range values of 8-9 and 15-17 and single values of 4, 10 and 12.<br />But in terms of writing the script,&nbsp; it&#039;s still less verbose that having to write discrete &#039;where&#039; clauses for each individual value.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Sat, 04 May 2024 14:07:14 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50825#p50825</guid>
		</item>
		<item>
			<title><![CDATA[Re: Combo bgColor...]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50822#p50822</link>
			<description><![CDATA[<p>Hi again Derek,<br />It&#039;s all fine working fine until I use double digit numbers.</p><br /><p>This works fine:<br /></p><div class="codebox"><pre><code>if (form1.combobox1.text in [&#039;8&#039;..&#039;9&#039;]) then form1.combobox1.Color := clred else form1.combobox1.color := clwhite;
if (form1.combobox1.text in [&#039;8&#039;..&#039;9&#039;]) then form1.combobox1.Font.Color := clyellow else form1.combobox1.font.color := clblack;</code></pre></div><br /><p>But this doesn&#039;t:<br /></p><div class="codebox"><pre><code>if (form1.combobox1.text in [&#039;9&#039;..&#039;10&#039;]) then form1.combobox1.Color := clred else form1.combobox1.color := clwhite;
if (form1.combobox1.text in [&#039;9&#039;..&#039;10&#039;]) then form1.combobox1.Font.Color := clyellow else form1.combobox1.font.color := clblack;</code></pre></div><br /><p>Here is the way I&#039;m doing it:</p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Fri, 03 May 2024 23:09:45 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50822#p50822</guid>
		</item>
		<item>
			<title><![CDATA[Re: Combo bgColor...]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50821#p50821</link>
			<description><![CDATA[<p>Hi Derek,<br />Thank you very much....<br />Your kind help truly appreciated........</p><p>Since giving up smoking my logic focus functions are suffering a bit.<br />Thanks again for the sample project and showing new ways of doing things.</p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Fri, 03 May 2024 21:17:16 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50821#p50821</guid>
		</item>
		<item>
			<title><![CDATA[Re: Combo bgColor...]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50820#p50820</link>
			<description><![CDATA[<p>Hi Adam,<br />I think your condition should be &#039;or&#039; rather than &#039;and&#039; (it can&#039;t be both &#039;09&#039; and &#039;10&#039; at the same time).<br />Or if your numbers (or letters) are contiguous, you can check for them being in a range which makes the script a bit more concise (see attached).<br />Derek.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Fri, 03 May 2024 16:24:50 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50820#p50820</guid>
		</item>
		<item>
			<title><![CDATA[Combo bgColor...]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50819#p50819</link>
			<description><![CDATA[<p>Hi All,<br />I wanted to change combobox bgColor and font color with following script but it didn&#039;t work.<br />Any correction please?</p><div class="codebox"><pre><code>if (Form1.cbItemRating.Text = &#039;09&#039;) and (Form1.cbItemRating.Text = &#039;10&#039;) then Form1.cbItemRating.Color := clRed else Form1.cbItemRating.Color := $00604046;
if (Form1.cbItemRating.Text = &#039;09&#039;) and (Form1.cbItemRating.Text = &#039;10&#039;) then Form1.cbItemRating.Font.Color := clWhite else Form1.cbItemRating.Font.Color := clYellow;</code></pre></div><br /><p>I put the script under form1 onShow, tablegrid cell click and combobox onChange.<br />Combobox contains&nbsp; 1 to 10 as text db field.</p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Fri, 03 May 2024 15:31:18 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50819#p50819</guid>
		</item>
	</channel>
</rss>
