\u3082\u3068\u3082\u3068\u901a\u5e38\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u4f5c\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4f5c\u308a\u76f4\u3057\u3092\u8003\u3048\u3066\u3044\u308b\u6bb5\u968e\u3067\u6a19\u6e96\u6a5f\u80fd\u3068\u3057\u3066GUI\u3092\u4f5c\u308b\u4e8b\u304c\u3067\u304d\u308b\u3053\u3068\u306b\u6c17\u3065\u304f\u3002<\/p>\n\n\n\n
\u8a66\u3057\u306b\u4f5c\u3063\u3066\u307f\u308b\u304c\u3001\u6163\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3068\u5229\u7528\u65b9\u6cd5\u304c\u30a4\u30de\u30a4\u30c1\u7406\u89e3\u3067\u304d\u305a\u3002<\/p>\n\n\n\n
\u901a\u5e38\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5834\u5408\u306f\u95a2\u6570\u5316\u3057\u3066\u5fc5\u8981\u306a\u5024\u3092\u4e0e\u3048\u308b\u3053\u3068\u3067\u30dc\u30bf\u30f3\u7b49\u304c\u4f5c\u6210\u3067\u304d\u308b\u305f\u3081\u306b\u5de5\u6570\u304c\u9055\u3044\u3059\u304e\u308b\u3002<\/p>\n\n\n\n
\u95a2\u6570\u5316\u3067\u304d\u305d\u3046\u306a\u4e8b\u306b\u6c17\u3065\u304f\u3082\u69cb\u9020\u4f53\u5909\u6570struct\u306e\u53d7\u3051\u6e21\u3057\u304c\u4e0a\u624b\u304f\u3067\u304d\u305a\u306b\u9813\u632b\u3002<\/p>\n\n\n\n
\u30cd\u30c3\u30c8\u4e0a\u306b\u3082MT4\u3067GUI\u3092\u4f5c\u308b\u3088\u3046\u306a\u8cc7\u6599\u306f\u5c11\u306a\u304b\u3063\u305f\u305f\u3081\u5f8c\u56de\u3057\u3078\u3002<\/p>\n\n\n\n
\u307e\u3060\u5168\u7136\u7406\u89e3\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u304c\u3053\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u8a18\u8ff0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n
Create_LabelSymbol\u306e\u307b\u3046\u304c\u4e00\u822c\u7684\u306b\u30cd\u30c3\u30c8\u4e0a\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u66f8\u5f0f\u3001Create_BtnTrapRepeat\u306e\u307b\u3046\u304c\u7c21\u7565\u5316\u3059\u308b\u305f\u3081\u306b\u8a66\u884c\u932f\u8aa4\u3092\u3057\u3066\u3044\u308b\u5f62\u3002<\/p>\n\n\n\n
class CPanelDialog : public CAppDialog\n {\nprivate:\n \n CLabel m_LabelSymbol;\n CButton m_BtnTrapRepeat; \n\npublic:\n CPanelDialog(void);\n ~CPanelDialog(void);\n virtual bool Create(const long chart,const string name,const int subwin,const int x1,const int y1,const int x2,const int y2);\n\nprotected:\n bool Create_LabelSymbol(void);\n bool Create_BtnTrapRepeat(string name1, string name2, string text, double x1, double y1, double x2,double y2);\n };\n\nbool CPanelDialog::Create(const long chart,const string name,const int subwin,const int x1,const int y1,const int x2,const int y2)\n {\n if(!CAppDialog::Create(chart,name,subwin,x1,y1,x2,y2)) return(false);\n if( !Create_LabelSymbol())return (false);\n if(!Create_BtnTrapRepeat(\n "m_BtnTrapRepeat", "__BtnTrapRepeat", "Trap",\n indent_left,\n indent_top+full_height+controls_gap_y,\n indent_left+full_width,\n indent_top+full_height+controls_gap_y+full_height\n )) return(false);\n return(true);\n }\n\nCPanelDialog AppWindow;\n\nbool CPanelDialog::Create_LabelSymbol(void)\n{\n int x1=indent_left;\n int y1=indent_top;\n int x2=x1+full_width;\n int y2=y1+full_height;\n \n if( !m_LabelSymbol.Create( m_chart_id, m_name + "m_LabelSymbol", m_subwin, x1, y1, x2, y2 ) ) return false;\n if( !m_LabelSymbol.Text( StringConcatenate(Symbol()," ",PERIOD_CURRENT)) ) return false;\n if( !Add( m_LabelSymbol ) ) return false;\n \n return true;\n}\n\nbool CPanelDialog::Create_BtnTrapRepeat(string name1, string name2, string text, double x1, double y1, double x2,double y2)\n {\n \n if(!m_BtnTrapRepeat.Create(0,name2,0,x1,y1,x2,y2)) return(false);\n if(!m_BtnTrapRepeat.Text(text)) return(false);\n if(!Add(m_BtnTrapRepeat)) return(false);\n\n return(true);\n }<\/code><\/pre><\/div>\n\n\n\n\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u529b\u6280\u3067\u4e26\u3079\u3066\u3044\u304f\u304b\u3001\u8a18\u8ff0\u3059\u308b\u884c\u6570\u304c\u9055\u3044\u3059\u304e\u308b\u305f\u3081\u3082\u3046\u5c11\u3057\u52b9\u7387\u7684\u306a\u3084\u308a\u65b9\u304c\u5fc5\u8981\u306b\u601d\u3048\u307e\u3059\u3002<\/p>\n\n\n\n
<\/p>\n\n\n\n
\u30aa\u30d6\u30b8\u30a7\u30af\u30c8(\u30dc\u30bf\u30f3\u3084\u30e9\u30d9\u30eb)\u306e\u4f5c\u308a\u65b9<\/span><\/h3>\n\n\n\n\u82e6\u52b4\u306e\u672b\u7c21\u5358\u306a\u89e3\u6c7a\u7b56\u306f\u3059\u3050\u306b\u898b\u3064\u304b\u3089\u306a\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u4f5c\u6210\u3057\u3066\u3044\u304f\u3053\u3068\u306b\u3002<\/p>\n\n\n\n
\u3082\u3068\u3082\u3068\u9014\u4e2d\u307e\u3067\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u4f5c\u6210\u3057\u3066\u3044\u3063\u305f\u305f\u3081\u3064\u304e\u8db3\u3059\u5f62\u3067\u3059\u3002<\/p>\n\n\n\n
\u6700\u7d42\u7684\u306a\u914d\u7f6e\u306b\u3064\u3044\u3066\u306f\u5229\u7528\u3057\u306a\u304c\u3089\u4f7f\u3044\u3084\u3059\u3055\u3092\u8003\u3048\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n
\u3053\u3046\u3044\u3046\u611f\u3058\u3067\u95a2\u6570\u3092\u4f5c\u3063\u3066\u304a\u304f\u3068\u3042\u3068\u306f\u5fc5\u8981\u306a\u5024\u3092\u5f15\u6570\u3068\u3057\u3066\u6e21\u3059\u3060\u3051\u3067\u4f5c\u6210\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n
void CreateButton(string name, string label, int x, int y, int width, int height,\n color bgColor = C'236,233,216', color textColor = clrBlack, int anchor = CORNER_RIGHT_UPPER)\n {\n ObjectCreate(name, OBJ_BUTTON, 0, 0, 0);\n ObjectSet(name,OBJPROP_XDISTANCE,x+width);\n ObjectSet(name,OBJPROP_YDISTANCE,y);\n ObjectSet(name,OBJPROP_WIDTH,x);\n ObjectSet(name,OBJPROP_XSIZE,width);\n ObjectSet(name,OBJPROP_YSIZE,height);\n ObjectSet(name, OBJPROP_CORNER, anchor);\n ObjectSet(name, OBJPROP_BGCOLOR, bgColor);\n ObjectSet(name, OBJPROP_COLOR, textColor);\n ObjectSet(name, OBJPROP_ZORDER, 100);\n ObjectSetText(name, label, FontSize);\n }\n\nvoid CreateLabel(string name, string label, int x, int y, int width, int height,\n color bgColor = C'236,233,216', color textColor = clrBlack, int anchor = CORNER_RIGHT_UPPER)\n {\n ObjectCreate(name, OBJ_LABEL, 0, 0, 0);\n ObjectSet(name,OBJPROP_XDISTANCE,x+width);\n ObjectSet(name,OBJPROP_YDISTANCE,y);\n ObjectSet(name,OBJPROP_WIDTH,x);\n ObjectSet(name,OBJPROP_XSIZE,width);\n ObjectSet(name,OBJPROP_YSIZE,height);\n ObjectSet(name, OBJPROP_CORNER, anchor);\n ObjectSet(name, OBJPROP_BGCOLOR, bgColor);\n ObjectSet(name, OBJPROP_COLOR, textColor);\n ObjectSet(name, OBJPROP_ZORDER, 100);\n ObjectSetText(name, label, FontSize);\n }<\/code><\/pre><\/div>\n\n\n\n\u4eca\u56de\u306e\u307e\u3068\u3081<\/span><\/h2>\n\n\n\n\u6700\u521d\u306b\u3082\u66f8\u304d\u307e\u3057\u305f\u304c\u6a5f\u80fd\u306e\u6d17\u3044\u51fa\u3057\u3068GUI\u306e\u8a2d\u8a08\u306f\u5fc5\u305a\u6700\u521d\u306b\u3084\u308d\u3046\u3067\u3059\u3002
\u5f8c\u304b\u3089GUI\u306e\u914d\u7f6e\u3092\u5909\u3048\u308b\u3053\u3068\u306f\u60f3\u50cf\u3092\u7d76\u3059\u308b\u304f\u3089\u3044\u306b\u82e6\u75db\u3067\u3059\u3002
\u307e\u305f\u6b21\u56de\u306b\u7d9a\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u76ee\u6b211 \u6700\u521d\u306b\u8a08\u753b\u3057\u3066\u304a\u304d\u305f\u3044\u3053\u30682 \u5fc5<\/p>\n","protected":false},"author":1,"featured_media":218,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[12,37],"tags":[30,29,34,18,35],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.tradeatoz.biz\/wp-content\/uploads\/2021\/03\/image-13.png?fit=911%2C1333&ssl=1","jetpack_publicize_connections":[],"_links":{"self":[{"href":"http:\/\/tradeatoz.biz.s3-website-ap-northeast-1.amazonaws.com\/wp-json\/wp\/v2\/posts\/213"}],"collection":[{"href":"http:\/\/tradeatoz.biz.s3-website-ap-northeast-1.amazonaws.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tradeatoz.biz.s3-website-ap-northeast-1.amazonaws.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tradeatoz.biz.s3-website-ap-northeast-1.amazonaws.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tradeatoz.biz.s3-website-ap-northeast-1.amazonaws.com\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":0,"href":"http:\/\/tradeatoz.biz.s3-website-ap-northeast-1.amazonaws.com\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/tradeatoz.biz.s3-website-ap-northeast-1.amazonaws.com\/wp-json\/wp\/v2\/media\/218"}],"wp:attachment":[{"href":"http:\/\/tradeatoz.biz.s3-website-ap-northeast-1.amazonaws.com\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tradeatoz.biz.s3-website-ap-northeast-1.amazonaws.com\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tradeatoz.biz.s3-website-ap-northeast-1.amazonaws.com\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}