home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / Chip_2004-04_cd2.bin / program / reader / Data1.cab / Annots.api / EXVW / 20020 < prev    next >
Text File  |  2003-07-17  |  3KB  |  100 lines

  1. H_BUTTON = 20;
  2. W_BUTTON = 22;
  3.  
  4. W_COLUMN = 160;
  5.  
  6. W_LABELS_LEFT=max(
  7.     zstring_width(zstring: '$$$/Panels/Generic/StrokeStyle'),
  8.     zstring_width(zstring: '$$$/Dialogs/FreeText/Color'),
  9.     zstring_width(zstring: '$$$/Dialogs/Generic/Opacity'));
  10. W_LABELS_RIGHT=max(
  11.     zstring_width(zstring: '$$$/Dialogs/Ink/Thickness'),
  12.     zstring_width(zstirng: '$$$/Dialogs/CircleSquare/FillColor'));
  13. W_STYLES=max(
  14.     zstring_width(zstring: '$$$IDS_STROKESTYLE_CLOUDY1'),
  15.     zstring_width(zstring: '$$$IDS_STROKESTYLE_CLOUDY2'),
  16.     zstring_width(zstring: '$$$IDS_STROKESTYLE_DASHED1'),
  17.     zstring_width(zstring: '$$$IDS_STROKESTYLE_DASHED2'),
  18.     zstring_width(zstring: '$$$IDS_STROKESTYLE_DASHED3'),
  19.     zstring_width(zstring: '$$$IDS_STROKESTYLE_DASHED4'),
  20.     zstring_width(zstring: '$$$IDS_STROKESTYLE_DASHED5'),
  21.     zstring_width(zstring: '$$$IDS_STROKESTYLE_DASHED6'),
  22.     zstring_width(zstirng: '$$$IDS_STROKESTYLE_SOLID'));
  23.  
  24. dialog()
  25. {
  26.     view(align_children: align_left)
  27.     {
  28.         view(align_children: align_top)
  29.         {
  30.             view(align_children: align_left, width: W_COLUMN)
  31.             {
  32.                 view(align_children: align_row)
  33.                 {
  34.                     view(align_children: align_right, width: W_LABELS_LEFT)
  35.                     {
  36.                         static_text(item_id: 'txt1', name: '$$$/Panels/Generic/StrokeStyle');
  37.                     }
  38.                     view(align_children: align_left)
  39.                     {
  40.                         popup(item_id: 'styl', width: W_STYLES);
  41.                     }
  42.                 }
  43.  
  44.                 view(align_children: align_row)
  45.                 {
  46.                     view(align_children: align_right, width: W_LABELS_LEFT)
  47.                     {
  48.                         static_text(item_id: 'txt2', name: '$$$/Dialogs/FreeText/Color', height: H_BUTTON);
  49.                     }
  50.                     view(align_children: align_left)
  51.                     {
  52.                         button(item_id: 'sclr', picture: true, height: H_BUTTON, width: W_BUTTON);
  53.                     }
  54.                 }
  55.  
  56.                 view(align_children: align_row)
  57.                 {
  58.                     view(align_children: align_right, width: W_LABELS_LEFT)
  59.                     {
  60.                         static_text(item_id: 'txt3', name: '$$$/Dialogs/Generic/Opacity');
  61.                         gap(height: gStaticTextHeight);
  62.                     }
  63.                     view(align_children: align_left)
  64.                     {
  65.                         edit_text(item_id: 'opac', width: 4 * max_char_width(), height: gEditTextHeight);
  66.                         slider(item_id: 'opas', width: 101, height: 9);
  67.                     }
  68.                 }
  69.             }
  70.  
  71.             view(align_children: align_left, width: W_COLUMN)
  72.             {
  73.                 view(align_children: align_row)
  74.                 {
  75.                     view(align_children: align_right, width: W_LABELS_RIGHT)
  76.                     {
  77.                         static_text(item_id: 'txt4', name: '$$$/Dialogs/Ink/Thickness');
  78.                     }
  79.                     view(align_children: align_left)
  80.                     {
  81.                         edit_text(item_id: 'bwid', SpinEdit: true, width: 4 * max_char_width());
  82.                     }
  83.                 }
  84.                 view(align_children: align_row)
  85.                 {
  86.                     view(align_children: align_right, width: W_LABELS_RIGHT)
  87.                     {
  88.                         static_text(item_id: 'txt5', name: '$$$/Dialogs/CircleSquare/FillColor');
  89.                     }
  90.                     view(align_children: align_left)
  91.                     {
  92.                         button(item_id: 'fclr', picture: true, height: H_BUTTON, width: W_BUTTON);
  93.                     }
  94.                 }
  95.             }
  96.         }
  97.         gap(height: 2 * gEditTextHeight);
  98.     }
  99. }
  100.