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 / 20224 < prev    next >
Text File  |  2003-07-17  |  3KB  |  73 lines

  1. gListWidth = max_char_width() * 20;
  2. gListHeight = gEditTextHeight * 4;
  3. gValidNoteHeight = gStaticTextHeight * 2;
  4.  
  5. gKeyTextWidth = max( zstring_width(zstring: '$$$/Dialogs/FDFOpenImport/Sender/Name'),
  6.                     zstring_width(zstring: '$$$/Dialogs/FDFOpenImport/Sender/Email') );
  7. gDialogWidth = max( 
  8.                 zstring_width(zstring: '$$$/Dialogs/FDFOpenImportList/Note') + 20, 
  9.                 zstring_width(zstring: '$$$/Dialogs/FDFOpenImportList/TrustCheckBox') + 60,
  10.                 450 );
  11. gImportButtonWidth = max( zstring_width(zstring: '$$$IDS_FDFOpenImportButtonContacts'),
  12.                     zstring_width(zstring: 'IDS_FDFOpenImportButtonDirSettings') );
  13.  
  14. gTrustTextWidth = zstring_width(zstring: '$$$IDS_FDFOpenDialogTrust_Contacts') + 18;
  15.  
  16. dialog(name: '$$$/Dialogs/FDFOpen/TitleImportList', target_id: 'name' )
  17. {
  18.     view(align_children: align_left, alignment: align_fill)
  19.     {
  20.         static_text(item_id: 'note', name: '$$$/Dialogs/FDFOpenImport/Note', width: gDialogWidth );
  21.         view( align_children: align_top, alignment: align_fill )
  22.         {
  23.             gap(width: 5);
  24.             static_text(item_id: 'type', alignment: align_fill, font_id: 5 );
  25.         }
  26.  
  27.         cluster(name: '$$$/Dialogs/FDFOpenImport/Sender/ClusterName', align_children: align_left, alignment: align_fill )
  28.         {
  29.             view(align_children: align_row, alignment: align_fill)
  30.             {
  31.                 static_text(name: '$$$/Dialogs/FDFOpenImport/Sender/Name', width: gKeyTextWidth, alignment: align_right);
  32.                 static_text(item_id: 'or1T', alignment: align_fill);
  33.             }
  34.             view(align_children: align_row, alignment: align_fill)
  35.             {
  36.                 static_text(name: '$$$/Dialogs/FDFOpenImport/Sender/Email', width: gKeyTextWidth, alignment: align_right);
  37.                 static_text(item_id: 'or2T', alignment: align_fill);
  38.             }
  39.  
  40.             cluster(name: '$$$/Dialogs/FDFOpenImportList/Signature/ClusterName', align_children: align_row, alignment: align_fill )
  41.             {
  42.                 picture(item_id: 'icon', width: 32, height: 32);
  43.                 static_text(item_id: 'or3T', alignment: align_fill, height: gValidNoteHeight );
  44.                 button(item_id: 'sigB', name: '$$$/Dialogs/SigPropButton');
  45.             }
  46.         }
  47.  
  48.         cluster(name: '$$$/Dialogs/FDFOpenImportList/Contents/ClusterName', align_children: align_left, alignment: align_fill )
  49.         {
  50.             static_text(item_id: 'not1', alignment: align_fill );
  51.  
  52.             list_box( item_id: 'list', readonly: true, dheight: gListHeight, alignment: align_fill );
  53.  
  54.             view(align_children: align_top, alignment: align_fill)
  55.             {
  56.                 picture(item_id: 'warn', width: 16, height: 15);
  57.                 static_text(item_id: 'not3', alignment: align_fill);
  58.             }
  59.  
  60.             view( align_children: align_top, alignment: align_fill )
  61.             {
  62.                 gap(width: 10);
  63.                 check_box(item_id: 'trCB', width: gTrustTextWidth, alignment: align_fill);
  64.             }
  65.         }
  66.  
  67.         view( item_id: 'grp2', align_children: align_top, alignment: align_right )
  68.         {
  69.             button(item_id: 'impB', width: gImportButtonWidth);
  70.             button(item_id: 'canB', name: '$$$/Dialogs/CloseButton');
  71.         }
  72.     }
  73. }