{"id":3476,"date":"2016-01-22T15:44:12","date_gmt":"2016-01-22T07:44:12","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=3476"},"modified":"2016-01-22T15:46:55","modified_gmt":"2016-01-22T07:46:55","slug":"fmx-%e4%bd%bf%e7%94%a8-fmx-%e5%bc%80%e5%8f%91-android-%e7%a8%8b%e5%ba%8f%e7%9a%84%e4%b8%80%e7%82%b9%e5%b0%8f%e4%bd%93%e4%bc%9a","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=3476","title":{"rendered":"[FMX] \u4f7f\u7528 FMX \u5f00\u53d1 Android \u7a0b\u5e8f\u7684\u4e00\u70b9\u5c0f\u4f53\u4f1a"},"content":{"rendered":"<p>1\u3001FMX \u5f00\u53d1 Android \u7a0b\u5e8f\uff0c\u4f60\u53ef\u4ee5\u5229\u7528\u73b0\u6709\u7684\u63a7\u4ef6\u7ec4\u5408\u51fa\u590d\u6742\u7684\u63a7\u4ef6\u6548\u679c\uff0c\u8fd9\u70b9\u5f88\u5f3a\u5927\u3002\u6bd4\u5982\uff0c\u6211\u4eec\u90fd\u77e5\u9053\u9ed8\u8ba4 FMX \u7684 SpeedButton \u548c Button \u7b49\u90fd\u6ca1\u6709\u56fe\u6807\uff0c\u6ca1\u6709\u5173\u7cfb\uff0c\u6211\u4eec\u53ef\u4ee5\u6709100\u79cd\u65b9\u6cd5\u8ba9\u5b83\u62e5\u6709\u56fe\u6807\uff0c\u6700\u7b80\u5355\u7684\u83ab\u8fc7\u4e8e\u76f4\u63a5\u653e\u4e00\u4e2a TImage \u548c TLabel \u4e0a\u53bb\uff0c\u7136\u540e\u8c03\u6574\u4e0b TImage \u548c TLabel \u7684\u5bf9\u9f50\u65b9\u5f0f\uff0c\u4f60\u60f3\u8ba9\u8c01\u5728\u90a3\u513f\uff0c\u8c01\u5c31\u5728\u90a3\u91cc\u3002\u4e3a\u4e86\u4e0d\u5f71\u54cd SpeedButton \u539f\u6765\u7684\u529f\u80fd\uff0c\u8981\u5c06\u6dfb\u52a0\u7684 Image \u548c Label \u7684 HitTest \u8bbe\u7f6e\u4e3a False\uff0c\u4e0d\u63a5\u53d7\u9f20\u6807\u4e8b\u4ef6\u3002<\/p>\n<p><a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2016\/01\/speedbutton.gif\" rel=\"attachment wp-att-3477\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3477 aligncenter\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2016\/01\/speedbutton.gif\" alt=\"speedbutton\" width=\"643\" height=\"211\" \/><\/a><\/p>\n<p>FMX \u7684\u53ef\u89c6\u63a7\u4ef6\u4e0d\u662f VCL \u7684\u53ef\u89c6\u63a7\u4ef6\uff0c\u4f60\u53ea\u80fd\u5728\u7279\u5b9a\u7684\u7ec4\u4ef6\u4e0a\u653e\u7f6e\u5b50\u7ec4\u4ef6\uff0cFMX \u7684\u6240\u6709\u53ef\u89c6\u63a7\u4ef6\u90fd\u53ef\u4ee5\u63a5\u53d7\u5b50\u63a7\u4ef6\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728 Structure View \u4e2d\u8c03\u6574\u63a7\u4ef6\u4e4b\u95f4\u7684\u7236\u5b50\u5173\u7cfb\u3002<\/p>\n<p>2\u3001FMX \u7684\u5e03\u5c40\u8981\u5584\u4e8e\u8fd0\u7528 TGridLayout \u7b49\u5e03\u5c40\u63a7\u4ef6\uff0c\u8bdd\u8bf4\uff0cTGridLayout \u8981\u662f\u80fd\u63d0\u4f9b\u4e0d\u662f\u901a\u8fc7 ItemHeight \u548c ItemWidth \u6765\u63a7\u5236\u5e03\u5c40\u7684\u9ad8\u548c\u5bbd\uff0c\u800c\u662f\u901a\u8fc7\u5217\u6570\u6216\u884c\u6570\u6765\u81ea\u52a8\u8ba1\u7b97\u5c31\u4f1a\u66f4\u65b9\u4fbf\u4e00\u4e9b\u3002<\/p>\n<p>3\u3001\u6709\u4e9b\u4e1c\u897f\u6ce8\u610f\u4e0d\u540c\u7684\u5e73\u53f0\u7684\u6548\u679c\u8fd8\u662f\u4e0d\u540c\u7684\uff0c\u6bd4\u5982 Stroke \u5c5e\u6027\u5728\u4e0d\u540c\u7684\u5e73\u53f0\u4e0a\uff0c\u5448\u73b0\u7684\u6548\u679c\u5e76\u4e0d\u5b8c\u5168\u76f8\u540c\uff0c\u4f7f\u7528\u65f6\uff0c\u6ce8\u610f\u533a\u5206\u548c\u5b9e\u9645\u6d4b\u8bd5\u4e0b\u3002<\/p>\n<p>4\u3001\u52a8\u753b\u548c\u6548\u679c\u7684\u90a3\u4e9b\u4e1c\u897f\uff0c\u5f71\u54cd\u7684\u662f\u5b83\u7684\u7236\u63a7\u4ef6\u3002\u6240\u4ee5\uff0c\u4f60\u53ea\u9700\u8981\u5728\u8fd0\u884c\u65f6\uff0c\u6307\u5b9a\u4e0d\u540c\u7684\u7236\uff0c\u5c31\u53ef\u4ee5\u8ba9\u4e0d\u540c\u7684\u63a7\u4ef6\u8f6e\u6d41\u663e\u793a\u540c\u4e00\u6548\u679c\u3002\u5408\u7406\u7684\u5229\u7528\u8fd9\u4e9b\u4e1c\u897f\uff0c\u53ef\u4ee5\u8ba9\u4f60\u7684\u7a0b\u5e8f\u66f4\u5177\u5438\u5f15\u529b\uff0c\u4f46\u5343\u4e07\u522b\u55a7\u5bbe\u593a\u4e3b\u3002<\/p>\n<p>5\u3001\u597d\u7684\u7f8e\u5de5\u771f\u7684\u5f88\u91cd\u8981\u3002\u6211\u505a\u51fa\u6765\u7684\u4e1c\u897f\uff0c\u53ea\u80fd\u8bf4\u53ef\u4ee5\u770b\uff0c\u5982\u679c\u6709\u597d\u7684\u7f8e\u5de5\uff0c\u4f60\u5269\u4e0b\u7684\u5c31\u662f\u9700\u8981\u521b\u610f\u548c\u7ec4\u5408\u4e86\u3002<\/p>\n<p>6\u3001\u4f7f\u7528 FMX \u7f16\u7a0b\uff0c\u6a2a\u5728\u6211\u4eec\u9762\u524d\u7684\u56f0\u96be\u662f\uff1aIDE\u7684\u7a33\u5b9a\u6027\uff0c\u5f00\u53d1\u8005\u8d44\u6e90\u548c\u521b\u610f\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001FMX \u5f00\u53d1 Android \u7a0b\u5e8f\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[145,69,8,21],"tags":[149],"class_list":["post-3476","post","type-post","status-publish","format-standard","hentry","category-android","category-c-builder","category-delphi","category-misc","tag-fmx"],"views":5644,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3476"}],"version-history":[{"count":3,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3476\/revisions"}],"predecessor-version":[{"id":3480,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3476\/revisions\/3480"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}