{"id":5240,"date":"2015-01-19T15:55:45","date_gmt":"2015-01-19T06:55:45","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=5240"},"modified":"2022-03-08T16:38:36","modified_gmt":"2022-03-08T07:38:36","slug":"%e3%83%aa%e3%83%9c%e3%83%b3%e3%83%bb%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%9e%e3%82%a4%e3%82%bacheckbox%e8%a6%81%e7%b4%a0%e3%81%ae%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e7%8a%b6%e6%85%8b%e3%82%92%e5%8b%95","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=5240","title":{"rendered":"[\u30ea\u30dc\u30f3\u30fb\u30ab\u30b9\u30bf\u30de\u30a4\u30ba]checkBox\u8981\u7d20\u306e\u30c1\u30a7\u30c3\u30af\u72b6\u614b\u3092\u52d5\u7684\u306b\u8a2d\u5b9a\u3059\u308b\u3002"},"content":{"rendered":"<p><a href=\"\/\/www.ka-net.org\/\" title=\"Office 2007\/2010\u30fb\u30ea\u30dc\u30f3\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\" rel=\"noopener\">HP<\/a>\u306e\u63b2\u793a\u677f\u3067\u3001<\/p>\n<blockquote><p>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306echeck\/uncheck\u306e\u72b6\u614b\u3092<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u7684\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3057\u3087\u3046\u304b\uff1f<\/p><\/blockquote>\n<p>\u3068\u3044\u3063\u305f\u8cea\u554f\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><span style=\"color: #ff0000; font-weight: bold;\">checkBox<\/span>\u8981\u7d20\u306eON\u30fbOFF\u3092\u52d5\u7684\u306b\u5207\u308a\u66ff\u3048\u308b\u5834\u5408\u306f\u3001<span style=\"color: #ff0000; font-weight: bold;\">getPressed<\/span>\u5c5e\u6027\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<h4>\u30fb\u30ea\u30dc\u30f3XML<\/h4>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\r\n&lt;customUI onLoad=&quot;rbnChkSample_onLoad&quot; xmlns=&quot;http:\/\/schemas.microsoft.com\/office\/2006\/01\/customui&quot;&gt;\r\n  &lt;ribbon&gt;\r\n    &lt;tabs&gt;\r\n      &lt;tab id=&quot;tabSample&quot; label=&quot;Sample Tab&quot;&gt;\r\n        &lt;group id=&quot;grpSample&quot; label=&quot;Sample Group&quot;&gt;\r\n          &lt;button id=&quot;btnSample&quot; label=&quot;Sample Button&quot; imageMso=&quot;HappyFace&quot; onAction=&quot;btnSample_onAction&quot; \/&gt;\r\n          &lt;checkBox id=&quot;chkSample&quot; label=&quot;Sample CheckBox&quot; getPressed=&quot;chkSample_getPressed&quot; onAction=&quot;chkSample_onAction&quot; \/&gt;\r\n        &lt;\/group&gt;\r\n      &lt;\/tab&gt;\r\n    &lt;\/tabs&gt;\r\n  &lt;\/ribbon&gt;\r\n&lt;\/customUI&gt;<\/pre>\n<h4>\u30fb\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb<\/h4>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">'\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\r\nOption Explicit\r\n\r\nPrivate myRibbon As Office.IRibbonUI\r\nPrivate flgChkSample As Boolean\r\n\r\nPublic Sub rbnChkSample_onLoad(ribbon As IRibbonUI)\r\n  Set myRibbon = ribbon\r\n  flgChkSample = True 'checkBox\u8981\u7d20\u306e\u521d\u671f\u5024\r\nEnd Sub\r\n\r\nPublic Sub btnSample_onAction(control As IRibbonControl)\r\n'button\u8981\u7d20\u30af\u30ea\u30c3\u30af\u6642\u306b\u5b9f\u884c\r\n'checkBox\u8981\u7d20\u306eON\u30fbOFF\u3092\u5207\u308a\u66ff\u3048\r\n  flgChkSample = Not flgChkSample\r\n  myRibbon.InvalidateControl &quot;chkSample&quot; 'checkBox\u8981\u7d20\u518d\u63cf\u753b\r\n  'myribbon.Invalidate '\u30ea\u30dc\u30f3\u5168\u4f53\u518d\u63cf\u753b\r\nEnd Sub\r\n\r\nPublic Sub chkSample_getPressed(control As IRibbonControl, ByRef returnedVal)\r\n'checkBox\u8981\u7d20\u306eON\u30fbOFF\u3092\u8a2d\u5b9a\r\n  returnedVal = flgChkSample\r\nEnd Sub\r\n\r\nPublic Sub chkSample_onAction(control As IRibbonControl, pressed As Boolean)\r\n'checkBox\u8981\u7d20\u30af\u30ea\u30c3\u30af\u6642\u306b\u5b9f\u884c\r\n  flgChkSample = Not flgChkSample\r\n  MsgBox &quot;checkBox\u8981\u7d20\u306e\u73fe\u5728\u306e\u30c1\u30a7\u30c3\u30af\u72b6\u614b\u306f\u300c&quot; &amp; pressed &amp; &quot;\u300d\u3067\u3059\u3002&quot;, vbSystemModal\r\nEnd Sub<\/pre>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3068\u300c<span style=\"color: #ff0000; font-weight: bold;\">Sample Tab<\/span>\u300d\u306e\u4e2d\u306b\u30dc\u30bf\u30f3(button\u8981\u7d20\u3001id\u5c5e\u6027\uff1abtnSample)\u3068\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9(checkBox\u8981\u7d20\u3001id\u5c5e\u6027\uff1achkSample)\u304c\u8868\u793a\u3055\u308c\u3001\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u5ea6\u306b\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306eON\u30fbOFF\u304c\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/chkSample_getPressed_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/chkSample_getPressed_01.jpg\" alt=\"chkSample_getPressed_01\" width=\"477\" height=\"203\" class=\"alignnone size-full wp-image-5241\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/chkSample_getPressed_01.jpg 477w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/chkSample_getPressed_01-300x128.jpg 300w\" sizes=\"auto, (max-width: 477px) 100vw, 477px\" \/><\/a><\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u30c1\u30a7\u30c3\u30af\u72b6\u614b\u306b\u3064\u3044\u3066\u306f\u3001<span style=\"color: #ff0000; font-weight: bold;\">onAction<\/span>\u5c5e\u6027\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u5f15\u6570\u300c<span style=\"color: #ff0000; font-weight: bold;\">pressed<\/span>\u300d\u3067\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h4 class=\"style4a\">\u95a2\u9023\u8a18\u4e8b<\/h4>\n<div class=\"cardlink\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=14410\"><div class=\"cardlink_thumbnail\"><img src='https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Ribbon-120x120.png' alt='[\u30ea\u30dc\u30f3\u30fb\u30ab\u30b9\u30bf\u30de\u30a4\u30ba]toggleButton\u306e\u30aa\u30f3\u30fb\u30aa\u30d5\u3092\u52d5\u7684\u306b\u5909\u66f4\u3059\u308b\u3002' width=120 height=120 \/><\/a><\/div><div class=\"cardlink_content\"><span class=\"timestamp\">2022.03.08<\/span><div class=\"cardlink_title\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=14410\">[\u30ea\u30dc\u30f3\u30fb\u30ab\u30b9\u30bf\u30de\u30a4\u30ba]toggleButton\u306e\u30aa\u30f3\u30fb\u30aa\u30d5\u3092\u52d5\u7684\u306b\u5909\u66f4\u3059\u308b\u3002 <\/a><\/div><div class=\"cardlink_excerpt\">\u201c\u30ea\u30dc\u30f3\u4e0a\u306e\u30c8\u30b0\u30eb\u30dc\u30bf\u30f3\u3092\u30de\u30af\u30ed\u3067\u62bc\u3057\u4e0b\u3052\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u304b\uff1f\u201d\u3001\u3068\u306e\u8cea\u554f\u304c\u3042\u308a\u307e\u3057\u305f\u3002\r\n\u30c8\u30b0\u30eb\u30dc\u30bf\u30f3\u306e\u62bc\u4e0b\u72b6\u614b\u3067\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u306f\u4e0b\u8a18\u8a18\u4e8b\u3068\u540c\u3058\u304ftoggleButton\u8981\u7d20\u306egetPressed\u5c5e\u6027\u3092\u4f7f\u3044\u3001(IRibbonUI).InvalidateCo...<\/div><\/div><div class=\"cardlink_footer\"><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"HP\u306e\u63b2\u793a\u677f\u3067\u3001 \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306echeck\/uncheck\u306e\u72b6\u614b\u3092 \u30d7\u30ed\u30b0\u30e9\u30e0\u7684\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3057\u3087\u3046\u304b\uff1f \u3068\u3044\u3063\u305f\u8cea\u554f\u304c\u3042\u308a\u307e\u3057\u305f\u3002 checkBox\u8981\u7d20\u306eON\u30fbOFF\u3092\u52d5\u7684\u306b\u5207\u308a\u66ff\u3048\u308b\u5834\u5408\u306f\u3001getPres [&hellip;]","protected":false},"author":1,"featured_media":7130,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u6bd4\u8f03\u7684\u57fa\u672c\u7684\u306a\u30b5\u30f3\u30d7\u30eb\u3002 [[\u30ea\u30dc\u30f3\u30fb\u30ab\u30b9\u30bf\u30de\u30a4\u30ba]checkBox\u8981\u7d20\u306e\u30c1\u30a7\u30c3\u30af\u72b6\u614b\u3092\u52d5\u7684\u306b\u8a2d\u5b9a\u3059\u308b\u3002]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,1],"tags":[],"class_list":["post-5240","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-ribbon"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Ribbon.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1mw","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5240"}],"version-history":[{"count":2,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5240\/revisions"}],"predecessor-version":[{"id":14417,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5240\/revisions\/14417"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7130"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}