home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1999 March / CDW0399.iso / Demos / HomePage / data1.cab / Program_Executable_Files / Homepage.exe / 1009 / 2030 < prev    next >
Encoding:
Text File  |  1997-12-10  |  2.9 KB  |  104 lines

  1. // -----
  2. // VDL2030.txt = VerifyLinks.txt
  3. // Copyright 1997 Claris
  4. // -----
  5.  
  6. #include "StdVPref.txt"
  7.  
  8. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  9.  
  10. #define kChangeButtonText    "&Change"
  11. #define kChangeAllButtonText "Change &All"
  12. #define kRemoveButtonText    "&Remove Tag"
  13. #define kSkipButtonText      "&Skip"
  14. #define kCancelButtonText    "Cancel"
  15.  
  16. #define kBrokenLinkLabel   "Broken Link or Reference:"
  17. #define kChangeToLabel     "Change &to:"
  18.  
  19. #define kBrowseFilesButtonText "&Browse Files..."
  20.  
  21.  
  22. //Localizable fonts
  23. #if Platform_Mac
  24.     #define SmallFont       Font = {Geneva, 9, {Plain}}
  25.     #define SmallButtonFont Font = {Geneva, 10, {Plain}}
  26. #else
  27.     #define SmallFont       Font = {Arial, 9, {Plain}}
  28.     #define SmallButtonFont Font = SystemFont
  29. #endif
  30.  
  31. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  32.  
  33.  
  34.  
  35. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  36.  
  37. #define ButtonWidth     Width = 80
  38. // on Mac button space should be 4 pixels less than on Windows
  39. #if Platform_Mac
  40.     #define kButtonSpace   1
  41. #else
  42.     #define kButtonSpace   5
  43. #endif
  44. #define kLeftPaneWidth    300
  45. #define kBrokenLinkHeight  36
  46.  
  47. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  48.  
  49.  
  50. //No further localizable data past this point
  51.  
  52. /************************** END LOCALIZABLE DATA ***************************************************/
  53.  
  54.  
  55. // command codes - copied from CommandCode.h and WidowR.h
  56. #define ccCancel          1070 
  57. #define ccOK              1071
  58. #define ccDontSave        1072
  59. #define ccReplaceAllLinks 5076
  60. #define ccRemoveLink      3010
  61. #define ccEditFileLink    3015
  62.  
  63.  
  64. Margin(10, 10, 10, 10, stdBackColor)
  65.     HList()
  66.         {
  67.         VList()
  68.             {
  69.             StaticText(kBrokenLinkLabel);
  70.             VSpace(5);
  71.             StaticText(brokenLink, SmallFont, Width = kLeftPaneWidth, Height = kBrokenLinkHeight);
  72.             ///StaticText("",
  73.             ///              SmallFont, Width = kLeftPaneWidth, Height = kBrokenLinkHeight);
  74.             VSpace(15);
  75.             StaticText(kChangeToLabel);
  76.             VSpace(5);
  77.             EditText(changeTo, SmallFont, Width = kLeftPaneWidth, BackColor = White);
  78.             VSpace(10);
  79.             HList()
  80.                 {
  81.                 PushButton(kBrowseFilesButtonText, ccEditFileLink, "BrowseFilesProc", SmallButtonFont);
  82.                 HSpace(20);
  83.                 VList()
  84.                     {
  85.                     VSpace(3);
  86.                     //StaticText(anchor, SmallFont);
  87.                     }
  88.                 }
  89.             }
  90.         HSpace(12);
  91.         VList()
  92.             {
  93.             DefaultButton(kChangeButtonText, ccOK, "None", ButtonWidth);
  94.             VSpace(kButtonSpace);
  95.             UnframedButton(kChangeAllButtonText, ccReplaceAllLinks, "None", ButtonWidth);
  96.             VSpace(kButtonSpace);
  97.             UnframedButton(kRemoveButtonText, ccRemoveLink, "None", ButtonWidth);
  98.             VSpace(kButtonSpace);
  99.             UnframedButton(kSkipButtonText, ccDontSave, "None", ButtonWidth);
  100.             VSpace(kButtonSpace);
  101.             CancelButton(kCancelButtonText, ccCancel, "None", ButtonWidth);
  102.             }
  103.         }
  104.