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

  1. // -----
  2. // VDL159.txt
  3. // Copyright 1996 Claris
  4. // -----
  5.  
  6. // Menu Edit dialog
  7.  
  8. #include "StdVPref.txt"
  9.  
  10.  
  11. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  12. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  13. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  14.  
  15. //This section contains all localizable string constants for this VDL program. Be sure to 
  16. //include the backslash character at the end of each line of a multi-line string, except for the last line.
  17. //You may also flatten multiline constants into a single line, if you prefer
  18.  
  19. #define kLit1 "Item List:"
  20. #define kLit2 "Title"
  21. #define kLit3 "&Number of Items Visible:"
  22. #define kLit4 "Allow &Multiple Selections"
  23. #define kLit5 "Value"
  24. #define kLit6 "Check"
  25. #define kLit7 "Add"
  26. #define kLit8 "Remove"
  27.  
  28. //Note: the file name will probably not change, but the name of the "Help" folder
  29. //probably will. Note that the translated name MUST be 8 chars or less.
  30. #define kHelpURL "Help/Popups.htm"
  31. #define kHelpTitle "&Help"
  32.  
  33. //Localized Fonts
  34. #if Platform_Mac
  35.     #define kHelpFont         Font = {Geneva, 10, {Plain}}
  36.     #define kStaticTextFont Font = {Geneva, 10, {Plain}}
  37. #else
  38.     #if Dialog_Pixels == 100
  39.         #define kHelpFont            Font = {"MS Sans Serif", 8, {Plain}}
  40.     #else
  41.         #define kHelpFont         Font = {"MS Sans Serif", 6, {Plain}}
  42.     #endif
  43.     #define kStaticTextFont Font = SystemFont
  44. #endif
  45.  
  46.  
  47. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  48. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  49. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  50.  
  51.  
  52.  
  53. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  54. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  55. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  56.  
  57. //This section contains integer constants that are used to format this VDL program.
  58. //These are localizable - they only need to be changed if the localized strings 
  59. //are sufficiently longer than the US strings. Localize the strings first, then the constants.
  60.  
  61. //Width of the whole dialog
  62. #define kDialogMainWidth 360
  63.  
  64. //Width of the "Number of Items Visible" text
  65. #if Platform_Mac
  66. #define kNumberOfItemsTextWidth 194
  67. #define kPushButtonWidth         60
  68. #else
  69. #define kNumberOfItemsTextWidth 154
  70. #define kPushButtonWidth         72
  71. #endif
  72.  
  73. //Width of the checkbox
  74. #define kAllowMultipleSelsWidth 200
  75.  
  76. //Margins to the left and right of the checkmark icon at the top left of the 
  77. //list
  78. #define kCheckIconLeftMargin 16
  79. #define kCheckIconRightMargin 14
  80.  
  81. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  82. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  83. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  84.  
  85. //No further localizable data past this point
  86.  
  87. /************************** END LOCALIZABLE DATA ***************************************************/
  88. /************************** END LOCALIZABLE DATA ***************************************************/
  89. /************************** END LOCALIZABLE DATA ***************************************************/
  90.  
  91. #define ccAddListElement            1303
  92. #define ccRemoveListElement         1304
  93.  
  94.  
  95. //    DO NOT TOUCH
  96. //    WORK IN PROGRESS
  97. //    - Russ [08.17.97]
  98. //#if Platform_Mac
  99. //    #define dlogBack BackColor = {65535, 65535, 65535}
  100. //    #define softBack {65535, 65535, 65535}
  101. //#else
  102.     #define dlogBack BackColor = Dialog
  103.     #define softBack {25000, 25000, 25000}
  104. //#endif
  105.  
  106.  
  107. Margin(10, 10, 10, 10, stdBackColor) 
  108. VList(Width = kDialogMainWidth)
  109.     {
  110.     //Label(kLit1, Single)
  111.         //Margin(10,10,10,10)
  112.             VList(Width = UseParent)
  113.                 {
  114.                 ColumnHeaderList (    MinColWidth  = 25, 
  115.      
  116.                                             ColLabel0 = kLit6,               
  117.                                             ColWidth0 = checkedWidth,           
  118.                                             DefaultWidth0 = 40, 
  119.                                             
  120.                                             ColLabel1 = kLit2,               
  121.                                             ColWidth1 = titleWidth,           
  122.                                             DefaultWidth1 = 72, 
  123.                                             
  124.                                             ColLabel2 = kLit5,               
  125.                                             ColWidth2 = valueWidth,           
  126.                                             DefaultWidth2 = 100, 
  127.                                             kStaticTextFont,  //@ykh 072897 bug fix            
  128.                                             BackColor = {55000, 55000, 55000} , 
  129.                                             Width = UseParent    );
  130.  
  131.                 /*
  132.                 HList(Width = UseParent)
  133.                     {
  134.                     Margin(kCheckIconLeftMargin, 2, kCheckIconRightMargin, 0)
  135.                         #if Platform_Mac
  136.                             cicn(2200);
  137.                         #else
  138.                             cicn(2201);
  139.                         #endif
  140.                     StaticText(kLit2);
  141.                     Spacer(Width = 50);
  142.                     StaticText(kLit5);
  143.                     }
  144.                 */
  145.                 
  146.             //You can use this instead of the three margins below. Delete 1 pixel from the 
  147.             //left of the margin for the cicn above in this case (make it 15, not 16)
  148.             /* Margin(1,1,1,1,BackColor = {0,0,0}) */
  149.         
  150.             /*
  151.             #if Platform_Mac
  152.             Margin(0,0,1,1, Width = UseParent, dlogBack )
  153.                 Margin(1,1,1,1, Width = UseParent, BackColor = softBack )
  154.                     Margin(1,1,0,1, Width = UseParent, BackColor = Black )
  155.             #else
  156.             Margin(0,0,1,1, Width = UseParent, BackColor = White )
  157.                 Margin(1,1,1,1, Width = UseParent, BackColor = softBack )
  158.                     Margin(1,1,1,1, Width = UseParent, BackColor = Black )
  159.             #endif
  160.             
  161.             */
  162.             
  163.                 VList( Width = UseParent, Height = 80, VScroll,
  164.                          BackColor = {65535,65535,65535} )
  165.                     {
  166.                     // EditText(items, Width = UseParent, Height = 180, NoSmartQuotes);
  167.                     //GenericView("MenuTextView", Width = UseParent);
  168.                     PopupItemList(kStaticTextFont);  //@ykh 072897 bug fix
  169.                     }
  170.                         
  171.                 }
  172.  
  173.     Spacer(Height = 8); 
  174.     
  175.     HList()
  176.         {
  177.         PushButton(kLit7, ccAddListElement, "None");
  178.         Spacer(Width = 15);
  179.         
  180.         PushButton(kLit8, ccRemoveListElement, "None");
  181.         }
  182.     //PeteF 092297 commented out following that was duped in OE.
  183.     /*
  184.     Spacer(Height = 10, Width = 0);
  185.     EditText( visCount, Width = kNumberOfItemsTextWidth, // FilterProc = "MenuVisCount"
  186.                  BackColor = {65535, 65535, 65535},
  187.                  Label = kLit3, NoSmartQuotes, NoSmartEdits);
  188.     Spacer(Height = 5, Width = 0);
  189.     
  190.     WidowCheckBox( kLit4, allowMult,
  191.                           Width = kAllowMultipleSelsWidth, Height = 16 );
  192.     */    
  193.         
  194.     Spacer(Height = 5, Width = 0);
  195.     //StandardDialogButtonsHNoReturn;
  196.     HList(Width = UseParent)
  197.         {
  198.         /*
  199.         #if Platform_Mac
  200.         PictPushButton(4000, "ContextHelpProc", HelpFile = kHelpURL)
  201.             {
  202.             Enabled(Draw, 'cicn',14055 );
  203.             Disabled(Draw, 'cicn',14057 ); 
  204.             Tracking(Draw, 'cicn',14056 );
  205.             };
  206.         #else
  207.         PushButton(kHelpTitle, 4000, "ContextHelpProc", HelpFile = kHelpURL);
  208.         #endif
  209.         */
  210.  
  211.         Spacer(Height = 0, Width = 150);
  212.  
  213.         StandardDialogButtonsHEnterOnly;
  214.         }
  215.     }
  216.  
  217.