The Old New Thing
Latest posts
The dialog manager, part 5: Converting a non-modal dialog box to modal
Let's apply what we learned from last time and convert a modeless dialog box into a modal one. As always, start with the scratch program and make the ...
The dialog manager, part 4: The dialog loop
The dialog loop is actually quite simple. At its core, it's just If you want something fancier in your dialog loop, you can take the loop above and tinker ...
Neuroscience in the service of basketball fans
Nick Shulz's Transition Game pointed out Slate's experiment in using neuroscience to distract opposing foul shooters. I thought this worth mentioning now ...
The dialog manager, part 3: Creating the controls
This is actually a lot less work than creating the frame, believe it or not. For each control in the template, the corresponding child window is created. ...
The dialog manager, part 2: Creating the frame window
The dialog template describes what the dialog box should look like, so the dialog manager walks the template and follows the instructions therein. It's pretty ...
Adventures in product testing: Candles that catch fire
Not to be outdone by frying pans that explode when you use them for frying, Nature's Finest Candles has issued a product recall [pdf] because the candles ...
The dialog manager, part 1: Warm-ups
I think a lot of confusion about the dialog manager stems from not really understanding how it works. It's really not that bad. I'll start by describing how ...
The CEO-to-English Phrase Book, a continuing series from Slate
I'm an economics geek, so of course I'm a fan of Slate's Moneybox column as well as The Dismal Science and most of all, Steven Landsburg's gleefully ...
When a program asks you a question and then gets upset if you answer it
JeffDav's story of a program that didn't like it when he told it where to install reminded me of another program that we dealt with during Windows 95 ...