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

  1. // -----
  2. // VDL159.txt
  3. // Copyright 1996 Claris
  4. // -----
  5. // Menu Edit dialog
  6. #include "StdVPref.txt"
  7. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  8. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  9. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  10. //This section contains all localizable string constants for this VDL program. Be sure to 
  11. //include the backslash character at the end of each line of a multi-line string, except for the last line.
  12. //You may also flatten multiline constants into a single line, if you prefer
  13. #define kLit1 "Item List:"
  14. #define kLit2 "Item"
  15. #define kLit5 "Value"
  16. #define kLit6 "Check"
  17. #define kLit7 "Add"
  18. #define kLit8 "Remove"
  19. #define kLit9 "Specify below"
  20. #define kLit10 "Get from FileMaker"
  21. #define kLit11 "Value List:"
  22.  
  23. //Note: the file name will probably not change, but the name of the "Help" folder
  24. //probably will. Note that the translated name MUST be 8 chars or less.
  25. #define kHelpURL "Help/Popups.htm"
  26. #define kHelpTitle "&Help"
  27. //Localized Fonts
  28. #if Platform_Mac
  29.     #define kHelpFont         Font = {Geneva, 10, {Plain}}
  30.     #define kStaticTextFont Font = {Geneva, 10, {Plain}}
  31. #else
  32.     #if Dialog_Pixels == 100
  33.         #define kHelpFont            Font = {"MS Sans Serif", 8, {Plain}}
  34.     #else
  35.         #define kHelpFont         Font = {"MS Sans Serif", 6, {Plain}}
  36.     #endif
  37.     #define kStaticTextFont Font = SystemFont
  38. #endif
  39. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  40. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  41. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  42. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  43. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  44. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  45. //This section contains integer constants that are used to format this VDL program.
  46. //These are localizable - they only need to be changed if the localized strings 
  47. //are sufficiently longer than the US strings. Localize the strings first, then the constants.
  48. //Width of the whole dialog
  49. #define kDialogMainWidth 360
  50. #if Platform_Mac
  51. #define kNumberOfItemsTextWidth 194
  52. #define kPushButtonWidth         60
  53. #else
  54. #define kNumberOfItemsTextWidth 154
  55. #define kPushButtonWidth         72
  56. #endif
  57. //Width of the checkbox
  58. #define kAllowMultipleSelsWidth 200
  59. //Margins to the left and right of the checkmark icon at the top left of the 
  60. //list
  61. #define kCheckIconLeftMargin 16
  62. #define kCheckIconRightMargin 14
  63. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  64. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  65. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  66. //No further localizable data past this point
  67. /************************** END LOCALIZABLE DATA ***************************************************/
  68. /************************** END LOCALIZABLE DATA ***************************************************/
  69. /************************** END LOCALIZABLE DATA ***************************************************/
  70. #define ccAddListElement            1303
  71. #define ccRemoveListElement         1304
  72.     #define dlogBack BackColor = Dialog
  73.     #define softBack {25000, 25000, 25000}
  74. Margin(10, 10, 10, 10, stdBackColor) 
  75. VList(Width = kDialogMainWidth)
  76.     {
  77.             Spacer (Width = UseParent, Height = 25);
  78.             HList(Width = UseParent,FullyCovered)
  79.             {
  80.                 IntegerPopup(kLit11, 55, FMValueSource, Width = 176, Height = 17, kBasicFont, Action = FMValueListProc)
  81.                 {
  82.                     IntItem(kLit9, 0); 
  83.                     IntItem(kLit10, 1);
  84.                 };
  85.                 Spacer(Width = UseParent, Height = UseParent);
  86.             } // HList
  87.     
  88.             Spacer(Width = 0, Height = 10);
  89.  
  90.             VList(Width = UseParent)
  91.                 {
  92.                 ColumnHeaderList (    MinColWidth  = 25, 
  93.      
  94.                                             ColLabel0 = kLit6,               
  95.                                             ColWidth0 = checkedWidth,           
  96.                                             DefaultWidth0 = 40, 
  97.                                             
  98.                                             ColLabel1 = kLit2,               
  99.                                             ColWidth1 = titleWidth,           
  100.                                             DefaultWidth1 = 72, 
  101.                                             
  102.                                             ColLabel2 = kLit5,               
  103.                                             ColWidth2 = valueWidth,           
  104.                                             DefaultWidth2 = 100, 
  105.                                             kStaticTextFont,  //@ykh 072897 bug fix            
  106.                                             BackColor = {55000, 55000, 55000} , 
  107.                                             Width = UseParent    );
  108.                 
  109.             
  110.                 VList( Width = UseParent, Height = 80, VScroll,
  111.                          BackColor = {65535,65535,65535} )
  112.                     {
  113.                     // EditText(items, Width = UseParent, Height = 180, NoSmartQuotes);
  114.                     PopupItemList(kStaticTextFont);  //@ykh 072897 bug fix
  115.                     }
  116.                         
  117.                 }
  118.     Spacer(Height = 8); 
  119.     
  120.     HList()
  121.         {
  122.         PushButton(kLit7, ccAddListElement, "None");
  123.         Spacer(Width = 15);
  124.         
  125.         PushButton(kLit8, ccRemoveListElement, "None");
  126.         }
  127.     
  128.         
  129.     Spacer(Height = 5, Width = 0);
  130.     //StandardDialogButtonsHNoReturn;
  131.     HList(Width = UseParent)
  132.         {
  133.         Spacer(Height = 0, Width = 150);
  134.         StandardDialogButtonsHEnterOnly;
  135.         }
  136.     }
  137.