DialogControls11.c; Code for handling controls in dialog boxes

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
DialogControls11.c; Code for handling controls in dialog boxes

Post by Info-Mac » May 10th, 1995, 9:00 am

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

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