DialogControls.c; dialog controls in the window font

Source in C, Pascal, etc. Note: apps that come with source should be included here as well as the appropriate software directory.
User avatar
Info-Mac
Administrator
Posts:13716
Joined:December 21st, 1988, 11:00 am
DialogControls.c; dialog controls in the window font

Post by Info-Mac » February 4th, 1995, 11:00 am

Download: http://archive.info-mac.org/dev/src/dia ... rols-c.hqx

DialogControls.c by Todd Clements ([email protected])
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 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 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 [email protected].

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

[email protected] 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
Post Reply