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

  1. gMaxWidth=max(
  2.     zstring_width(zstring: '$$$/Dialogs/JSPrefs/Font'),
  3.     zstring_width(zstring: '$$$/Dialogs/JSPrefs/FontSize'));
  4.  
  5. dialog(name: '$$$/Dialogs/JSPrefs', margin_height: 0, margin_width: 0)
  6. {
  7.     view(align_children: align_left, dheight: gPrefsPanelHeight, dwidth: gPrefsPanelWidth)
  8.     {
  9.         cluster(item_id: 'clu1', name: '$$$/Dialogs/JSPrefs/General', dwidth: gPrefsPanelWidth, align_children: align_left)
  10.         {
  11.             check_box(item_id: 'enab', name: '$$$/Dialogs/JSPrefs/Enable');
  12.         }
  13.         cluster(item_id: 'clu2', name: '$$$/Dialogs/JSPrefs/Editor', dwidth: gPrefsPanelWidth, align_children: align_left)
  14.         {
  15.             radio(item_id: 'rad1', name: '$$$/Dialogs/JSPrefs/Native');
  16.             view(align_children: align_row)
  17.             {
  18.                 gap();
  19.                 view(align_children: align_right, width : gMaxWidth)
  20.                 {
  21.                     static_text(name: '$$$/Dialogs/JSPrefs/Font');
  22.                 }
  23.                 view(align_children: align_left)
  24.                 {
  25.                     popup(item_id: 'font', width: max_char_width() * 18);
  26.                 }
  27.             }
  28.             view(align_children: align_row)
  29.             {
  30.                 gap();
  31.                 view(align_children: align_right, width : gMaxWidth)
  32.                 {
  33.                     static_text(name: '$$$/Dialogs/JSPrefs/FontSize');
  34.                 }
  35.                 view(align_children: align_left)
  36.                 {
  37.                     edit_text(item_id: 'fsiz', width: max_char_width() * 3, PopupEdit: true, numeric: true);
  38.                 }
  39.             }
  40.             radio(item_id: 'rad2', name: '$$$/Dialogs/JSPrefs/External');
  41.             view(align_children: align_row)
  42.             {
  43.                 gap(width: 8);
  44.                 edit_text(item_id: 'edit', width: max_char_width() * 25);
  45.                 button(item_id: 'bttn', width: 5, name: '$$$/Dialogs/JSPrefs/Path');
  46.             }
  47.         }
  48.     }
  49. }
  50.