{"id":1658,"date":"2018-01-15T23:15:54","date_gmt":"2018-01-15T14:15:54","guid":{"rendered":"https:\/\/www.utsbox.com\/?p=1658"},"modified":"2018-07-04T23:10:23","modified_gmt":"2018-07-04T14:10:23","slug":"%e6%a8%aa%e5%9e%8b%e3%82%b9%e3%83%a9%e3%82%a4%e3%83%80%e3%83%bc%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%ab%e3%81%ae%e3%82%b9%e3%82%bf%e3%82%a4%e3%83%ab%e3%81%ae%e5%a4%89%e6%9b%b4","status":"publish","type":"post","link":"https:\/\/www.utsbox.com\/?p=1658","title":{"rendered":"\u6a2a\u578b\u30b9\u30e9\u30a4\u30c0\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30b9\u30bf\u30a4\u30eb\u306e\u5909\u66f4"},"content":{"rendered":"<h1>\u6a2a\u578b\u30b9\u30e9\u30a4\u30c0\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30b9\u30bf\u30a4\u30eb\u306e\u5909\u66f4<\/h1>\n<p>\u300c<a href=\"https:\/\/www.utsbox.com\/?p=1646\">\u6a2a\u578b\u30b9\u30e9\u30a4\u30c0\u30fc\u306e\u5b9f\u88c5<\/a>\u300d\u3067\u5b9f\u88c5\u3057\u305f\u30b9\u30e9\u30a4\u30c0\u30fc\u306f\u30cf\u30f3\u30c9\u30eb\u304c\u53f3\u306b\u3042\u308b\u6642\u306b1.0\u3001\u5de6\u306b\u3042\u308b\u6642\u306b0.0\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\nUI\u3092\u4f5c\u6210\u3059\u308b\u4e0a\u3067\u3001\u9006\u306e\u65b9\u5411(\u30cf\u30f3\u30c9\u30eb\u304c\u5de6\u306b\u3042\u308b\u6642\u306b0.0\u3001\u53f3\u306b\u3042\u308b\u6642\u306b1.0)\u306b\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u306f\u3001CHorizontalSlider\u30af\u30e9\u30b9\u306esetStyle()\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002setStyle()\u95a2\u6570\u306b\u306f\u4e0b\u8a18\u306e\u3069\u3061\u3089\u304b\u3092\u5f15\u6570\u3068\u3057\u3066\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<table>\n<tr>\n<th>\u5f15\u6570<\/th>\n<th>\u610f\u5473<\/th>\n<\/tr>\n<tr>\n<td>kRight | kHorizontal<\/td>\n<td>\u30b9\u30e9\u30a4\u30c0\u30fc\u30cf\u30f3\u30c9\u30eb\u304c\u53f3\u306b\u3042\u308b\u6642\u306b1.0\u3001\u5de6\u306b\u3042\u308b\u6642\u306b0.0\u3068\u306a\u308b (\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u3053\u3061\u3089)<\/td>\n<\/tr>\n<tr>\n<td>kLeft | kHorizontal<\/td>\n<td>\u30b9\u30e9\u30a4\u30c0\u30fc\u30cf\u30f3\u30c9\u30eb\u304c\u5de6\u306b\u3042\u308b\u6642\u306b0.0\u3001\u53f3\u306b\u3042\u308b\u6642\u306b1.0\u3068\u306a\u308b<\/td>\n<\/tr>\n<\/table>\n<p><!--more--><br \/>\n\u3010guieditor.cpp\u3011<br \/>\n[crayon mark=&#8221;23-24&#8243;]<br \/>\nCControl* MyVSTGUIEditor::createHSlider(ParamID tag, int x, int y)<br \/>\n{<br \/>\n\t\/\/ \u6a2a\u578b\u30b9\u30e9\u30a4\u30c0\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u4f5c\u6210<\/p>\n<p>\t\/\/ \u307e\u305a\u306f\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080<br \/>\n\tCBitmap *backbmp = new CBitmap(&#8220;slider_h.png&#8221;);<br \/>\n\tCBitmap *handlebmp = new CBitmap(&#8220;slider_h_handle.png&#8221;);<\/p>\n<p>\t\/\/ \u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30b5\u30a4\u30ba\u3092\u53d6\u5f97\u3059\u308b<br \/>\n\tCRect  size;<br \/>\n\tsize(0, 0, backbmp->getWidth(), backbmp->getHeight());<br \/>\n\tsize.offset(x, y);   \/\/ \u4f4d\u7f6e\u3092\u8a2d\u5b9a(frame\u306e\u5de6\u4e0a\u304c0,0\u3068\u306a\u308b)<\/p>\n<p>\t\/\/ \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u4f5c\u6210<br \/>\n\t\/\/ \u30b9\u30e9\u30a4\u30c0\u30fc\u30cf\u30f3\u30c9\u30eb\u306f\u30b9\u30e9\u30a4\u30c0\u30fc\u80cc\u666f\u753b\u50cf\u306e\u4e0a\u304b\u3089\u4e0b\u307e\u3067\u52d5\u304b\u306a\u3044\u3088\u3046\u3001<br \/>\n\t\/\/ \u82e5\u5e72\u306e\u30de\u30fc\u30b8\u30f3\u3092\u6301\u305f\u305b\u308b\u3002\u3053\u306e\u30de\u30fc\u30b8\u30f3\u306f\u753b\u50cf\u306b\u3088\u3063\u3066\u5909\u308f\u308b<br \/>\n\tint bmpmargin = 1;<br \/>\n\tCHorizontalSlider* control = new CHorizontalSlider(size, this, tag,<br \/>\n\t                                   x + bmpmargin,<br \/>\n\t                                   x + backbmp->getWidth() &#8211; (handlebmp->getWidth() + bmpmargin),<br \/>\n\t                                   handlebmp, backbmp);<\/p>\n<p>\t\/\/ \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u5909\u66f4\u3057\u3001\u30cf\u30f3\u30c9\u30eb\u306e\u52d5\u304d\u3092\u5de6\u304b\u3089\u53f3\u306b<br \/>\n\tcontrol->setStyle(kLeft | kHorizontal);<\/p>\n<p>\t\/\/ \u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u73fe\u5728\u306e\u5024\u3092\u53d6\u5f97\u3057\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u53cd\u6620<br \/>\n\tParamValue value = controller->getParamNormalized(tag);<br \/>\n\tcontrol->setValueNormalized(value);<\/p>\n<p>\t\/\/ \u30b9\u30e9\u30a4\u30c0\u30fc\u3092\u30d5\u30ec\u30fc\u30e0\u306b\u767b\u9332<br \/>\n\tframe->addView(control);<\/p>\n<p>\t\/\/ \u8aad\u307f\u8fbc\u3093\u3060\u753b\u50cf\u306f\u5fd8\u308c\u305a\u89e3\u653e<br \/>\n\tbackbmp->forget();<br \/>\n\thandlebmp->forget();<\/p>\n<p>\t\/\/ \u4f5c\u6210\u3057\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30dd\u30a4\u30f3\u30bf\u3092\u8fd4\u3059<br \/>\n\treturn control;<br \/>\n}<br \/>\n[\/crayon]<\/p>\n<p>CHorizontalSlider\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306b\u6307\u5b9a\u3059\u308b\u300c\u6700\u5927\u6642\u306e\u30cf\u30f3\u30c9\u30eb\u4f4d\u7f6e\u300d\u300c\u6700\u5c0f\u6642\u306e\u30cf\u30f3\u30c9\u30eb\u4f4d\u7f6e\u300d(<a href=\"https:\/\/www.utsbox.com\/?p=1646\">\u6a2a\u578b\u30b9\u30e9\u30a4\u30c0\u30fc\u306e\u5b9f\u88c5<\/a> \u53c2\u7167)\u306f\u5909\u66f4\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067\u3059\u3002<br \/>\n\u4e0a\u8a18\u4ee5\u5916\u306b\u3082VST3.6\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u304c\u3042\u308a\u307e\u3059\u3002\u4e0b\u8a18\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/www.utsbox.com\/?page_id=1316\">\u306f\u3058\u3081\u3066\u306eVST3\u30d7\u30e9\u30b0\u30a4\u30f3\u4f5c\u308a<\/a><\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u8cea\u554f\u3084\u3054\u6307\u6458\u306f\u30b3\u30e1\u30f3\u30c8\u6b04\u3084<a href=\"https:\/\/jbbs.shitaraba.net\/computer\/42917\/\" title=\"\u63b2\u793a\u677f\" target=\"_blank\" rel=\"noopener\">\u63b2\u793a\u677f<\/a>\u3001<a href=\"https:\/\/twitter.com\/vstcpp\">Twitter<\/a>\u3067\u3044\u305f\u3060\u3051\u3070\u3068\u304a\u3082\u3044\u307e\u3059\u3002<\/p>\n<p>\u25a0<a href=\"https:\/\/jbbs.shitaraba.net\/computer\/42917\/\" title=\"\u63b2\u793a\u677f\" target=\"_blank\" rel=\"noopener\">\u63b2\u793a\u677f<\/a><br \/>\n\u25a0Twitter\u30a2\u30ab\u30a6\u30f3\u30c8\uff1a@vstcpp\u3000\u3000\u3000URL\uff1a<a href=\"https:\/\/twitter.com\/vstcpp\">https:\/\/twitter.com\/vstcpp<\/\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6a2a\u578b\u30b9\u30e9\u30a4\u30c0\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30b9\u30bf\u30a4\u30eb\u306e\u5909\u66f4 \u300c\u6a2a\u578b\u30b9\u30e9\u30a4\u30c0\u30fc\u306e\u5b9f\u88c5\u300d\u3067\u5b9f\u88c5\u3057\u305f\u30b9\u30e9\u30a4\u30c0\u30fc\u306f\u30cf\u30f3\u30c9\u30eb\u304c\u53f3\u306b\u3042\u308b\u6642\u306b1.0\u3001\u5de6\u306b\u3042\u308b\u6642\u306b0.0\u3068\u306a\u308a\u307e\u3059\u3002 UI\u3092\u4f5c\u6210\u3059\u308b\u4e0a\u3067\u3001\u9006\u306e\u65b9\u5411(\u30cf\u30f3\u30c9\u30eb\u304c\u5de6\u306b\u3042\u308b\u6642\u306b0.0\u3001\u53f3\u306b\u3042\u308b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[17],"tags":[],"class_list":["post-1658","post","type-post","status-publish","format-standard","hentry","category-vst3"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p5fXUX-qK","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/1658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1658"}],"version-history":[{"count":3,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/1658\/revisions"}],"predecessor-version":[{"id":2268,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/1658\/revisions\/2268"}],"wp:attachment":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}