home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 September (Special) / Chip-Special_2004-09_Digitalni-Hudba.bin / servis / reader / Data1.cab / PPKLite.api / EXVW / 20001 next >
Text File  |  2003-07-17  |  3KB  |  70 lines

  1. gTotalButtonWidth = 40 + 30 + 40 +
  2.     zstring_width(zstring: '$$$/Dialogs/Cert/ButtonIssuer') +
  3.     zstring_width(zstring: '$$$/Dialogs/Cert/ButtonWinDetails');
  4. gMaxTopStaticWidth = max( 
  5.     zstring_width(zstring: '$$$/Dialogs/Cert/IssuedTo') + 10,
  6.     zstring_width(zstring: '$$$/Dialogs/Cert/IssuedBy') + 10,
  7.     zstring_width(zstring: '$$$/Dialogs/Cert/ValidFrom') + 10,
  8.     zstring_width(zstring: '$$$/Dialogs/Cert/Trust') + 10);
  9. gMinTopEditWidth = max_char_width() * 18;
  10. gListHeight = gEditTextHeight * 4;
  11.  
  12. gMaxControlWidth = max( gMaxTopStaticWidth + 10 + gMinTopEditWidth, gTotalButtonWidth, 450 );
  13.  
  14. dialog(name: '$$$/Dialogs/Cert', target_id: 'name' )
  15. {
  16.      view(align_children: align_left, alignment: align_fill)
  17.     {
  18.         cluster( name: '$$$/Dialogs/Cert/GeneralClusterName', align_children: align_left, width: gMaxControlWidth)
  19.         {
  20.             view(align_children: align_top, alignment: align_fill)
  21.             {
  22.                 picture(item_id: 'icon', width: 32, height: 32);
  23.                 view( align_children: align_left, alignment: align_fill )
  24.                 {
  25.                     view(align_children: align_row, alignment: align_fill)
  26.                     {
  27.                         static_text(name: '$$$/Dialogs/Cert/IssuedTo', width: gMaxTopStaticWidth, alignment: align_right, font_id: 5 );
  28.                         static_text(item_id: 'isTo', alignment: align_fill, font_id: 5);
  29.                     }
  30.                     view(align_children: align_row, alignment: align_fill)
  31.                     {
  32.                         static_text(name: '$$$/Dialogs/Cert/IssuedBy', width: gMaxTopStaticWidth, alignment: align_right, font_id: 5);
  33.                         static_text(item_id: 'isBy', alignment: align_fill, font_id: 5);
  34.                     }
  35.                     view(align_children: align_row, alignment: align_fill)
  36.                     {
  37.                         static_text(name: '$$$/Dialogs/Cert/ValidFrom', width: gMaxTopStaticWidth, alignment: align_right, font_id: 5);
  38.                         static_text(item_id: 'vald', alignment: align_fill, font_id: 5);
  39.                     }
  40.                 }
  41.             }
  42.             button( item_id: 'polB', name: '$$$/Dialogs/Cert/ButtonPolicy', alignment: align_right );
  43.  
  44.              cluster( name: '$$$/Dialogs/Cert/Version1Attrs', align_children: align_left, alignment: align_fill)
  45.             {
  46.                 list_box( item_id: 'ver1', readonly: true, dheight: gListHeight, alignment: align_fill );
  47.             }
  48.             
  49.             cluster( name: '$$$/Dialogs/Cert/Extensions', align_children: align_left, alignment: align_fill)
  50.             {
  51.                 list_box( item_id: 'extn', readonly: true, dheight: 5 + gEditTextHeight * 3 , alignment: align_fill );
  52.             }
  53.  
  54.             cluster( name: '$$$/Dialogs/Cert/Properties', align_children: align_left, alignment: align_fill)
  55.             {
  56.                 list_box( item_id: 'prop', readonly: true, dheight: 5 + gEditTextHeight * 2, alignment: align_fill );
  57.             }
  58.  
  59.             view(align_children: align_top, alignment: align_right)
  60.             {
  61.                 button( item_id: 'expt', name: '$$$/Dialogs/AddressBook/ExportButton' );
  62.                 button( item_id: 'detB', name: '$$$/Dialogs/Cert/ButtonWinDetails' );
  63.                 button( item_id: 'issB', name: '$$$/Dialogs/Cert/ButtonIssuer', alignment: align_right);
  64.             }
  65.         }
  66.         
  67.         ok_help( ok_name: '$$$/Dialogs/CloseButton' );
  68.     }
  69. }
  70.