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

  1. W_COLUMN = 160;
  2.  
  3. W_LABELS=max(
  4.     zstring_width(zstring: '$$$/Dialogs/Generic/Author'),
  5.     zstring_width(zstring: '$$$/Dialogs/Generic/Date1'),
  6.     zstring_width(zstring: '$$$/Panels/Generic/Subject'),
  7.     zstring_width(zstring: '$$$/Panels/Generic/Description'));
  8.  
  9. dialog()
  10. {
  11.     view(align_children: align_left)
  12.     {
  13.         view(align_children: align_left, width: 2 * W_COLUMN)
  14.         {
  15.             view(align_children: align_row)
  16.             {
  17.                 view(align_children: align_right, width: W_LABELS)
  18.                 {
  19.                     static_text(item_id: 'txt1', name: '$$$/Dialogs/Generic/Author');
  20.                 }
  21.                 view(align_children: align_left)
  22.                 {
  23.                     edit_text(item_id: 'auth', alignment: align_fill, width: 8 * max_char_width(), height: gEditTextHeight);
  24.                 }
  25.             }
  26.             view(align_children: align_row)
  27.             {
  28.                 view(align_children: align_right, width: W_LABELS)
  29.                 {
  30.                     static_text(item_id: 'txt3', name: '$$$/Panels/Generic/Subject');
  31.                 }
  32.                 view(align_children: align_left)
  33.                 {
  34.                     edit_text(item_id: 'subj', alignment: align_fill, width: 12 * max_char_width(), height: gEditTextHeight);
  35.                 }
  36.             }
  37.             view(align_children: align_row)
  38.             {
  39.                 view(align_children: align_right, width : W_LABELS)
  40.                 {
  41.                     static_text(item_id: 'txt2', name: '$$$/Dialogs/Generic/Date1');
  42.                 }
  43.                 view(align_children: align_left)
  44.                 {
  45.                     static_text(item_id: 'date', width: 12 * max_char_width());
  46.                 }
  47.             }
  48.             view(align_children: align_row)
  49.             {
  50.                 view(align_children: align_right, width: W_LABELS)
  51.                 {
  52.                     static_text(item_id: 'dscl', name: '$$$/Panels/Generic/Description');
  53.                 }
  54.                 view(align_children: align_left)
  55.                 {
  56.                     edit_text(item_id: 'dscr', alignment: align_fill, width: 12 * max_char_width(), height: gEditTextHeight);
  57.                 }
  58.             }
  59.         }
  60.         gap(height: 2 * gEditTextHeight);
  61.     }
  62. }
  63.