Download dialog-controls-c.hqx (38,886 KB)
X-Sender: tclement@osiris.ac.hmc.edu
Date: Sat, 4 Feb 1995 00:39:09 -0800
From: tclement@hmc.edu (Todd Clements)
Subject: DialogControls.c; dialog controls in the window font
DialogControls.c by Todd Clements (tclement@hmc.edu)
This demo 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
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 Modal Dialog using ModalFilterUPPs
Some 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 tclement@hmc.edu.
I make no guarantees regarding the decency of this code. Run it and use
it at your own risk.
Version History:
January 26, 1995 - 1.0 - First release
tclement@hmc.edu Todd Clements -
"If the federal government were around when the Creator put His hand on
this state, Indiana wouldn't be here...it'd still be waiting for an
environmental impact statement. - Ronald Reagan