home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL500.txt
- // Copyright 1996 Claris
- // -----
-
- /* Standard prefix file for all CHP VDL programs - contains common constants
- * and definitions.
- */
-
- // This ifndef corrects a bug in TryMe mode
- #ifndef KRAKATOA
- #define KRAKATOA 0
- #endif
-
- #if KRAKATOA
- #include "KrakatoaVPref.txt"
- #endif // KRAKATOA
-
- //No further localizable data past this point
-
- /************************** END LOCALIZABLE DATA ***************************************************/
- /************************** END LOCALIZABLE DATA ***************************************************/
- /************************** END LOCALIZABLE DATA ***************************************************/
-
-
- // DO NOT TOUCH
- // WORK IN PROGRESS
- // - Russ [08.17.97]
- //#if Platform_Mac
- // #define stdBackColor BackColor = {57015, 57015, 57015}
- //#else
- #define stdBackColor BackColor = Dialog
- //#endif
-
-
- #define HSpace(x) Spacer(Width = x, Height = 0)
- #define VSpace(x) Spacer(Width = 0, Height = x)
-
- #define EH EnabledHelpString =
- #define UseParWidth Width = UseParent
- #define RightLWid LabelAlignment = Right, LabelWidth =
-
- #define BackWhite BackColor = {65535, 65535, 65535}
-
- //Define the symbols for some custom radio buttons and check boxes. These are
- //only really used to draw custom back colors for Mac controls, in some of the dialogs.
- //These are macros, so I can turn them off later, if I want to.
- #if Platform_Mac
- #define WidowRadioButton Mac_Appearance_RadioButton
- #define WidowCheckBox Mac_Appearance_CheckBox
- #define WidowPushButton Mac_Appearance_PushButton
- #else
- #define WidowRadioButton RadioButton
- #define WidowCheckBox CheckBox
- #define WidowPushButton PushButton
- #endif
-
- #ifndef LITE_VERSION
- #define LITE_VERSION 0
- #endif
-
- //Some Dialogs have a notebook tab look, on the mac. If you use this effect,
- //you should use the TabDialog_CheckBox and TabDialog_RadioButton
- //macros below, to give the dialog controls that have a gray background.
- //Also, you should use TabDialogBack for the backColor, as below, or some similar
- //color.
-
- //It is important that all radio buttons and checkboxes in tabbed dialogs use
- //these macros, so that the implemented view may be universally changed later, as
- //needed.
-
- //If you turn tabs on, on the mac, you will get a gray background, and
- //"Fake" buttons for the radio buttons and check boxes. You only need to
- //change this one switch to get that. If this is set to 0,
- //you get a white background, and a popup list for the setting.
- #if Platform_Mac
- #define WANT_TABS 1
- #endif
-
- #if Platform_Win
- #define WANT_TABS 1
- #endif
-
- #if Platform_Mac
-
- #if WANT_TABS
- #define TabDialogBack stdBackColor
- #define TabDialog_RadioButton Mac_Appearance_RadioButton
- #define TabDialog_CheckBox Mac_Appearance_CheckBox
- #else
- #define TabDialogBack BackColor = {65535, 65535, 65535}
- #define TabDialog_CheckBox CheckBox
- #define TabDialog_RadioButton RadioButton
- #endif
-
- #else
- #define TabDialogBack BackColor = Dialog
-
- //On Windows, the standard dialog controls work correctly, so we use them.
- #define TabDialog_CheckBox CheckBox
- #define TabDialog_RadioButton RadioButton
- #endif
-
- #define VFlipper(max, min) HList(){EditText("NumberOfPages", Signed(32), Width = 30); \
- VList () { \
- PictPushButton (NumberOfPages, "NumberFlipperProc", Step = 1, Max = max, Min = min){ \
- Enabled (Draw, 'cicn', 16100); \
- Disabled (Draw, 'cicn', 16101); \
- Tracking (Draw, 'cicn', 16102); }; \
- PictPushButton (NumberOfPages, "NumberFlipperProc", Step = -1, Max = max, Min = min){ \
- Enabled (Draw, 'cicn', 16103); \
- Disabled (Draw, 'cicn', 16104); \
- Tracking (Draw, 'cicn', 16105); }; } }
-
- #define AddRemoveList \
- HList () \
- { \
- EditText (PageName, Width = 100); \
- Spacer(Height = 0, Width = 10); \
- VList () \
- { \
- PushButton ("Add Page", 5001, "None"); \
- Spacer (Height = 5, Width = 0); \
- PushButton ("Remove Page", 5002, "None"); \
- } \
- Spacer(Height = 0, Width = 10); \
- VList (VScroll, Height = 75, Width = 100) \
- { \
- PageList (ListAttribute = "MyList"); \
- } \
- }
-
-
-