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

  1. gLeftTextWidth = max(
  2.     zstring_width(zstring: '$$$/Dialogs/CertCreator/Name'),
  3.     zstring_width(zstring: '$$$/Dialogs/CertCreator/Org'),
  4.     zstring_width(zstring: '$$$/Dialogs/CertCreator/OrgUnit'),
  5.     zstring_width(zstring: '$$$/Dialogs/CertCreator/Email'),
  6.     zstring_width(zstring: '$$$/Dialogs/CertCreator/Country'),
  7.     zstring_width(zstring: '$$$/Dialogs/CertCreator/KeyAlgorithm'),
  8.     zstring_width(zstring: '$$$/Dialogs/CertCreator/KeyUsage'),
  9.     zstring_width(zstring: '$$$/Dialogs/CertCreator/UserPassword'),
  10.     zstring_width(zstring: '$$$/Dialogs/CertCreator/ConfirmPassword') );
  11.  
  12. gEditTextWidth = max_char_width() * 10;
  13.  
  14. gRightTextWidth = max( 
  15.     gEditTextWidth, 
  16.     zstring_width(zstring: '$$$/Dialogs/CertCreator/ASCIIEquivalents'),
  17.     zstring_width(zstring: '$$$/Dialogs/CertCreator/MinPassword') );
  18.  
  19. dialog( name: '$$$/Dialogs/CertCreator/Title', target_id: 'titl' )
  20. {
  21.     view( alignment: align_fill, align_children: align_left )
  22.     {
  23.         static_text( item_id: 'note', name: '$$$/Dialogs/CertCreator/Notice', alignment: align_fill );
  24.  
  25.         cluster( name: '$$$/Dialogs/CertCreator/CertificateCluster', item_id: 'Cert', align_children: align_left, alignment: align_fill )
  26.         {
  27.             view( align_children: align_row, alignment: align_fill )
  28.             {
  29.                 gap( width: gLeftTextWidth );
  30.                 static_text( item_id: 'Ahdr', name: '$$$/Dialogs/CertCreator/ASCIIHeader', width: gEditTextWidth, alignment: align_center );
  31.                 static_text( item_id: 'Uhdr', name: '$$$/Dialogs/CertCreator/UnicodeHeader', width: gRightTextWidth, alignment: align_center );
  32.             }
  33.  
  34.             view( align_children: align_row, alignment: align_fill )
  35.             {
  36.                 static_text( name: '$$$/Dialogs/CertCreator/Name', width: gLeftTextWidth, alignment: align_right );
  37.                 edit_text( item_id: 'Name', width: gEditTextWidth );
  38.                 edit_text( item_id: 'ascN', width: gEditTextWidth );
  39.             }
  40.             
  41.             view( align_children: align_row, alignment: align_fill )
  42.             {
  43.                 static_text( name: '$$$/Dialogs/CertCreator/OrgUnit', width: gLeftTextWidth, alignment: align_right);
  44.                 edit_text( item_id: 'OrgU', width: gEditTextWidth);
  45.                 edit_text( item_id: 'ascU', width: gEditTextWidth);
  46.             }
  47.             
  48.             view( align_children: align_row, alignment: align_fill )
  49.             {
  50.                 static_text( name: '$$$/Dialogs/CertCreator/Org', width: gLeftTextWidth, alignment: align_right);
  51.                 edit_text( item_id: 'Org ', width: gEditTextWidth);
  52.                 edit_text( item_id: 'ascO', width: gEditTextWidth);
  53.             }
  54.             
  55.             view( align_children: align_row, alignment: align_fill )
  56.             {
  57.                 static_text( name: '$$$/Dialogs/CertCreator/Email', width: gLeftTextWidth, alignment: align_right );
  58.                 edit_text( item_id: 'Emal', width: gEditTextWidth );
  59.             }
  60.  
  61.             view( align_children: align_row, alignment: align_fill )
  62.             {
  63.                 static_text( name: '$$$/Dialogs/CertCreator/Country', width: gLeftTextWidth, alignment: align_right );
  64.                 popup( item_id: 'Ctry', alignment: align_fill );
  65.             }
  66.  
  67.             check_box( item_id: 'asci', name: '$$$/Dialogs/CertCreator/EnableASCIIEquiv' );
  68.             
  69.             view( align_children: align_row, alignment: align_fill )
  70.             {
  71.                 static_text( name: '$$$/Dialogs/CertCreator/KeyAlgorithm', width: gLeftTextWidth, alignment: align_right );
  72.                 popup( item_id: 'KeyA', alignment: align_fill );
  73.             }
  74.  
  75.             view( align_children: align_row, alignment: align_fill )
  76.             {
  77.                 static_text( name: '$$$/Dialogs/CertCreator/KeyUsage', width: gLeftTextWidth, alignment: align_right );
  78.                 popup( item_id: 'KeyU', alignment: align_fill );
  79.             }
  80.         }
  81.             
  82.         cluster( name: '$$$/Dialogs/CertCreator/SelfSignCluster', item_id: 'Self', align_children: align_left, alignment: align_fill )
  83.         {
  84.             view( align_children: align_row, alignment: align_fill )
  85.             {
  86.                 static_text( name: '$$$/Dialogs/CertCreator/UserPassword', item_id: 'Slf1', width: gLeftTextWidth, alignment: align_right);
  87.                 edit_text( item_id: 'UPwd', width: gEditTextWidth, password: true );
  88.                 static_text( name: '$$$/Dialogs/CertCreator/MinPassword', item_id: 'Slf2', width: gRightTextWidth);
  89.             }
  90.  
  91.             view( align_children: align_row, alignment: align_fill )
  92.             {
  93.                 static_text( name: '$$$/Dialogs/CertCreator/ConfirmPassword', item_id: 'Slf3', width: gLeftTextWidth, alignment: align_right);
  94.                 edit_text( item_id: 'CPwd', width: gEditTextWidth, password: true );
  95.                 gap( width: gRightTextWidth );
  96.             }
  97.         }
  98.             
  99.         cluster( name: '$$$/Dialogs/CertCreator/PPKMSCluster', item_id: 'PKMS', align_children: align_left, alignment: align_fill )
  100.         {
  101.             check_box( item_id: 'Root', name: '$$$/Dialogs/CertCreator/AddAsRoot' );
  102.             static_text( item_id: 'RtNt', alignment: align_fill );
  103.         }
  104.  
  105.         view( align_children: align_row, alignment: align_fill )
  106.         {
  107.             picture( item_id: 'bulb', width: 32, height: 32 );
  108.             static_text( item_id: 'accs', alignment: align_fill );
  109.         }
  110.  
  111.         ok_cancel_help( ok_name: '$$$/Dialogs/CertCreator/CreateButton' );
  112.     }
  113. }
  114.