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

  1. H_BUTTON = 20;
  2. W_BUTTON = 22;
  3.  
  4. W_COLUMN = 160;
  5.  
  6. W_LABELS_LEFT=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, width: 2 * W_COLUMN)
  13.     {
  14.         view(align_children: align_row)
  15.         {
  16.             view(align_children: align_right, width: W_LABELS_LEFT)
  17.             {
  18.                 static_text(item_id: 'txt2', name: '$$$/Dialogs/Generic/Color', height: gEditTextHeight);
  19.             }
  20.             view(align_children: align_left)
  21.             {
  22.                 button(item_id: 'sclr', picture: true, height: H_BUTTON, width: W_BUTTON);
  23.             }
  24.         }
  25.  
  26.         view(align_children: align_row, width: 2 * W_COLUMN)
  27.         {
  28.             view(align_children: align_right, width: W_LABELS_LEFT)
  29.             {
  30.                 static_text(item_id: 'txt3', name: '$$$/Dialogs/Generic/Opacity');
  31.                 gap(height: gStaticTextHeight);
  32.             }
  33.             view(align_children: align_left)
  34.             {
  35.                 edit_text(item_id: 'opac', width: 4 * max_char_width(), height: gEditTextHeight);
  36.                 slider(item_id: 'opas', width: 101, height: 9);
  37.             }
  38.         }
  39.         gap(height: 3 * gEditTextHeight);
  40.     }
  41. }
  42.