Info-Mac Archive Downloads: dev/src/ SourceCode

Back to dev/src/ SourceCode

DialogControls11.c; Code for handling controls in dialog boxes (dialog-controls-11-c.hqx)

Download dialog-controls-11-c.hqx (46,777 KB)


Date: Tue, 9 May 1995 16:47:23 -0700
From: tclement@hmc.edu (Todd Clements)
Subject: DialogControls11.c; Code for handling controls in dialog boxes

DialogControls.c by Todd Clements (tclement@hmc.edu)
This source code shows how to do different things with dialogs:
1) Set the window font and size
2) Patch NewControl() so that you have controls in the window font
(thanks to Jens Alfke for the code)
3) Use Popup Menus in modal dialogs
4) Use AppendDITL() to get a NewsWatcher-like preferences box
5) Use styled text edit records from resources to display text
6) Write a filter for a ModalDialog
7) Use MovableModal dialog boxes

Some of this code is stolen from my own program, others stolen from
other people, but it's all here for you!

If you have any comments about the code, any improvements/additions/bugs,
please feel free to contact me at the above address.

I make no guarantees regarding the decency of this code. Run it and
use it at your own risk.

January 26, 1995 - 1.0 - First release
May 9, 1995 - 1.1 - Second release
Changed to MovableModal dialog box
Added "Reset Panel to Defaults" button
Disabled controls when window deactivated