BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Upgrade Path - Vista Task Dialog

| by Jonathan Allen on Dec 05, 2007. Estimated reading time: less than one minute |

Dialogs have always been a hobgoblin in the Windows platform. Developers are constantly faced with an unacceptable choice. One option is to use the built-in dialog and pretend Ok/Cancel or Yes/No are really appropriate prompts for the user. The other is to create their own dialog from scratch, which seems like a waste of time for what should be a simple prompt.

Windows Vista addressed this with the Task Dialog. This dialog provides a framework that covers most dialog scenarios while maintaining consistency across applications. But it also introduces a new problem in that it is not backwards compatible with Windows XP.

Hedley Muscroft tackled this problem by creating a wrapper/emulator for the Task Dialog. When running on Windows XP, the application will use his hand-rolled clone which supports most of the Task Dialog functionality. On Vista, it automatically switches to the built-in dialog.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and dont miss out on content that matters to you

BT