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 / 20060 < prev    next >
Text File  |  2003-07-19  |  1KB  |  53 lines

  1. H_BUTTON = 20;
  2. W_BUTTON = 22;
  3.  
  4. W_COLUMN = 160;
  5.  
  6. W_LABELS_RIGHT=max(
  7.     zstring_width(zstring: '$$$/Dialogs/Generic/Color'),
  8.     zstring_width(zstring: '$$$/Dialogs/Generic/Opacity'));
  9.  
  10. dialog()
  11. {
  12.     view(align_children: align_left)
  13.     {
  14.         view(align_children: align_top)
  15.         {
  16.             view(align_children: align_left, width: W_COLUMN)
  17.             {
  18.                 static_text(item_id: 'txt3', name: '$$$/Panels/Icon/Icon');
  19.                 list_box(item_id: 'icns', width: 10 * max_char_width(), height: 6 * gEditTextHeight);
  20.             }
  21.  
  22.             view(align_children: align_left, width: W_COLUMN)
  23.             {
  24.                 view(align_children: align_row)
  25.                 {
  26.                     view(align_children: align_right, width: W_LABELS_RIGHT)
  27.                     {
  28.                         static_text(item_id: 'txt1', name: '$$$/Dialogs/Generic/Color');
  29.                     }
  30.                     view(align_children: align_left)
  31.                     {
  32.                         button(item_id: 'sclr', picture: true, height: H_BUTTON, width: W_BUTTON);
  33.                     }
  34.                 }
  35.  
  36.                 view(align_children: align_row)
  37.                 {
  38.                     view(align_children: align_right, width: W_LABELS_RIGHT)
  39.                     {
  40.                         static_text(item_id: 'txt2', name: '$$$/Dialogs/Generic/Opacity');
  41.                         gap(height: gStaticTextHeight);
  42.                     }
  43.                     view(align_children: align_left)
  44.                     {
  45.                         edit_text(item_id: 'opac', width: 4 * max_char_width(), height: gEditTextHeight);
  46.                         slider(item_id: 'opas', width: 101, height: 9);
  47.                     }
  48.                 }
  49.             }
  50.         }
  51.     }
  52. }
  53.