The Old New Thing

Latest posts

Raymond Chen Raymond Chen
Apr 4, 2005

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 ...

0
0
Raymond Chen Raymond Chen
Apr 1, 2005

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 ...

0
0
Raymond Chen Raymond Chen
Mar 31, 2005

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 ...

0
0
Raymond Chen Raymond Chen
Mar 31, 2005

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. ...

0
0
Raymond Chen Raymond Chen
Mar 30, 2005

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 ...

0
0
Raymond Chen Raymond Chen
Mar 29, 2005

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 ...

0
0
Raymond Chen Raymond Chen
Mar 29, 2005

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 ...

0
0
Raymond Chen Raymond Chen
Mar 28, 2005

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 ...

0
0
Raymond Chen Raymond Chen
Mar 28, 2005

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 ...

0
0

Feedback