<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Visual C++ Tips &#187; Ampersand in control caption</title>
	<atom:link href="http://weseetips.com/tag/ampersand-in-control-caption/feed/" rel="self" type="application/rss+xml" />
	<link>http://weseetips.com</link>
	<description>Gold mine of Visual C++ tricks!</description>
	<lastBuildDate>Thu, 11 Mar 2010 09:09:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to add ampersand(&amp;) symbol to dialog control captions?</title>
		<link>http://weseetips.com/2008/06/15/how-to-add-ampersand-symbol-to-dialog-control-captions/</link>
		<comments>http://weseetips.com/2008/06/15/how-to-add-ampersand-symbol-to-dialog-control-captions/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 11:10:43 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Codeproject]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[& in caption]]></category>
		<category><![CDATA[&&]]></category>
		<category><![CDATA[Ampersand in control caption]]></category>
		<category><![CDATA[dialog control caption]]></category>

		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=173</guid>
		<description><![CDATA[For dialog controls we can assign keyboard accelerators. If you give the button text as &#8220;&#38;Add&#8221;, then really it will become &#8220;Add&#8221; because the ampersand character is used to mark the keyboard accelerator for that control. But what to do if you want the button text to be &#8220;Add &#38; Refresh&#8220;? Just use &#38;&#38; if [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" alt="" width="166" height="32" /><br />
For dialog controls we can assign keyboard accelerators. If you give the button text as <span style="color:#0000ff;">&#8220;&amp;Add&#8221;</span>, then really it will become <span style="color:#0000ff;">&#8220;<span style="text-decoration:underline;">A</span>dd&#8221;</span> because the ampersand character is used to <span style="color:#0000ff;">mark the keyboard accelerator</span> for that control. But what to do if you want the button text to be <span style="color:#0000ff;">&#8220;Add &amp; Refresh</span>&#8220;?</p>
<p><img class="alignnone size-medium wp-image-12" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" alt="" width="220" height="32" /><br />
Just use <span style="color:#0000ff;">&amp;&amp;</span> if you want <span style="color:#0000ff;">ampersand as part of caption</span> instead of Keyboard accelerator marker. For instance see the screenshot.</p>
<p><img class="alignnone size-full wp-image-176" src="http://siteground205.com/~weseetip/wp-content/uploads/2008/06/ampersand_to_ctrl_caption.jpg" alt="" width="510" height="351" /></p>
<p><img class="alignnone size-medium wp-image-51" src="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2008/06/15/how-to-add-ampersand-symbol-to-dialog-control-captions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

