home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / Chip_2004-04_cd2.bin / program / reader / Data1.cab / PictureTasks.api / EXVW / 103 next >
Text File  |  2003-05-15  |  3KB  |  83 lines

  1. gWidth = max(
  2.     zstring_width(zstring: '$$$/Dialogs/PrintDialog/Index'),
  3.     zstring_width(zstring: '$$$/Dialogs/PrintDialog/Wallet'));
  4. gPreviewHeight = 130;
  5. gPreviewWidth = 160;
  6. gClusterHeight = gPreviewHeight + 32;
  7.  
  8. dialog(name: '$$$/Dialogs/PrintDialog', target_id: 'tefr')
  9. {
  10.     view(align_children: align_right)
  11.     {
  12.         view(align_children: align_top, alignment: align_fill)
  13.         {
  14.             cluster(name: '$$$/Dialogs/PrintDialog/ClusterName', align_children: align_left, height: gClusterHeight)
  15.             {
  16.                 view(align_children: align_left)
  17.                 {
  18.                     list_box(item_id: 'tefr', width: gPreviewWidth + 32, height: gPreviewHeight * 3 + 16);
  19.                 }
  20.             }
  21.             group(name: '$$$/Dialogs/PrintDialog/PrintOptionsGroup', align_children: align_left, width: 150, height: gClusterHeight)
  22.             {
  23.                 cluster(name: '$$$/Dialogs/PrintDialog/PageSizes', align_children: align_left)
  24.                 {
  25.                     popup(item_id: 'pspp', width: 140);
  26.                 }
  27.                 cluster(name: '$$$/Dialogs/PrintDialog/IndvPrintFormat', align_children: align_left)
  28.                 {
  29.                     group(align_children: align_left)
  30.                     {
  31.                         cluster(name: '$$$/Dialogs/PrintDialog/PrintSizes', align_children: align_left)
  32.                         {
  33.                             radio(item_id: 'ipic', name: '$$$/Dialogs/PrintDialog/Index', width: gWidth);
  34.                             radio(item_id: 'wpic', name: '$$$/Dialogs/PrintDialog/Wallet', width: gWidth);
  35.                             radio(item_id: 'tpic', name: '$$$/Dialogs/PrintDialog/Threebyfive', width: gWidth);
  36.                             radio(item_id: 'fpic', name: '$$$/Dialogs/PrintDialog/Fourbysix', width: gWidth);
  37.                             radio(item_id: 'vpic', name: '$$$/Dialogs/PrintDialog/Fivebyseven', width: gWidth);
  38.                             radio(item_id: 'epic', name: '$$$/Dialogs/PrintDialog/Eightbyten', width: gWidth);
  39.                             radio(item_id: 'ftpg', name: '$$$/Dialogs/PrintDialog/Fitonpage', width: gWidth);
  40.                         }
  41.                         gap(height: 3);
  42.                         check_box(item_id: 'sgim', name: '$$$/Dialogs/PrintDialog/SingleImage');
  43.                         check_box(item_id: 'zmcr', name: '$$$/Dialogs/PrintDialog/ZoomCrop');
  44.                         view(align_children: align_row)
  45.                         {
  46.                             static_text(name: '$$$/Dialogs/PrintDialog/UseEachPhoto');
  47.                             edit_text(item_id: 'cppp', width: 30);
  48.                             static_text(name: '$$$/Dialogs/PrintDialog/NumTimes');
  49.                         }
  50.                     }
  51.                 }
  52.             }
  53.             cluster(name: '$$$/Dialogs/PrintDialog/ClusterNameTwo', align_children: align_center, height: gClusterHeight)
  54.             {
  55.                 view(align_children: align_row)
  56.                 {
  57.                     button(item_id: 'wicn', picture: true, width: 12, height: 12);
  58.                     static_text(item_id: 'warn', name: '$$$/Dialogs/PrintDialog/UseEachPhoto', width: 200, height: 40);
  59.                 }
  60.  
  61.                 gap(height: 2);
  62.  
  63.                 view(align_children: align_center)
  64.                 {
  65.                     picture(item_id: 'slhr', width: 200, height: gPreviewHeight * 2 + 25);
  66.                 }
  67.                 gap(height: 23);
  68.                 view(align_children: align_row)
  69.                 {
  70.                     button(item_id: 'prpg', name: '$$$/Dialogs/PrintDialog/PrevPage', picture: true, next_tab: 'nxpg', alignment: align_left, width: 20, height: 20);    
  71.                     static_text(item_id: 'pgnb', name: '$$$/Dialogs/PrintDialog/PageNo', width: 100, alignment: align_center);        
  72.                     button(item_id: 'nxpg', name: '$$$/Dialogs/PrintDialog/NextPage', picture: true, next_tab: 'prvs', alignment: align_right, width: 20, height: 20);            
  73.                 }
  74.             }
  75.         }
  76.         view(align_children: align_row)
  77.         {
  78.             button(item_id: 'prvs', name: '$$$/Dialogs/Previous', picture: false, next_tab: 'tefr', alignment: align_right);
  79.             ok_cancel(ok_name: '$$$/Dialogs/Next');
  80.         }
  81.     }
  82. }
  83.