home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL2006.txt
- // Copyright 1997 Claris
- // -----
-
- //---------------------------------
- // ConfirmFTPDownload.txt
- //---------------------------------
-
-
- #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 "Upload Page"
- #define kLit2 "Server Name:"
-
- #define kLit3 "File/Folder to download:"
-
-
- #define kLit11 "Download to location"
- #define kLit12 "Location:"
- #define kLit13 "&Browse..."
-
-
-
- #define kLit15 "Download"
- #define kLit16 "Cancel"
- #define kLit17 "&Change Download Options..."
- //#define kLit18 "Assistant..."
- #define kLit19 "Download From"
-
-
- #define kHelpPublish "Help/PublishSite.htm"
- #define kHelpTitle "&Help"
-
- //Localized Fonts
- #if Platform_Mac
- #define DisplayFont { Geneva, 10, {Plain} }
- #define kBoldLabelFont {Geneva, 10, {Bold}}
- #else
- #define DisplayFont SystemFont
- #define kBoldLabelFont SystemFont
- #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.
-
- #if Platform_Mac
- //Width of the Dialog
- #define kDialogWidth 484 //460
-
- //Width of the labels
- #define kLabelWidth 180
-
- //Width of the displayed values
- #define kValueWidth 88
-
- //Width of the OK Button
- #define kOKButtonWidth 80
-
- #define kLeadSpace 51
- #else
- //Width of the Dialog
- #define kDialogWidth 445
-
- //Width of the labels
- #define kLabelWidth 240
-
- //Width of the displayed values
- #define kValueWidth 88
-
- //Width of the OK Button
- #define kOKButtonWidth 80
-
- #define kLeadSpace 51
- #endif
-
-
-
-
- /************************** 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 ***************************************************/
-
-
-
-
- //-------------------------------------------------------------------------------------
- // Debug / Try Me Defines: These are for testing only
- //-------------------------------------------------------------------------------------
-
- #ifdef TryMe
-
-
- #endif
-
-
-
-
-
-
-
- //-------------------------------------------------------------------------------------
- // VDL Code Below Here
- //-------------------------------------------------------------------------------------
-
-
- //--- Defines ---------
- #if Platform_Mac
- #define dlogBack stdBackColor
- #else
- #define dlogBack stdBackColor
- #endif
-
-
- //#define kUploadBtnCmdID 1
- //#define kCancelBtnCmdID 2
- //#define kUnknown1BtnCmdID 3
- //#define kUnknown2BtnCmdID 3
-
-
-
- Margin(10, 10, 10, 10, dlogBack,MinSizeX = kDialogWidth)
- VList(Width = UseParent)
- {
-
- VList(Width = UseParent)
- {
-
- //StaticText(kLit1);
-
- // 3D Horizontal Separator
- //Spacer(Height = 1, Width = UseParent, BackColor = Black);
- //Spacer(Height = 1, Width = UseParent, BackColor = White);
-
- Spacer(Height = 10, Width = 0);
-
- // Radio Group
-
- //'download from' group box
- Label(kLit19, Single, Font = kBoldLabelFont)
- Margin(5,5,5,5)
- VList(Width = UseParent)
- {
- Spacer(Height = 3,ScaleV);
- HList(Width = UseParent)
- {
-
- Spacer(Height = 0, Width = kLeadSpace,ScaleH);
- StaticText(kLit2,Font = DisplayFont);
- HSpace(8);
- StaticText(FTPDownloadServer,Width = UseParent,Font = DisplayFont);
- }//HList
- Spacer(Height = 10, Width = 0);
-
- HList(Width = UseParent)
- {
- StaticText(kLit3,Font = DisplayFont);
- HSpace(8);
- StaticText(downloadPath,Font = DisplayFont);
- Spacer(Height = 10,ScaleV);
- }//HList
-
- Spacer(Height = 10,ScaleV);
-
- HList(Width = UseParent)
- {
- Spacer(Height = 0, Width = UseParent);
- PushButton(kLit17, 4000, "ChangeDownloadOption",Font = kBoldLabelFont);
- //ccMiscButtonCommand, means dontCare, Only ChangeDownloadOption is effective.
- Spacer (Width = 10,ScaleH);
- }//HList
-
- }//VList
-
- Spacer(Height = 10, Width = 0);
-
- //'download to location' group box
- Label(kLit11, Single, Font = kBoldLabelFont)
- Margin(5,5,5,5)
- VList(Width = UseParent)
- {
- HList(Width = UseParent)
- {
- StaticText(kLit12,Font = DisplayFont);
- HSpace(8);
- StaticText(DownloadLocalLocation,Width = UseParent,Font = DisplayFont);
- }
-
- VSpace(10);
-
- HList(Width = UseParent)
- {
- Spacer(Height = 0, Width = UseParent);
- PushButton(kLit13, 4000, "BrowseDownloadToLocation",Font = kBoldLabelFont);
- Spacer (Width = 10,ScaleH);
- }//HList
-
- }//VList
-
- Spacer(Height = 20, Width = 0);
-
- HList(Width = UseParent)
- {
- #if Platform_Mac
- /*
- PictPushButton(4000, "ContextHelpProc", HelpFile = kHelpPublish)
- {
- Enabled(Draw, 'cicn',14055 );
- Disabled(Draw, 'cicn',14057 );
- Tracking(Draw, 'cicn',14056 );
- };
- */
- Spacer(Height = 0, Width = UseParent);
- #else
- /*
- PushButton(kHelpTitle, 4000, "ContextHelpProc", HelpFile = kHelpPublish);
- */
- Spacer(Height = 0, Width = UseParent);
- #endif
-
- #if Platform_Mac
- CancelButton(kLit16, 4000, "cancelDownload", Width = kOKButtonWidth);
- Spacer(Height = 0, Width = 5);
- DefaultButton(kLit15, 4000, "okDownload", Width = kOKButtonWidth);
- #else
- DefaultButton(kLit15, 4000, "okDownload", Width = kOKButtonWidth);
- Spacer(Height = 0, Width = 5);
- CancelButton(kLit16, 4000, "cancelDownload", Width = kOKButtonWidth);
- #endif
-
- }//Hlist
-
-
-
-
- }//VList
-
-
-
-
-
-
-
-
-
-
-
- //-------------------------------------------------------------------------------------
- // Try Me Mode VDL Code Below Here: For Testing Only
- //-------------------------------------------------------------------------------------
-
- // This is just used during Try Me Mode (Debugging).
- // Use this area to set up and display controls
- // only during debug mode. This can be usefull to
- // set test how the UI will look and function under
- // differnt states set by controls in this ifdef area.
-
- #ifdef TryMe
- Spacer(Height = 200);
- StaticText("--------- Debugging Controls Below Here ---------");
- #endif
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-