home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 4.7 / 1999-01_-_Disc_4.7.bin / ELINK / CLARISHP / _SETUP.1 / HOMEPAGE.exe / 1009 / 1000 next >
Text File  |  1997-02-20  |  3KB  |  124 lines

  1. // -----
  2. // VDL1000.txt
  3. // Copyright 1996 SPI
  4. // -----
  5.  
  6.  
  7. //NOTE: This dialog is NOT USED on Windows, the standard system Message box is.
  8.  
  9.  
  10. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  11.  
  12. #define kOKButtonText         "&OK"
  13. #define kCancelButtonText     "&Cancel"
  14. #define kYesButtonText         "&Yes"
  15. #define kNoButtonText         "&No"
  16.  
  17. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  18.  
  19.  
  20.  
  21. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  22.  
  23. #if Platform_Mac
  24. #define kOKButtonWidth         70
  25. #define kCancelButtonWidth 70
  26.  
  27. #define kYesButtonWidth     70
  28. #define kNoButtonWidth         70
  29. #else
  30. #define kOKButtonWidth         100
  31. #define kCancelButtonWidth 100
  32.  
  33. #define kYesButtonWidth     100
  34. #define kNoButtonWidth         100
  35. #endif
  36.  
  37.  
  38. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  39.  
  40.  
  41. //No further localizable data past this point
  42.  
  43. /************************** END LOCALIZABLE DATA ***************************************************/
  44.  
  45.  
  46.  
  47. #ifndef YES_NO_DIALOG
  48. #define YES_NO_DIALOG 0
  49. #endif
  50.  
  51. #ifndef OK_CANCEL_DIALOG
  52. #define OK_CANCEL_DIALOG 0
  53. #endif
  54.  
  55. #ifndef OK_DIALOG
  56. #define OK_DIALOG 0
  57. #endif
  58.  
  59. #ifndef ERROR_ICON
  60. #define ERROR_ICON 0
  61. #endif
  62.  
  63. #ifndef WARNING_ICON
  64. #define WARNING_ICON 0
  65. #endif
  66.  
  67. #if YES_NO_DIALOG
  68. #define kButtonAText kYesButtonText
  69. #define kButtonBText kNoButtonText
  70.  
  71. #define kButtonAWidth kYesButtonWidth
  72. #define kButtonBWidth kNoButtonWidth
  73.  
  74. #else
  75. #define kButtonAText kOKButtonText
  76. #define kButtonBText kCancelButtonText
  77.  
  78. #define kButtonAWidth kOKButtonWidth
  79. #define kButtonBWidth kCancelButtonWidth
  80. #endif
  81.  
  82.  
  83. Margin(10, 10, 10, 10)
  84.     VList()
  85.         {
  86.         HList()
  87.             {
  88.             #if ERROR_ICON
  89.             ICON(1000);
  90.             #elif WARNING_ICON
  91.             ICON(2);
  92.             #else
  93.             ICON(1);
  94.             #endif
  95.             
  96.             Spacer(Width = 10);
  97.             StaticText(errorMessage, Width = 350, BackColor = White);
  98.             }
  99.             
  100.         Spacer(Height = 10);
  101.         HList(Width = UseParent)
  102.             {
  103.             Spacer(Width = UseParent, Height = 0);
  104.             
  105.             #if Platform_Mac
  106.                 
  107.                 #if OK_CANCEL_DIALOG || YES_NO_DIALOG
  108.                     CancelButton(kButtonBText, 1070, "None", Width = kButtonBWidth);
  109.                     Spacer(Width = 10, Height = 0);
  110.                 #endif
  111.                 
  112.                 
  113.                 DefaultButton(kButtonAText, 1071, "None", Width = kButtonAWidth);
  114.             #else
  115.                 #if OK_CANCEL_DIALOG || YES_NO_DIALOG
  116.                 DefaultButton(kButtonAText, 1071, "None", Width = kButtonAWidth);
  117.                 Spacer(Width = 10, Height = 0);
  118.                 #endif
  119.                 
  120.                 CancelButton(kButtonBText, 1070, "None", Width = kButtonBWidth);
  121.             #endif
  122.             
  123.             }
  124.         }