home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / Chip_2004-04_cd2.bin / program / reader / Data1.cab / Annots.api / EXVW / 20090 < prev    next >
Text File  |  2003-07-17  |  2KB  |  61 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. W_LABELS_RIGHT=zstring_width(zstring: '$$$/Panels/Markup/UnderlineStyle');
  11.  
  12. dialog()
  13. {
  14.     view(align_children: align_left)
  15.     {
  16.         view(align_children: align_row)
  17.         {
  18.             view(align_children: align_row, width: W_COLUMN)
  19.             {
  20.                 view(align_children: align_right, width: W_LABELS_LEFT)
  21.                 {
  22.                     static_text(item_id: 'txt1', name: '$$$/Dialogs/Generic/Color');
  23.                 }
  24.                 view(align_children: align_left)
  25.                 {
  26.                     button(item_id: 'sclr', picture: true, height: H_BUTTON, width: W_BUTTON);
  27.                 }
  28.             }
  29.             view(align_children: align_row, width: W_COLUMN)
  30.             {
  31.                 view(align_children: align_right, width: W_LABELS_RIGHT)
  32.                 {
  33.                     static_text(item_id: 'stll', name: '$$$/Panels/Markup/UnderlineStyle');
  34.                 }
  35.                 view(align_children: align_left)
  36.                 {
  37.                     popup(item_id: 'styl', width: 5 * max_char_width());
  38.                 }
  39.             }
  40.         }
  41.  
  42.         view(align_children: align_row)
  43.         {
  44.             view(align_children: align_row, width: 2 * W_COLUMN)
  45.             {
  46.                 view(align_children: align_right, width: W_LABELS_LEFT)
  47.                 {
  48.                     static_text(item_id: 'txt2', name: '$$$/Dialogs/Generic/Opacity');
  49.                     gap(height: gStaticTextHeight);
  50.                 }
  51.                 view(align_children: align_left)
  52.                 {
  53.                     edit_text(item_id: 'opac', width: 4 * max_char_width(), height: gEditTextHeight);
  54.                     slider(item_id: 'opas', width: 101, height: 9);
  55.                 }
  56.             }
  57.         }
  58.         gap(height: 3 * gEditTextHeight);
  59.     }
  60. }
  61.