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 / 20070 < prev    next >
Text File  |  2003-07-19  |  1KB  |  57 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/Ink/Thickness'),
  8.     zstring_width(zstring: '$$$/Dialogs/Generic/Color'),
  9.     zstring_width(zstring: '$$$/Dialogs/Generic/Opacity'));
  10.  
  11. dialog()
  12. {
  13.     view(align_children: align_left)
  14.     {
  15.         view(align_children: align_left, width: 2 * W_COLUMN)
  16.         {
  17.             view(align_children: align_row)
  18.             {
  19.                 view(align_children: align_right, width: W_LABELS_LEFT)
  20.                 {
  21.                     static_text(item_id: 'txt1', name: '$$$/Dialogs/Ink/Thickness');
  22.                 }
  23.                 view(align_children: align_left)
  24.                 {
  25.                     edit_text(item_id: 'widt', SpinEdit: true, width: 5 * max_char_width());
  26.                 }
  27.             }
  28.  
  29.             view(align_children: align_row)
  30.             {
  31.                 view (align_children: align_right, width: W_LABELS_LEFT)
  32.                 {
  33.                     static_text(item_id: 'txt3', name: '$$$/Dialogs/Generic/Color');
  34.                 }
  35.                 view (align_children: align_left)
  36.                 {
  37.                     button(item_id: 'sclr', picture: true, height: H_BUTTON, width: W_BUTTON);
  38.                 }
  39.             }
  40.  
  41.             view(align_children: align_row)
  42.             {
  43.                 view(align_children: align_right, width: W_LABELS_LEFT)
  44.                 {
  45.                     static_text(item_id: 'txt4', name: '$$$/Dialogs/Generic/Opacity');
  46.                     gap(height: gStaticTextHeight);
  47.                 }
  48.                 view(align_children: align_left)
  49.                 {
  50.                     edit_text(item_id: 'opac', width: 4 * max_char_width(), height: gEditTextHeight);
  51.                     slider(item_id: 'opas', width: 101, height: 9);
  52.                 }
  53.             }
  54.         }
  55.         gap(height: 2 * gEditTextHeight);
  56.     }
  57. }