home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL167.txt
- // Copyright 1996 Claris
- // -----
- // About Box and Splash Screen
-
- #include "StdVPref.txt"
-
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- //This section contains all localizable string constants for this VDL program. Be sure to
- //include the backslash character at the end of each line of a multi-line string, except for the last line.
- //You may also flatten multiline constants into a single line, if you prefer
-
- #define kLit1 "Registered To:"
- #define kLit2 "&Info"
- #define kLit3 "&Credits"
- #define kLit4 "&About"
- #define kLit5 "OK"
- #define kLit6 "&How To Upgrade"
- //Localized Fonts
- #if Platform_Mac
- #define AboutFont Font = {Geneva, 9, {Plain}}
- #else
- #define AboutFont Font = {Arial, 8, {Plain}}
- #endif
-
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
- //This section contains integer constants that are used to format this VDL program.
- //These are localizable - they only need to be changed if the localized strings
- //are sufficiently longer than the US strings. Localize the strings first, then the constants.
-
- //Height and width of the views in the middle of the dialog that display the info text,
- //the credits, or the about text.
- #define kInfoViewWidth 200
- #define kInfoViewHeight 165
- //Space between the left edge of the window and the left edge of the info views.
- #define kInfoViewLeftMargin 90
- //Margin between the info view and the crane picture, on the right
- #define kInfoViewRightMargin 0
- //Widths of all the buttons, when visible. Note that the width of the dialog
- //is computed without checking the button widths. This is so they
- //automatically right-juetify themselves. If you need to make the buttons wider than
- //the dialog is allowing for, increase the kDialogMinWidth constant to add padding
- //to the dialog. Alternately, you can increase the kInfoViewRightMargin constant above
- #define kButtonWidth 60
- //See comment above. Minimum width of the dialog. Typically not used.
- #define kDialogMinWidth 0
- //Margin to the left of the "Home Page" logotype
- #define kHomePagePictLeftMargin 10
- //Space above the top of the crane graphic.
- #if !LITE_VERSION
- #define kGraphicLeftMargin 0
- #define kGraphicTopMargin 40
- #else
- #define kGraphicLeftMargin 0
- #define kGraphicTopMargin 80
- #endif
- #define kButtonSpacing 10
-
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
-
- //No further localizable data past this point
-
- /************************** END LOCALIZABLE DATA ***************************************************/
- /************************** END LOCALIZABLE DATA ***************************************************/
- /************************** END LOCALIZABLE DATA ***************************************************/
-
- #define SplashColor White
-
- #define ccSplashInfoCommand 3600
- #define ccSplashAboutCommand 3601
- #define ccSplashCreditsCommand 3602
- #define ccUpgradeInfo 3603
- #define ccOK 1071 // from CommandCode.h
-
- #define pictSpace 22
-
-
- Define(InfoViews)
- Switch(aboutMode, Height = kInfoViewHeight, Width = kInfoViewWidth, BackColor = SplashColor)
- {
- case 0: //Info
- VList(Width = UseParent)
- {
- #if !LITE_VERSION
- StaticText(kLit1,Width = UseParent, AboutFont);
- StaticText(user_name,Width = UseParent, AboutFont);
- StaticText(user_company, Width = UseParent, AboutFont);
- StaticText(user_ID, Width = UseParent, AboutFont);
- #endif
-
- StaticText(infoText, Width = UseParent, AboutFont);
- }
- case 1: //about
- StaticText(aboutText, Height = UseParent, Width = UseParent, AboutFont);
-
- case 2: //credits
- GenericView("CreditsView");
-
- default:
- Spacer(Height = 0, Width = 0);
- } //Switch
-
- Define(MainView)
- VList()
- {
- Spacer(Height = 0, Width = kDialogMinWidth);
- HList()
- {
- Margin(3,3,0,0)
- PICT(15000, DontMap);
- Margin(0,24,0,0)
- #if !LITE_VERSION
- PICT(15001, DontMap);
- #else
- PICT(15011, DontMap);
- #endif
- }
- HList()
- {
- Switch(doSecretAbout)
- {
- case 0:
- Margin(kInfoViewLeftMargin, 5 , 0, 0)
- Call(InfoViews);\
- case 1:
- Margin(5, 5 , 0, 0)
- Call(InfoViews);
- }
-
- Margin(0, 0, 0, 10)
- #if !LITE_VERSION
- PICT(15002, DontMap);
- #else
- PICT(15012, DontMap);
- #endif
- }
-
- Switch(showButtons)
- {
- case 1:
- Spacer(Height = 5, Width = 0);
- default:
- Spacer(Height = 0, Width = 0);
- }
-
-
- Switch (showButtons, Width = UseParent)
- {
- case 1:
- HList(Width = UseParent) {
- Spacer(Height = 0, Width = UseParent);
-
- #if LITE_VERSION
- PushButton( kLit6, ccUpgradeInfo, "None");
- Spacer(Height = 0, Width = kButtonSpacing);
- #endif //LITE_VERSION
- #if Platform_Mac
- VList() {
- Spacer( Height = 4 );
- PushButton( kLit2, ccSplashInfoCommand, "None", Width = kButtonWidth);
- }
- Spacer(Height = 0, Width = kButtonSpacing);
- VList() {
- Spacer( Height = 4 );
- PushButton( kLit3, ccSplashCreditsCommand, "None", Width = kButtonWidth);
- }
- Spacer(Height = 0, Width = kButtonSpacing);
- VList() {
- Spacer( Height = 4 );
- PushButton( kLit4, ccSplashAboutCommand, "None", Width = kButtonWidth);
- }
- #else /* ! Platform_Mac */
- PushButton( kLit2, ccSplashInfoCommand, "None", Width = kButtonWidth);
- Spacer(Height = 0, Width = kButtonSpacing);
- PushButton( kLit3, ccSplashCreditsCommand, "None", Width = kButtonWidth);
- Spacer(Height = 0, Width = kButtonSpacing);
- PushButton( kLit4, ccSplashAboutCommand, "None", Width = kButtonWidth);
- #endif /* Platform_Mac */
- Spacer(Height = 0, Width = kButtonSpacing);
- DefaultButton( kLit5, ccOK, "None", Width = kButtonWidth);
- }
-
- default:
- HelpView(AboutFont);
- }
- } //MainView
-
- Define(Divider)
- Margin(6,0,3,0, Width = UseParent, stdBackColor)
- VList(Width = UseParent)
- {
- Spacer(Width = 0, Height = 4, ScaleV);
- Spacer(Height = 1, Width = UseParent, BackColor = {20000,20000,20000});
- Spacer(Height = 1, Width = UseParent, BackColor = {62000, 62000, 62000});
- Spacer(Width = 0, Height = 4, ScaleV);
- }
-
-
- Margin(0, 0, 10, 10, BackColor = SplashColor)
- VList()
- {
- Switch(doSecretAbout)
- {
- case 0:
- Call(MainView);
-
- case 1:
- VList()
- {
- HList()
- {
- Margin(0, 0, 0, 0) PICT(20001, DontMap);
- Margin(pictSpace, 0, 0, 0) PICT(20002, DontMap);
- Margin(pictSpace, 0, 0, 0) PICT(20003, DontMap);
- Margin(pictSpace, 0, 0, 0) PICT(20004, DontMap);
- Margin(pictSpace, 0, 0, 0) PICT(20005, DontMap);
- }
- HList()
- {
- VList()
- {
- PICT(20006, DontMap);
- PICT(20007, DontMap);
- PICT(20008, DontMap);
- }
-
- Call(MainView);
-
- VList()
- {
- PICT(20009, DontMap);
- PICT(20010, DontMap);
- PICT(20011, DontMap);
- }
- }
- }
- }
-
- #ifdef TryMe
- Call(Divider);
- Spacer(Width = 0, Height = 20);
- HList()
- {
- Spacer(Width = 10, Height = 0);
- VList()
- {
- IntegerPopup("Developers:", Default, doSecretAbout)
- {
- IntItem("Show", 1);
- IntItem("Don't Show", 0);
- };
- }
- }
- #endif
-
- }
-