home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2003 August / VPR0308.ISO / ADOBEREADER60 / Installer / Data1.cab / Acroform.JPN / EXVW / 7030 < prev    next >
Text File  |  2003-05-21  |  6KB  |  156 lines

  1. gTypeWidth=max(
  2.     zstring_width(zstring: '$$$IDS_FORMAT_GENERAL_NAME'),
  3.     zstring_width(zstring: '$$$IDS_FORMAT_NUMBER_NAME'),
  4.     zstring_width(zstring: '$$$IDS_FORMAT_PERCENT_NAME'),
  5.     zstring_width(zstring: '$$$IDS_FORMAT_DATE_NAME'),
  6.     zstring_width(zstring: '$$$IDS_FORMAT_TIME_NAME'),
  7.     zstring_width(zstring: '$$$IDS_FORMAT_SPECIAL_NAME'),
  8.     zstring_width(zstring: '$$$IDS_FORMAT_CUSTOM_NAME'));
  9.  
  10. gDescriptionWidth=max(
  11.     zstring_width(zstring: '$$$IDS_FORMAT_GENERAL_DESC'),
  12.     zstring_width(zstring: '$$$IDS_FORMAT_NUMBER_DESC'),
  13.     zstring_width(zstring: '$$$IDS_FORMAT_PERCENT_DESC'),
  14.     zstring_width(zstring: '$$$IDS_FORMAT_DATE_DESC'),
  15.     zstring_width(zstring: '$$$IDS_FORMAT_TIME_DESC'),
  16.     zstring_width(zstring: '$$$IDS_FORMAT_SPECIAL_DESC'),
  17.     zstring_width(zstring: '$$$IDS_FORMAT_CUSTOM_DESC'));
  18.  
  19. gOneColWidth = max(
  20.     zstring_width(zstring: '$$$/Dialogs/PropsFormat/DecimalPlaces'),
  21.     zstring_width(zstring: '$$$/Dialogs/PropsFormat/SeparatorStyle'),
  22.     zstring_width(zstring: '$$$/Dialogs/PropsFormat/CurrencySymbol'),
  23.     zstring_width(zstring: '$$$/Dialogs/PropsFormat/NegativeNumberStyle'),
  24.     zstring_width(zstring: '$$$IDS_FORMAT_EXAMPLE')
  25.     );
  26.  
  27. gCategory        = '$$$IDS_FORMAT_CATEGORY';
  28. gCurrentExample = '$$$IDS_FORMAT_EXAMPLE';
  29.  
  30. gFormatWidth        = 224;
  31. gClusterHeight        = 168;
  32. gDescHeight            = gEditTextHeight * ( gDescriptionWidth / gFormatWidth);
  33. gCategoryWidth        = zstring_width(zstring: gCategory);
  34. gCurrentExampleWidth= zstring_width(zstring: gCurrentExample);
  35.  
  36. gSpecifyNumberOptions = '$$$/Dialogs/PropsFormat/SpecifyNumberOptions';
  37. gSpecifyPercentOptions = '$$$/Dialogs/PropsFormat/SpecifyPercentOptions';
  38. gChooseDateFormat = '$$$/Dialogs/PropsFormat/ChooseDateFormat';
  39. gChooseTimeFormat = '$$$/Dialogs/PropsFormat/ChooseTimeFormat';
  40. gChooseSpecialFormat = '$$$/Dialogs/PropsFormat/ChooseSpecialFormat';
  41.  
  42. gPopupWidth = max_char_width() * 7;
  43. gNumberPanelWidth = gOneColWidth + gPopupWidth;
  44.  
  45. gJavaEditWidth = max_char_width() * 17;
  46. gEditButtonWidth = zstring_width(zstring: '$$$/Dialogs/FieldProps/Edit');
  47. gCustomPanelWidth = gJavaEditWidth + gEditButtonWidth;
  48.  
  49. gClusterWidth = max( gCustomPanelWidth, gNumberPanelWidth);
  50. gHintWidth = gClusterWidth - 32;
  51. gHintHeight = gEditTextHeight*3;
  52.  
  53. dialog(name: '$$$/Dialogs/FieldProps', target_id: 'type', first_tab: 'type')
  54. {
  55.     view(align_children: align_top, alignment: align_fill)
  56.     {
  57.         view(align_children: align_left)
  58.         {
  59.             view(align_children: align_top)
  60.             {
  61.                 static_text(item_id: 'dsc1', name: gCategory, width: gCategoryWidth);
  62.                 popup(item_id: 'type', width: gTypeWidth, next_tab: 'c0p1');
  63.             }
  64.             cluster(item_id: 'clu0', align_children: align_left, width: gClusterWidth)
  65.             {
  66.                 view(align_children: align_offscreen)
  67.                 {
  68.                     view(align_children: align_left)
  69.                     {
  70.                         gap(height: gEditTextHeight/4);
  71.                         view(align_children: align_top)
  72.                         {
  73.                             view(align_children: align_right, width: gOneColWidth)
  74.                             {
  75.                                 static_text(item_id: 'c0s1', name: '$$$/Dialogs/PropsFormat/DecimalPlaces');
  76.                             }
  77.                             popup(item_id: 'c0p1', width: max_char_width() * 2, next_tab: 'c0p2');
  78.                         }
  79.                         view(align_children: align_top)
  80.                         {
  81.                             view(align_children: align_right, width: gOneColWidth)
  82.                             {
  83.                                 static_text(item_id: 'c0s2', name: '$$$/Dialogs/PropsFormat/SeparatorStyle');
  84.                             }
  85.                             popup(item_id: 'c0p2', width: gPopupWidth, next_tab: 'c0p3');
  86.                         }
  87.                         view(align_children: align_top)
  88.                         {
  89.                             view(align_children: align_right, width: gOneColWidth)
  90.                             {
  91.                                 static_text(item_id: 'c0s3', name: '$$$/Dialogs/PropsFormat/CurrencySymbol');
  92.                             }
  93.                             popup(item_id: 'c0p3', width: gPopupWidth, next_tab: 'c0b1');
  94.                         }
  95.                         view(align_children: align_top)
  96.                         {
  97.                             view(align_children: align_right, width: gOneColWidth)
  98.                             {
  99.                                 static_text(item_id: 'c0c1', name: '$$$/Dialogs/PropsFormat/NegativeNumberStyle');
  100.                             }
  101.                             view(align_children: align_left)
  102.                             {
  103.                                 check_box(item_id: 'c0b1', name: '$$$/Dialogs/PropsFormat/Parentheses', next_tab: 'c0b2');
  104.                                 check_box(item_id: 'c0b2', name: '$$$/Dialogs/PropsFormat/RedText', next_tab: 'c1l1');
  105.                             }
  106.                         }
  107.                     }
  108.                     view(align_children: align_left)
  109.                     {
  110.                         gap(height: gEditTextHeight/4);
  111.                         view(align_children: align_left)
  112.                         {
  113.                             list_box(item_id: 'c1l1', width: max_char_width() * 17, height: gEditTextHeight * 5, next_tab: 'c1e1');
  114.                             edit_text(item_id: 'c1e1', width: max_char_width() * 17, next_tab: 'c2e1');
  115.                         }
  116.                     }
  117.                     view(align_children: align_left)
  118.                     {
  119.                         gap(height: gEditTextHeight/4);
  120.                         static_text(item_id: 'c2s1', name: '$$$/Dialogs/PropsFormat/CustomFormatScript');
  121.                         view(align_children: align_top)
  122.                         {
  123.                             edit_text(item_id: 'c2e1', readonly: true, multiline: true, height: gEditTextHeight * 3, width: gJavaEditWidth, next_tab: 'c2b1');
  124.                             button(item_id: 'c2b1', name:'$$$/Dialogs/FieldProps/Edit', width: gEditButtonWidth, next_tab: 'c2e2');
  125.                         }
  126.                         static_text(item_id: 'c2s2', name: '$$$/Dialogs/PropsFormat/CustomKeystrokeScript');
  127.                         view(align_children: align_top)
  128.                         {
  129.                             edit_text(item_id: 'c2e2', readonly: true, multiline: true, height: gEditTextHeight * 3, width: gJavaEditWidth, next_tab: 'c2b2');
  130.                             button(item_id: 'c2b2', name:'$$$/Dialogs/FieldProps/Edit2', width: gEditButtonWidth, next_tab: 'type');
  131.                         }
  132.                     }
  133.                 }
  134.                 view( align_children: align_offscreen)
  135.                 {
  136.                     gap(height: gGap);
  137.                     view(align_children: align_top)
  138.                     {
  139.                         static_text(item_id: 'stet', name: '$$$IDS_FORMAT_EXAMPLE');                        
  140.                         picture(item_id: 'stex', width: max_char_width() * 10, height: gEditTextHeight);
  141.                     }
  142.                 }
  143.             }
  144.             cluster(align_children:align_left, width: gClusterWidth)
  145.             {
  146.                 gap(height: gEditTextHeight/2);
  147.                 view(align_children:align_top)
  148.                 {    
  149.                     picture(item_id: 'bulb', width: 32, height: 32);
  150.                     static_text(item_id: 'dsc3', mutliline:true, width: gClusterWidth, height: gHintHeight);
  151.                 }
  152.             }
  153.         }
  154.     }
  155. }
  156.