home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2001 July / VPR0107A.BIN / mshtmler.dll / HTML / FORCHAR.DLG < prev    next >
Text File  |  2000-06-19  |  21KB  |  764 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML 3.2//EN">
  2. <HTML id=dlgFont STYLE="font-family: MS UI Gothic; font-size: 9pt;
  3. width: 35.4em; height: 26.9em">
  4. <HEAD>
  5. <meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
  6. <TITLE id=dialogTitle>
  7. フォント
  8. </TITLE>
  9. </HEAD>
  10. <SCRIPT defer>
  11. function callHelp(elm)
  12. {
  13. if (null != elm.helpid)
  14. {
  15.  window.showHelp(elm.helpfile, "" + parseInt(elm.helpid),
  16.   "popup");
  17. }
  18. else
  19. {
  20.  if ("BODY" != elm.tagName)
  21.  {
  22.   callHelp(elm.parentElement);
  23.  }
  24. }
  25. function btnCancelClick()
  26. {
  27. window.close();
  28. function getTextRange(elm)
  29. {
  30. var r = elm.parentTextEdit.createTextRange();
  31. r.moveToElementText(elm);
  32. return r;
  33. function mouseClick()
  34. {
  35. if (window.event.srcElement.id.substring(0,3)
  36.  == "txt")
  37. {
  38.  return;
  39. }
  40. if (window.event.button == 2)
  41. {
  42.  callHelp(window.event.srcElement);
  43. }
  44. function txtDefaultESC()
  45. {
  46. if (event.keyCode == 27)
  47. {
  48.  window.close();
  49.  return;
  50. }
  51. window.onerror = HandleError
  52. var L_Dialog_ErrorMessage = "このダイアログでエラーが発生しました。";
  53. var L_ErrorNumber_Text = "エラー : ";
  54. function HandleError(message, url, line)
  55. {
  56. var str = L_Dialog_ErrorMessage + "\n\n" 
  57.  + L_ErrorNumber_Text + line + "\n"
  58.  + message;
  59. alert (str);
  60. window.close();
  61. return true;
  62. }
  63. var g_bSearchList = false; 
  64. var g_nTimeoutID;   
  65. var g_szLastFound = "";  
  66. var g_nLastFoundIndex = 0; 
  67. var g_nMatchLength = 0;  
  68. function GetSampleString()
  69. {
  70. var strReturn = "AaBbYyZz";
  71. if (txtFontName.value != "")
  72. {
  73.  switch (dialogHelper.getCharset(txtFontName.value))
  74.  {
  75.  case 2:
  76.   {
  77.    strReturn = "Symbol";
  78.    break;
  79.   }
  80.  case 128:
  81.   {
  82.    strReturn = "Aa\u3042\u3041\u30a2\u30a1\u4e9c\u5b87";
  83.    break;
  84.   }
  85.  case 129:
  86.  case 130:
  87.   {
  88.    strReturn = "\uac00\ub098\ub2e4\u0041\u0061\u0042\u0062\u0059\u0079\u005a\u007a";
  89.    break;
  90.   }
  91.  case 136:
  92.   {
  93.    strReturn = "\u4e2d\u6587\u5b57\u578b\u7bc4\u4f8b";
  94.    break;
  95.   }
  96.  case 161:
  97.   {
  98.    strReturn = "AaBb\u0391\u03b1\u0392\u03b2";
  99.    break;
  100.   }
  101.  case 162:
  102.   {
  103.    strReturn = "AaBb\u011e\u011f\u015e\u015f";
  104.    break;
  105.   }
  106.  case 177:
  107.   {
  108.    strReturn = "AaBb\u05e0\u05e1\u05e9\u05ea";
  109.    break;
  110.   }
  111.  case 178:
  112.  case 179:
  113.   {
  114.    strReturn = "AaBb\u0639\u0645\u0646\u062e\u0631\u0648\u0643\u0645";
  115.    break;
  116.   }
  117.  case 204:
  118.   {
  119.    strReturn = "AaBb\u0411\u0431\u0424\u0444";
  120.    break;
  121.   }
  122.  case 238:
  123.   {
  124.    strReturn = "AaBb\u00c1\u00e1\u00d4\u00f4";
  125.    break;
  126.   }
  127.  case 255:
  128.   {
  129.    strReturn = "Aa\u00f8\u00f1\u00fd"; 
  130.    break;
  131.   }
  132.  }
  133. }
  134. return strReturn;
  135. function getCheckStateCmd(checkbox, range)
  136. {
  137. checkbox.checked = (true == range.queryCommandState(checkbox.value));
  138. function getSelectStateCmd(select, range)
  139. {
  140. var index;
  141. if (null != range.queryCommandValue(select.id.substring(3)))
  142. {
  143.  for (index = 0; index < select.options.length; index++)
  144.  {
  145.   if (select.options[index].value ==
  146.    range.queryCommandValue(select.id.substring(3)))
  147.   {
  148.    select.selectedIndex = index;
  149.    break;
  150.   }
  151.  }
  152. }
  153. else
  154. {
  155.  select.selectedIndex = -1;
  156. }
  157. function setCheckStateCmd(checkbox, range)
  158. {
  159. if (checkbox.checked !=
  160.  (true == range.queryCommandState(checkbox.value)))
  161. {
  162.  range.execCommand(checkbox.value, false);
  163. }
  164. function setSelectStateCmd(select, range)
  165. {
  166. if (-1 != select.selectedIndex)
  167. {
  168.  range.execCommand(select.id.substring(3), false,
  169.   select.options[select.selectedIndex].value);
  170. }
  171. function NoCaseCompare(str1, str2)
  172. {
  173. var ideo1 = 1 != escape(str1.charAt(0)).length;
  174. var ideo2 = 1 != escape(str2.charAt(0)).length;
  175. if (ideo1 != ideo2)
  176.  return ideo1 ? -1 : 1;
  177. if (str1.toLowerCase() < str2.toLowerCase())
  178.  return -1;
  179. if (str1.toLowerCase() > str2.toLowerCase())
  180.  return 1;
  181. return 0;  
  182. function fillFontSelect(select)
  183. {
  184. var index;
  185. var fontList = new Array();
  186. var optFontName;
  187. var len = dialogHelper.fonts.length;
  188. for (index = 0; index < len; index++)
  189. {
  190.  fontList[index] =
  191.   dialogHelper.fonts.item(index);
  192. }
  193. fontList.sort(NoCaseCompare);
  194. for (index = 0; index < fontList.length; index++)
  195. {
  196.  optFontName = new Option();
  197.  optFontName.value = fontList[index];
  198.  optFontName.text = fontList[index];
  199.  select.options[index] = optFontName;
  200. }
  201. function setFont(range)
  202. {
  203. var FontNameCommand = "FontName";
  204. if (window.event.srcElement == txtFontName ||
  205.  window.event.srcElement == cmdFontName)
  206. {
  207.  range.text = GetSampleString();
  208.  range = getTextRange(elmSample);
  209. }
  210. if (-1 != cmdFontName.selectedIndex)
  211. {
  212.  range.execCommand(FontNameCommand, false, txtFontName.value);
  213. }
  214. }
  215. function getFontStyle()
  216. {
  217. var cmdBold = "Bold";
  218. var cmdItalic = "Italic";
  219. var globalDoc = window.dialogArguments;
  220. var range = globalDoc;
  221. with (range)
  222. {
  223.  if (queryCommandState(cmdBold) && queryCommandState(cmdItalic))
  224.  {
  225.   selFontStyle.value = "Bold-Italic";
  226.  }
  227.  else if (queryCommandState(cmdBold))
  228.  {
  229.   selFontStyle.value = "Bold";
  230.  }
  231.  else if (queryCommandState(cmdItalic))
  232.  {
  233.   selFontStyle.value = "Italic";
  234.  }
  235.  else
  236.  {
  237.   selFontStyle.value = "Regular";
  238.  }
  239. }
  240. function setFontStyle(range)
  241. {
  242. var cmdBold = "Bold";
  243. var cmdItalic = "Italic";
  244. with (range)
  245. {
  246.  if ("Bold-Italic" == selFontStyle.value)
  247.  {
  248.   if (true != queryCommandState(cmdBold))
  249.   {
  250.    execCommand(cmdBold, false);
  251.   }
  252.   if (true != queryCommandState(cmdItalic))
  253.   {
  254.    execCommand(cmdItalic, false);
  255.   }
  256.  }
  257.  else if ("Bold" == selFontStyle.value)
  258.  {
  259.   if (true != queryCommandState(cmdBold))
  260.   {
  261.    execCommand(cmdBold, false);
  262.   }
  263.   if (true == queryCommandState(cmdItalic))
  264.   {
  265.    execCommand(cmdItalic, false);
  266.   }
  267.  }
  268.  else if ("Italic" == selFontStyle.value)
  269.  {
  270.   if (true == queryCommandState(cmdBold))
  271.   {
  272.    execCommand(cmdBold, false);
  273.   }
  274.   if (true != queryCommandState(cmdItalic))
  275.   {
  276.    execCommand(cmdItalic, false);
  277.   }
  278.  }
  279.  else
  280.  {
  281.   if (true == queryCommandState(cmdBold))
  282.   {
  283.    execCommand(cmdBold, false);
  284.   }
  285.   if (true == queryCommandState(cmdItalic))
  286.   {
  287.    execCommand(cmdItalic, false);
  288.   }
  289.  }
  290. }
  291. function getFontColor()
  292. {
  293. var cmdForeColor = "ForeColor";
  294. var globalDoc = window.dialogArguments;
  295. var range = globalDoc;
  296. var intColor = range.queryCommandValue(cmdForeColor);
  297. if (null != intColor)
  298. {
  299.  selColor.value = intColor;
  300.  if (parseInt(selColor.value) != parseInt(intColor))
  301.  {
  302.   selColor.customColor = intColor;
  303.   selColor.value = "custom";
  304.  }
  305. }
  306. else
  307. {
  308.  selColor.selectedIndex = -1;
  309. }
  310. function setFontColor(range)
  311. {
  312. var cmdForeColor = "ForeColor";
  313. var intDefaultColor = 0;
  314. if (-1 != selColor.selectedIndex)
  315. {
  316.  if ("custom" == selColor.value)
  317.  {
  318.   range.execCommand(cmdForeColor, false,
  319.    parseInt(selColor.customColor));
  320.   return;
  321.  }
  322.  else
  323.  {
  324.   range.execCommand(cmdForeColor, false,
  325.    parseInt(selColor.value));
  326.  }
  327. }
  328. function syncSelect(ctlSelect, ctlText)
  329. {
  330. if (-1 != ctlSelect.selectedIndex)
  331. {
  332.  if (ctlText.value.toLowerCase()
  333.   == ctlSelect.options[ctlSelect.selectedIndex]
  334.   .text.toLowerCase())
  335.  {
  336.   ctlText.value = ctlSelect.options[ctlSelect.selectedIndex].text;
  337.  }
  338. }
  339. function syncSelect2(ctlSelect, ctlText)
  340. {
  341. if (-1 != ctlSelect.selectedIndex)
  342. {
  343.  ctlText.value = ctlSelect.options[ctlSelect.selectedIndex].text;
  344. }
  345. function findMatch (strMatch, optionsList)
  346. {
  347. var index;
  348. var index2;
  349. var bestChar = 0;
  350. var bestMatch = 0;
  351. var strOptText;
  352. for (index = 0; index < optionsList.length; index++)
  353. {
  354.  strOptText = optionsList.options[index].text;
  355.  for (index2 = bestChar; index2 < strMatch.length; index2++)
  356.  {
  357.   if (strMatch.substring(0, index2 + 1).toLowerCase() ==
  358.    strOptText.substring(0, index2 + 1)
  359.     .toLowerCase())
  360.   {
  361.    bestChar = index2 + 1;
  362.    bestMatch = index;
  363.   }
  364.   else
  365.   {
  366.    break;
  367.   }
  368.  }
  369. }
  370. return bestMatch;
  371. function updateSample()
  372. {
  373. var rngSample = getTextRange(elmSample);
  374. setCheckStateCmd(chkUnderline, rngSample);
  375. rngSample.text = GetSampleString();
  376. rngSample = getTextRange(elmSample);
  377. setFont(rngSample);
  378. setSelectStateCmd(cmdFontSize, rngSample); 
  379. setFontStyle(rngSample);
  380. setFontColor(rngSample);
  381. function searchText()
  382. {
  383. var index;
  384. var index2;
  385. var bestChar = g_nMatchLength;
  386. var bestMatch = g_nLastFoundIndex;
  387. var strOptText;
  388. var optionsList = cmdFontName.options;
  389. var strMatch = txtFontName.value;
  390. if (strMatch.length == 0)
  391. {
  392.  cmdFontName.selectedIndex = -1;
  393.  g_nMatchLength = 0;
  394.  g_nLastFoundIndex = 0;
  395.  g_bSearchList = false;
  396.  g_szLastFound = "";
  397.  return;
  398. }
  399. if (strMatch.length >= g_szLastFound.length
  400.  && (strMatch.substring(0, g_nMatchLength).toLowerCase()
  401.  == g_szLastFound.substring(0, g_nMatchLength).toLowerCase()))
  402. {
  403.  index = g_nLastFoundIndex;
  404. }
  405. else
  406. {
  407.  index = 0;
  408.  bestChar = 0;
  409. }
  410. for (; index < optionsList.length; index++)
  411. {
  412.  strOptText = optionsList.options[index].text;
  413.  for (index2 = bestChar; index2 < strMatch.length; index2++)
  414.  {
  415.   if (strMatch.substring(index2, index2 + 1).toLowerCase() ==
  416.    strOptText.substring(index2, index2 + 1)
  417.     .toLowerCase())
  418.   {
  419.    bestChar = index2 + 1;
  420.    bestMatch = index;
  421.    g_nLastFoundIndex = bestMatch;
  422.    g_nMatchLegth = bestChar;
  423.   }
  424.   else
  425.   {
  426.    break;
  427.   }
  428.  }
  429. if (bestChar > 0 && index < optionsList.options.length - 2 &&
  430.  optionsList.options[index + 1].text
  431.  .substring(bestChar - 1, bestChar).toLowerCase()
  432.  != strMatch.substring(bestChar - 1, bestChar).toLowerCase())
  433. {
  434.  break;
  435. }
  436. }
  437. cmdFontName.selectedIndex = bestMatch;
  438. g_bSearchList = false;
  439. g_szLastFound = txtFontName.value;
  440. function TextboxKeyDown(textbox, select, iKeyCode)
  441. {
  442. var fReturn = false;
  443. if (38 == iKeyCode || 40 ==iKeyCode)
  444. {
  445.  var iDirection = (iKeyCode == 38) ? -1 : 1;
  446.  if (!((iDirection == 1 && 
  447.   !(select.selectedIndex < select.options.length - 1))
  448.   || (iDirection == -1 && !select.selectedIndex)))
  449.  {
  450.   select.selectedIndex = select.selectedIndex + iDirection;
  451.   textbox.value = 
  452.    select.options(select.selectedIndex).text;
  453.   textbox.select();
  454.   updateSample(getTextRange(elmSample));
  455.  }
  456.  fReturn = true;
  457. }
  458. return fReturn;
  459. }
  460. function syncTextFont()
  461. {
  462. if (TextboxKeyDown(txtFontName, cmdFontName, window.event.keyCode))
  463.  return;
  464. if (g_szLastFound.toLowerCase() == txtFontName.value.toLowerCase())
  465. {
  466.  return;
  467. }
  468. if (g_bSearchList)
  469. {
  470.  window.clearTimeout(g_nTimeoutID);
  471. }
  472. g_bSearchList = true;
  473. g_nTimeoutID = window.setTimeout("searchText()", 200);
  474. function loadBdy()
  475. {
  476. var doc = window.dialogArguments; 
  477. var L_InsideFrameset_ErrorMessage = 
  478.  "ページにフレームが含まれているため、このコマンドは使用できません。";
  479. if (doc.parentWindow.frames.length > 0 && 
  480.  doc.all.tags("IFRAME").length == 0)
  481. {
  482.  alert(L_InsideFrameset_ErrorMessage);
  483.  window.close();
  484. }
  485. var rngCurrent = doc; 
  486. document.onhelp  = new Function("callHelp(window.event.srcElement)");
  487. document.onmouseup = new Function("mouseClick()");
  488. txtFontName.onblur  = new
  489.  Function("syncSelect(cmdFontName, txtFontName)");
  490. txtFontName.onfocus  = new Function("txtFontName.select()");
  491. txtFontName.onchange = new
  492.  Function("setFont(getTextRange(elmSample))");
  493. txtFontName.onkeyup  = new Function("syncTextFont()");
  494. txtFontName.onfocus  = new Function("txtFontName.select()");
  495. txtFontName.onkeypress = new Function("txtDefaultESC()");
  496. txtFontStyle.onblur  = new
  497.  Function("syncSelect(selFontStyle, txtFontStyle)");
  498. txtFontStyle.onfocus = new Function("txtFontStyle.select()");
  499. txtFontStyle.onchange = new Function("setFontStyle" +
  500.  "(getTextRange(elmSample))");
  501. txtFontStyle.onkeyup = new Function("synchText()");
  502. txtFontStyle.onfocus = new Function("txtFontStyle.select()");
  503. txtFontStyle.onkeypress = new Function("txtDefaultESC()");
  504. txtFontSize.onblur  = new
  505.  Function("syncSelect(cmdFontSize, txtFontSize)");
  506. txtFontSize.onfocus  = new Function("txtFontSize.select()");
  507. txtFontSize.onchange = new
  508.  Function("setSelectStateCmd(cmdFontSize, " +
  509.   "getTextRange(elmSample))");
  510. txtFontSize.onkeyup  = new Function("synchText()");
  511. txtFontSize.onfocus  = new Function("txtFontSize.select()");
  512. txtFontSize.onkeypress = new Function("txtDefaultESC()");
  513. cmdFontName.onchange = new Function("syncSelect2(cmdFontName, txtFontName);" +
  514.  "setFont(getTextRange(elmSample))");
  515. selFontStyle.onchange = new Function("syncSelect2(selFontStyle," +
  516.  "txtFontStyle);" +
  517.  "setFontStyle(getTextRange(elmSample))");
  518. cmdFontSize.onchange = new Function("syncSelect2(cmdFontSize, txtFontSize);" +
  519.  "setSelectStateCmd(cmdFontSize, getTextRange(elmSample))");
  520. chkUnderline.onclick = new Function("setCheckStateCmd(chkUnderline," +
  521.  "getTextRange(elmSample))");
  522. selColor.onchange = new Function("setFontColor(getTextRange(elmSample))");
  523. btnCustom.onclick  = new Function("btnCustomClick()");
  524. btnOK.onclick   = new Function("btnOKClick()");
  525. btnCancel.onclick  = new Function("btnCancelClick()");
  526. fillFontSelect(cmdFontName);
  527. getCheckStateCmd(chkUnderline, rngCurrent);
  528. getSelectStateCmd(cmdFontName, rngCurrent); 
  529. getSelectStateCmd(cmdFontSize, rngCurrent); 
  530. getFontStyle();
  531. selColor.customColor = 0; 
  532. getFontColor();
  533. syncSelect2(cmdFontName, txtFontName);
  534. syncSelect2(selFontStyle, txtFontStyle);
  535. syncSelect2(cmdFontSize, txtFontSize);
  536. txtFontName.select();
  537. g_szLastFound = txtFontName.value;
  538. updateSample();
  539. txtFontName.focus();
  540. function btnCustomClick()
  541. {
  542. var result = dialogHelper.choosecolordlg(selColor.customColor);
  543. if (result != 0)
  544. {
  545.  selColor.customColor = result;
  546.  selColor.value = "custom";
  547.  setFontColor(getTextRange(elmSample));
  548. }
  549. function btnOKClick()
  550. {
  551. var globalDoc = window.dialogArguments;
  552. var range = globalDoc;
  553. setCheckStateCmd(chkUnderline, range);
  554. setSelectStateCmd(cmdFontSize, range);
  555. setFont(range);
  556. setFontColor(range);
  557. setFontStyle(range);
  558. window.close();
  559. function synchText()
  560. {
  561. var index;
  562. var elmSource = window.event.srcElement;
  563. var arrSelect = new Array();
  564. var elmSelect; 
  565. var elmOptions; 
  566. arrSelect["txtFontName"] = cmdFontName;
  567. arrSelect["txtFontStyle"] = selFontStyle;
  568. arrSelect["txtFontSize"] = cmdFontSize;
  569. elmSelect = arrSelect[elmSource.id];
  570. elmOptions = elmSelect.options;
  571. if (TextboxKeyDown(elmSource, elmSelect, window.event.keyCode))
  572.  return;
  573. if ("" != elmSource.value)
  574. {
  575.  elmSelect.selectedIndex = findMatch(elmSource.value,
  576.   elmOptions);
  577. }
  578. </SCRIPT>
  579. <BODY id=bdy onload="loadBdy()" style="font-family: 'MS UI Gothic'; font-size: 9pt;
  580. background: threedface; color: windowtext;" scroll=no>
  581. <OBJECT ID="dialogHelper" CLASSID="CLSID:3050f4e1-98b5-11cf-bb82-00aa00bdce0b"
  582.  HEIGHT=0 WIDTH=0 tabindex=-1>
  583. </OBJECT>
  584. <DIV id=divFontName style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  585. left: 0.98em; top: 0.9126em; width: 5.5em; height: 1.2168em;">
  586. <LABEL id=lblFontName for=txtFontName tabIndex=-1 helpid="35420" 
  587. helpfile=msoe.hlp>
  588. フォント(<U>F</U>):</LABEL>
  589. </DIV>
  590. <DIV id=divFontStyle style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  591. left: 13.86em; top: 0.9126em; width: 5.5em; height: 1.2168em;">
  592. <LABEL id=lblFontStyle for=txtFontStyle tabIndex=-1 helpid="35425" 
  593. helpfile=msoe.hlp>
  594. スタイル(<U>Y</U>):</LABEL>
  595. </DIV>
  596. <DIV id=divFontSize style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  597. left: 20.58em; top: 0.9126em; width: 4.5em; height: 1.2168em;">
  598. <LABEL id=lblFontSize for=txtFontSize tabIndex=-1 helpid="35430" 
  599. helpfile=msoe.hlp>
  600. サイズ(<U>S</U>):</LABEL>
  601. </DIV>
  602. <INPUT type=text ID=txtFontName ACCESSKEY=f tabIndex=5
  603. style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  604. left: 0.98em; top: 2.3em; width: 12.04em; height: 1.6em; "
  605. helpid="35420" helpfile=msoe.hlp>
  606. <INPUT type=text ID=txtFontStyle ACCESSKEY=y tabIndex=10
  607. style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  608. left: 13.86em; top: 2.3em; width: 5.8em; height: 1.6em; "
  609. helpid="35425" helpfile=msoe.hlp>
  610. <INPUT type=text ID=txtFontSize ACCESSKEY=s tabIndex=15
  611. style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  612. left: 20.58em; top: 2.3em; width: 4.8em; height: 1.6em; "
  613. helpid="35430" helpfile=msoe.hlp>
  614. <SELECT ID=cmdFontName style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  615. left: 0.8em; top: 4.2588em; width: 12.2em; height: 9.9739em; "
  616. name=setCmdID tabIndex=-1 size=7
  617. helpid="35420" helpfile=msoe.hlp>
  618. </SELECT>
  619. <SELECT ID=selFontStyle size=7 tabIndex=-1
  620. style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  621. left: 13.8em; top: 4.2588em; width: 6em; height: 9.9739em; "
  622. helpid="35425" helpfile=msoe.hlp>
  623. <OPTION id=optRegular VALUE=Regular SELECTED> 標準  </OPTION>
  624. <OPTION id=optItalic  VALUE=Italic>    斜体  </OPTION>
  625. <OPTION id=optBold  VALUE=Bold>    太字  </OPTION>
  626. <OPTION id=optBoldItalic VALUE=Bold-Italic>  太字 斜体 </OPTION>
  627. </SELECT>
  628. <SELECT ID=cmdFontSize size=7 tabIndex=-1 name=setCmdID
  629. style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  630. left: 20.5em; top: 4.2588em; width: 5em; height: 9.9739em; "
  631. helpid="35430" helpfile=msoe.hlp>
  632. <OPTION id=opt8 VALUE=1>   8 </OPTION>
  633. <OPTION id=opt10 VALUE=2>   10 </OPTION>
  634. <OPTION id=opt12 VALUE=3 SELECTED> 12 </OPTION>
  635. <OPTION id=opt14 VALUE=4>   14 </OPTION>
  636. <OPTION id=opt18 VALUE=5>   18 </OPTION>
  637. <OPTION id=opt24 VALUE=6>   24 </OPTION>
  638. <OPTION id=opt36 VALUE=7>   36 </OPTION>
  639. </SELECT>
  640. <FIELDSET id=fldEffects style="font-family: MS UI Gothic; font-size: 9pt; 
  641. position: absolute; left: 0.98em; top: 14.6em; width: 12.04em; 
  642. height: 8.8em;">
  643. <LEGEND id=lgdEffects>
  644. 文字飾り
  645. </LEGEND>
  646. </FIELDSET>
  647. <INPUT ID=chkUnderline ACCESSKEY=u type=checkbox tabIndex=35 value=Underline
  648. name=setCmdID helpid="35445" helpfile=msoe.hlp
  649. style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  650. left: 2em; top: 16.5em; width: 1.2em; height: 1.2em; ">
  651. <DIV id=divUnderline style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  652. left: 3.6em; top: 16.6em; width: 6.44em; height: 1.521em;">
  653. <LABEL id=lblUnderline for=chkUnderline helpid="35445" helpfile=msoe.hlp
  654. tabIndex=-1>下線(<U>U</U>)
  655. </LABEL>
  656. </DIV>
  657. <DIV id=divColor style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  658. left: 1.96em; top: 18.8604em; width: 5.5em; height: 1.2168em;">
  659. <LABEL id=lblColor helpid="35440" helpfile=msoe.hlp for=selColor>
  660. 色の設定(<U>C</U>):</LABEL>
  661. </DIV>
  662. <SELECT ID=selColor ACCESSKEY=c tabIndex=55
  663. style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  664. left: 1.96em; top: 20.3814em; width: 7em; height: 1.21em; "
  665. helpid="35440" helpfile=msoe.hlp>
  666. <OPTION id=optBlack value=0  >  黒 </OPTION>
  667. <OPTION id=optWhite value=16777215>  白 </OPTION>
  668. <OPTION id=optGreen value=32768 >  緑 </OPTION>
  669. <OPTION id=optMaroon value=128  >  茶色 </OPTION>
  670. <OPTION id=optOlive value=32896 >  オリーブ </OPTION>
  671. <OPTION id=optNavy value=8388608 >  紺 </OPTION>
  672. <OPTION id=optPurple value=8388736 >  紫 </OPTION>
  673. <OPTION id=optGray value=8421504 >  灰色 </OPTION>
  674. <OPTION id=optYellow value=65535 >  黄色 </OPTION>
  675. <OPTION id=optLime value=65280 >  黄緑 </OPTION>
  676. <OPTION id=optAqua value=16776960>  水色 </OPTION>
  677. <OPTION id=optFuchsia value=16711935>  赤紫 </OPTION>
  678. <OPTION id=optSilver value=12632256>  銀色 </OPTION>
  679. <OPTION id=optRed  value=255  >  赤  </OPTION>
  680. <OPTION id=optBlue value=16711680>  青 </OPTION>
  681. <OPTION id=optTeal value=8421376 >  青緑 </OPTION>
  682. <OPTION id=optCustom value=custom >  ユーザー設定 </OPTION>
  683. </SELECT>
  684. <BUTTON id=btnCustom tabIndex=56
  685. style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  686. left: 9.5em; top: 20.2em;"
  687. helpid="35440" helpfile=msoe.hlp>
  688. <IMG id=imgPalette
  689. align=bottom height=16px width=16px hspace=0 vspace=0 src="palette.gif">
  690. </BUTTON>
  691. <FIELDSET id=fldSample style="font-family: MS UI Gothic; font-size: 9pt; position: 
  692. absolute; left: 13.86em; top: 14.6em; width: 11.4em; height: 8.8em;">
  693. <LEGEND id=lgdSample helpid="35435" helpfile=msoe.hlp>
  694. サンプル
  695. </LEGEND>
  696. </FIELDSET>
  697. <table cellspacing borderColorDark=threedhighlight
  698. borderColorLight=threedshadow noshade="yes" border=1 id=tblSample1
  699. style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  700. left: 14.98em; top: 16.5789em; width: 9.24em; height: 5.0277em;">
  701. <tr>
  702. <td id=tdSample1 style="font-family: MS UI Gothic; font-size: 9pt;
  703. left: 14.98em; top: 16.5789em; width: 9.24em; height: 5.0277em;">
  704. </td>
  705. </tr>
  706. </table>
  707. <DIV id=divSample2 style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  708. left: 14.98em; top: 16.5789em; width: 8.9em; height: 5.0277em;
  709. overflow: hidden" helpid="35435" 
  710. helpfile=msoe.hlp>
  711. <TABLE id=tblSample2 style="font-family: MS UI Gothic; font-size: 9pt; width: 8.9em;
  712. height: 5.0277em; " helpid="35435" 
  713. helpfile=msoe.hlp>
  714. <TR>
  715. <TD id=tdSample2 style="font-family: MS UI Gothic; font-size: 9pt; width: 8.9em;
  716. height: 5.0277em; "
  717. helpid="35435" helpfile=msoe.hlp>
  718.  <CENTER>
  719.  <DIV id=elmSample>
  720.  <NOBR id=nbrSample helpid="35435" helpfile=msoe.hlp>
  721.  AaBbYyZz</NOBR></DIV></CENTER>
  722. </TD>
  723. </TR>
  724. </TABLE>
  725. </DIV>
  726. <BUTTON id=btnOK tabIndex=60
  727. style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  728. left: 26.6em; top: 2.2815em; width: 7em; height: 1.8em; "
  729. helpid="28443" helpfile="windows.hlp" type=submit>
  730. OK</BUTTON>
  731. <BUTTON id=btnCancel tabIndex=70
  732. style="font-family: MS UI Gothic; font-size: 9pt; position: absolute;
  733. left: 26.6em; top: 4.7151em; width: 7em; height: 1.8em; "
  734. helpid="28444" helpfile="windows.hlp" type=reset>
  735. キャンセル</BUTTON>
  736. </BODY>
  737. </HTML>
  738.