home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 September (Special) / Chip-Special_2004-09_Digitalni-Hudba.bin / servis / reader / Data1.cab / Annots.CZE / 1033 / EXVW / 20080 < prev    next >
Text File  |  2003-07-19  |  4KB  |  134 lines

  1. H_BUTTON = 20;
  2. W_BUTTON = 22;
  3.  
  4. W_LABELS_LEFT=max(
  5.     zstring_width(zstring: '$$$/Dialogs/Line/Head'),
  6.     zstring_width(zstring: '$$$/Panels/Generic/StrokeStyle'),
  7.     zstring_width(zstring: '$$$/Dialogs/Generic/Color'),
  8.     zstring_width(zstring: '$$$/Dialogs/Generic/Opacity'));
  9. W_LABELS_RIGHT=max(
  10.     zstring_width(zstring: '$$$/Dialogs/Line/Tail'),
  11.     zstring_width(zstring: '$$$/Dialogs/Ink/Thickness'),
  12.     zstring_width(zstring: '$$$/Dialogs/CircleSquare/FillColor'));
  13.  
  14. W_POPUPENTRIES_END=max(
  15.     zstring_width(zstring: '$$$IDS_LINECAP_NONE'),
  16.     zstring_width(zstring: '$$$IDS_LINECAP_OPENARROW'),
  17.     zstring_width(zstring: '$$$IDS_LINECAP_CLOSEDARROW'),
  18.     zstring_width(zstring: '$$$IDS_LINECAP_SQUARE'),
  19.     zstring_width(zstring: '$$$IDS_LINECAP_CIRCLE'),
  20.     zstring_width(zstring: '$$$IDS_LINECAP_DIAMOND'),
  21.     zstring_width(zstring: '$$$IDS_LINECAP_BUTT'),
  22.     zstring_width(zstring: '$$$IDS_LINECAP_ROPENARROW'),
  23.     zstring_width(zstring: '$$$IDS_LINECAP_RCLOSEDARROW'));
  24.  
  25. W_POPUPENTRIES_STROKESSTYLE=max(
  26.     zstring_width(zstring: '$$$IDS_STROKESTYLE_SOLID'),
  27.     zstring_width(zstring: '$$$IDS_STROKESTYLE_DASHED1'),
  28.     zstring_width(zstring: '$$$IDS_STROKESTYLE_DASHED2'),
  29.     zstring_width(zstring: '$$$IDS_STROKESTYLE_DASHED3'),
  30.     zstring_width(zstring: '$$$IDS_STROKESTYLE_DASHED4'),
  31.     zstring_width(zstring: '$$$IDS_STROKESTYLE_DASHED5'),
  32.     zstring_width(zstring: '$$$IDS_STROKESTYLE_DASHED6'));
  33.  
  34. dialog()
  35. {
  36.     view(align_children: align_left)
  37.     {
  38.         view(align_children: align_top)
  39.         {
  40.             view(align_children: align_left)
  41.             {
  42.                 view(align_children: align_row)
  43.                 {
  44.                     view(align_children: align_right, width : W_LABELS_LEFT)
  45.                     {
  46.                         static_text(item_id: 'txt1', name: '$$$/Dialogs/Line/Head');
  47.                     }
  48.                     view(align_children: align_left)
  49.                     {
  50.                         popup(item_id: 'head', width: W_POPUPENTRIES_END);
  51.                     }
  52.                 }
  53.                 
  54.                 view(align_children: align_row)
  55.                 {
  56.                     view(align_children: align_right, width: W_LABELS_LEFT)
  57.                     {
  58.                         static_text(item_id: 'txt4', name: '$$$/Panels/Generic/StrokeStyle');
  59.                     }
  60.                     view(align_children: align_left)
  61.                     {
  62.                         popup(item_id: 'styl', width: W_POPUPENTRIES_STROKESSTYLE);
  63.                     }
  64.                 }
  65.             
  66.                 view(align_children: align_row) 
  67.                 {
  68.                     view(align_children: align_right, width: W_LABELS_LEFT)
  69.                     {
  70.                         static_text(item_id: 'txt6', name: '$$$/Dialogs/Generic/Color', height: H_BUTTON);
  71.                     }
  72.                     view(align_children: align_left)
  73.                     {
  74.                         button(item_id: 'sclr', picture: true, height: H_BUTTON, width: W_BUTTON);
  75.                     }
  76.                 }
  77.                 
  78.                 view(align_children: align_row)
  79.                 {
  80.                     view(align_children: align_right, width: W_LABELS_LEFT)
  81.                     {
  82.                         static_text(item_id: 'txt7', name: '$$$/Dialogs/Generic/Opacity');
  83.                         gap(height: gStaticTextHeight);
  84.                     }
  85.                     view(align_children: align_left)
  86.                     {
  87.                         edit_text(item_id: 'opac', width: 4 * max_char_width(), height: gEditTextHeight);
  88.                         slider(item_id: 'opas', width: 101, height: 9);
  89.                     }
  90.                 }
  91.             }
  92.  
  93.             view(align_children: align_left)
  94.             {
  95.                 view(align_children: align_row)
  96.                 {
  97.                     view(align_children: align_right, width : W_LABELS_RIGHT)
  98.                     {
  99.                         static_text(item_id: 'txt2', name: '$$$/Dialogs/Line/Tail');
  100.                     }
  101.                     view(align_children: align_left)
  102.                     {
  103.                         popup(item_id: 'tail', width: W_POPUPENTRIES_END);
  104.                     }
  105.                 }
  106.  
  107.                 view(align_children: align_row)
  108.                 {
  109.                     view(align_children: align_right, width: W_LABELS_RIGHT)
  110.                     {
  111.                         static_text(item_id: 'txt3', name: '$$$/Dialogs/Ink/Thickness');
  112.                     }
  113.                     view(align_children: align_left)
  114.                     {
  115.                         edit_text(item_id: 'bwid', SpinEdit: true, width: max_char_width() * 4);
  116.                     }
  117.                 }
  118.  
  119.                 view(align_children: align_row) 
  120.                 {
  121.                     view(align_children: align_right, width: W_LABELS_RIGHT)
  122.                     {
  123.                         static_text(item_id: 'txt5', name: '$$$/Dialogs/CircleSquare/FillColor', height: H_BUTTON);
  124.                     }
  125.                     view(align_children: align_left)
  126.                     {
  127.                         button(item_id: 'fclr', picture: true, height: H_BUTTON, width: W_BUTTON);
  128.                     }
  129.                 }
  130.             }
  131.         }
  132.         gap(height: gEditTextHeight);
  133.     }
  134. }