<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Repurpose the Red X Close Button on a VBA UserForm</title>
	<atom:link href="http://peltiertech.com/WordPress/repurpose-the-red-x-close-button-on-a-vba-userform/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/repurpose-the-red-x-close-button-on-a-vba-userform/</link>
	<description>Peltier Tech Excel Charts and Programming Blog</description>
	<lastBuildDate>Wed, 23 May 2012 11:03:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Wayne H</title>
		<link>http://peltiertech.com/WordPress/repurpose-the-red-x-close-button-on-a-vba-userform/comment-page-1/#comment-21182</link>
		<dc:creator>Wayne H</dc:creator>
		<pubDate>Wed, 28 Oct 2009 05:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=40#comment-21182</guid>
		<description>I just found this blog since I was looking for the official word on what the red X button should do in Windows UI. I had always thought that the red X should Close the dialog (if the dialog also has a Close button or no buttons) and it should Cancel if the dialog has OK/Cancel. So in this case I would agree that using the red X to cancel is correct.

This is what MS say about the Red X for dialogs: &quot;The Close button on the title bar should have the same effect as the Cancel or Close button within the dialog box. Never give it the same effect as OK.&quot;

So to respond to Dick&#039;s comment, I would say that if your Cancel button prompts the user in the case of &quot;IsDirty = true&quot; then the red X should have the same effect. That is, if your form has a Cancel button, the red X should cancel and if it has a Close (or no button at all) it should Close. It sounds, however like your Cancel button does NOT prompt in which case to me it seems like you have a different behavior for the red X almost as if you want to ensure your users really meant to exit via that route. I guess that issue is more subjective. We don&#039;t typically do this (red X cancels with no prompt if there is a Cancel button on the dialog), but I wonder if we are giving our users too much credit for knowing that red X will abandon changes for those use cases.</description>
		<content:encoded><![CDATA[<p>I just found this blog since I was looking for the official word on what the red X button should do in Windows UI. I had always thought that the red X should Close the dialog (if the dialog also has a Close button or no buttons) and it should Cancel if the dialog has OK/Cancel. So in this case I would agree that using the red X to cancel is correct.</p>
<p>This is what MS say about the Red X for dialogs: &#8220;The Close button on the title bar should have the same effect as the Cancel or Close button within the dialog box. Never give it the same effect as OK.&#8221;</p>
<p>So to respond to Dick&#8217;s comment, I would say that if your Cancel button prompts the user in the case of &#8220;IsDirty = true&#8221; then the red X should have the same effect. That is, if your form has a Cancel button, the red X should cancel and if it has a Close (or no button at all) it should Close. It sounds, however like your Cancel button does NOT prompt in which case to me it seems like you have a different behavior for the red X almost as if you want to ensure your users really meant to exit via that route. I guess that issue is more subjective. We don&#8217;t typically do this (red X cancels with no prompt if there is a Cancel button on the dialog), but I wonder if we are giving our users too much credit for knowing that red X will abandon changes for those use cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/repurpose-the-red-x-close-button-on-a-vba-userform/comment-page-1/#comment-153</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Tue, 01 Apr 2008 14:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=40#comment-153</guid>
		<description>Hi Dick -

I don&#039;t *always* mimic the Cancel button, but that&#039;s what usually makes the most sense in my usage. The user decides not to graph that data, or create that pivot table, or export that report, and Cancel fits best of all. If unsaved data is an issue, I may be checking in the Cancel button code anyway. Or my buttons will be labeled &quot;Save&quot;, &quot;Save and Exit&quot;, and &quot;Exit Without Saving&quot;. Best practices include using good, descriptive control labels.

In my experience, it seems to me that the red X is for the user who says &quot;let me the hell out of here!&quot;, so I generally just use Cancel.</description>
		<content:encoded><![CDATA[<p>Hi Dick -</p>
<p>I don&#8217;t *always* mimic the Cancel button, but that&#8217;s what usually makes the most sense in my usage. The user decides not to graph that data, or create that pivot table, or export that report, and Cancel fits best of all. If unsaved data is an issue, I may be checking in the Cancel button code anyway. Or my buttons will be labeled &#8220;Save&#8221;, &#8220;Save and Exit&#8221;, and &#8220;Exit Without Saving&#8221;. Best practices include using good, descriptive control labels.</p>
<p>In my experience, it seems to me that the red X is for the user who says &#8220;let me the hell out of here!&#8221;, so I generally just use Cancel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://peltiertech.com/WordPress/repurpose-the-red-x-close-button-on-a-vba-userform/comment-page-1/#comment-152</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Tue, 01 Apr 2008 13:56:01 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=40#comment-152</guid>
		<description>Do  you always mimic the Cancel button?  For instance, what if you have user interaction on the form?  If a user presses Cancel, they should expect that the form closes and nothing is saved.  If the user pressed OK, they should expect that the form closes and everything is saved.  If the user presses the red x, however, I think they expect to be warned if the form is dirty.  That is, Close and Cancel have different connotations.
I usually program for that with an IsDirty module-level variable, but I find that extra work as distasteful as the code that hides the red x.</description>
		<content:encoded><![CDATA[<p>Do  you always mimic the Cancel button?  For instance, what if you have user interaction on the form?  If a user presses Cancel, they should expect that the form closes and nothing is saved.  If the user pressed OK, they should expect that the form closes and everything is saved.  If the user presses the red x, however, I think they expect to be warned if the form is dirty.  That is, Close and Cancel have different connotations.<br />
I usually program for that with an IsDirty module-level variable, but I find that extra work as distasteful as the code that hides the red x.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

