{"id":2833,"date":"2013-03-11T09:53:34","date_gmt":"2013-03-11T00:53:34","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=2833"},"modified":"2013-08-07T17:06:34","modified_gmt":"2013-08-07T08:06:34","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%ba%e3%83%9c%e3%82%bf%e3%83%b3%e3%82%84%e3%83%a1%e3%83%8b%e3%83%a5%e3%83%bc%e3%81%ae%e6%9c%89%e5%8a%b9%e3%83%bb","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=2833","title":{"rendered":"[\u30ea\u30dc\u30f3\u30fb\u30ab\u30b9\u30bf\u30de\u30a4\u30ba]\u30dc\u30bf\u30f3\u3084\u30e1\u30cb\u30e5\u30fc\u306e\u6709\u52b9\u30fb\u7121\u52b9\u3092\u5207\u308a\u66ff\u3048\u308b\u3002"},"content":{"rendered":"<p>\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=2806\" title=\"[\u30ea\u30dc\u30f3\u30fb\u30ab\u30b9\u30bf\u30de\u30a4\u30ba]splitButton\u8981\u7d20\u3067\u5927\u91cf\u306b\u3042\u308b\u9805\u76ee\u3092\u4f7f\u3044\u3084\u3059\u304f\u307e\u3068\u3081\u308b\u3002\" target=\"_blank\">[\u30ea\u30dc\u30f3\u30fb\u30ab\u30b9\u30bf\u30de\u30a4\u30ba]splitButton\u8981\u7d20\u3067\u5927\u91cf\u306b\u3042\u308b\u9805\u76ee\u3092\u4f7f\u3044\u3084\u3059\u304f\u307e\u3068\u3081\u308b\u3002<\/a>\u300d\u3067\u4e0b\u8a18\u30b3\u30e1\u30f3\u30c8\u3092\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>\u65e7\u5f0f\u306e\u30b3\u30de\u30f3\u30c9\u30d0\u30fc\u5f0f\u306e\u30d7\u30eb\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u3067\u306f\u3001\u7121\u52b9\u306a\u30e1\u30cb\u30e5\u30fc\u3092\u975e\u8868\u793a(\u30b0\u30ec\u30a4\u30a2\u30a6\u30c8)\u306b\u3059\u308b\u4e8b\u304c\u826f\u304f\u6709\u308a\u307e\u3059\u304c\u3001\u30ea\u30dc\u30f3\u306b\u63db\u88c5\u3059\u308b\u305f\u3081\u306b\u3001\u300c\u30dc\u30bf\u30f3\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u5207\u308a\u66ff\u3048\u308b\u30fb\u7d44\u8fbc\u30a2\u30a4\u30b3\u30f3\u300d\u3092\u53c2\u8003\u306b\u8a66\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3088\u308a\u826f\u3044\u65b9\u6cd5\u306f\u6709\u308a\u307e\u305b\u3093\u304b\uff1f<\/p><\/blockquote>\n<p>\u30e1\u30cb\u30e5\u30fc\u3084\u30dc\u30bf\u30f3\u306e\u6709\u52b9\u30fb\u7121\u52b9\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u306f<span style=\"color: #ff0000; font-weight: bold;\">enabled<\/span>\u5c5e\u6027\u3001\u52d5\u7684\u306b\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u306f<span style=\"color: #ff0000; font-weight: bold;\">getEnabled<\/span>\u5c5e\u6027\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u300c<strong>\u6709\u52b9<\/strong>\u300d\u30dc\u30bf\u30f3\u304c\u6709\u52b9\u3001\u300c<strong>\u7121\u52b9<\/strong>\u300d\u30dc\u30bf\u30f3\u304c\u7121\u52b9\u3001\u300c<strong>\u5207\u66ff<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3053\u3068\u3067\u300c<strong>\u52d5\u7684<\/strong>\u300d\u30dc\u30bf\u30f3\u306e\u6709\u52b9\u30fb\u7121\u52b9\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u30ea\u30dc\u30f3XML\uff1a<\/strong><\/p>\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;rbnSample_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;btnSample1&quot; label=&quot;\u6709\u52b9&quot; imageMso=&quot;HappyFace&quot; size=&quot;large&quot; enabled=&quot;true&quot; \/&gt;\r\n          &lt;button id=&quot;btnSample2&quot; label=&quot;\u7121\u52b9&quot; imageMso=&quot;SadFace&quot; size=&quot;large&quot; enabled=&quot;false&quot; \/&gt;\r\n          &lt;button id=&quot;btnSample3&quot; label=&quot;\u52d5\u7684&quot; size=&quot;large&quot; getImage=&quot;btnSample_getImage&quot; getEnabled=&quot;btnSample_getEnabled&quot; \/&gt;\r\n          &lt;button id=&quot;btnSample4&quot; label=&quot;\u5207\u66ff&quot; imageMso=&quot;HappyFace&quot; size=&quot;large&quot; supertip=&quot;\u300c\u52d5\u7684\u300d\u30dc\u30bf\u30f3\u306e\u6709\u52b9\u30fb\u7121\u52b9\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002&quot; onAction=&quot;btnSample_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<p><strong>VBA\u30b3\u30fc\u30c9\uff1a<\/strong><\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPrivate myRibbon As Office.IRibbonUI\r\nPrivate flg As Boolean\r\n\r\nPublic Sub rbnSample_onLoad(ribbon As IRibbonUI)\r\n  Set myRibbon = ribbon\r\n  flg = True\r\nEnd Sub\r\n\r\nPublic Sub btnSample_getEnabled(control As IRibbonControl, ByRef returnedVal)\r\n  returnedVal = flg\r\nEnd Sub\r\n\r\nPublic Sub btnSample_getImage(control As IRibbonControl, ByRef returnedVal)\r\n  Select Case flg\r\n    Case True: returnedVal = &quot;HappyFace&quot;\r\n    Case False: returnedVal = &quot;SadFace&quot;\r\n  End Select\r\nEnd Sub\r\n\r\nPublic Sub btnSample_onAction(control As IRibbonControl)\r\n  flg = Not flg\r\n  myRibbon.InvalidateControl &quot;btnSample3&quot;\r\nEnd Sub<\/pre>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/btn_enabled_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/btn_enabled_01.jpg\" alt=\"\" title=\"btn_enabled_01\" width=\"381\" height=\"233\" class=\"alignnone size-full wp-image-2834\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/btn_enabled_01.jpg 381w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/btn_enabled_01-300x183.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/btn_enabled_01-290x177.jpg 290w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/btn_enabled_01-150x91.jpg 150w\" sizes=\"auto, (max-width: 381px) 100vw, 381px\" \/><\/a><\/p>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u3067\u306f\u30dc\u30bf\u30f3\u306e\u6709\u52b9\u30fb\u7121\u52b9\u306b\u5408\u308f\u305b\u3066<span style=\"color: #ff0000; font-weight: bold;\">getImage<\/span>\u5c5e\u6027\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3067\u30a4\u30e1\u30fc\u30b8\u306e\u5207\u308a\u66ff\u3048\u3082\u884c\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u4f7f\u3044\u5206\u3051\u308b\u306e\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u300c[\u30ea\u30dc\u30f3\u30fb\u30ab\u30b9\u30bf\u30de\u30a4\u30ba]splitButton\u8981\u7d20\u3067\u5927\u91cf\u306b\u3042\u308b\u9805\u76ee\u3092\u4f7f\u3044\u3084\u3059\u304f\u307e\u3068\u3081\u308b\u3002\u300d\u3067\u4e0b\u8a18\u30b3\u30e1\u30f3\u30c8\u3092\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002 \u65e7\u5f0f\u306e\u30b3\u30de\u30f3\u30c9\u30d0\u30fc\u5f0f\u306e\u30d7\u30eb\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u3067\u306f\u3001\u7121\u52b9\u306a\u30e1\u30cb\u30e5\u30fc\u3092\u975e\u8868\u793a(\u30b0\u30ec\u30a4\u30a2\u30a6\u30c8)\u306b\u3059\u308b\u4e8b\u304c [&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":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,1],"tags":[7,11,12],"class_list":["post-2833","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-ribbon","tag-ribbon-2","tag-office-2","tag-12"],"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-JH","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2833","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=2833"}],"version-history":[{"count":2,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2833\/revisions"}],"predecessor-version":[{"id":2836,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2833\/revisions\/2836"}],"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=2833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}