{"id":4761,"date":"2017-10-28T23:22:11","date_gmt":"2017-10-28T15:22:11","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=4761"},"modified":"2017-10-28T23:26:58","modified_gmt":"2017-10-28T15:26:58","slug":"fmx-qdac-%e6%96%b0%e5%a2%9e-fmx-virtualtreeview-%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=4761","title":{"rendered":"[FMX] QDAC \u65b0\u589e FMX VirtualTreeView \u5b9e\u73b0"},"content":{"rendered":"<p>\u597d\u5427\uff0c\u6211\u672c\u6765\u4e0d\u60f3\u5728 QDAC \u91cc\u6dfb\u52a0 UI \u76f8\u5173\u7684\u4e1c\u897f\uff0c\u4e0d\u8fc7 FMX \u7684\u6811\u5b9e\u5728\u8ba9\u4eba\u4e0d\u723d\uff0c\u7b49 VirtualTreeView \u7684 FMX \u7248\u4e5f\u7b49\u4e0d\u5230\uff0cFMX \u7684\u95ed\u6e90\u5b9e\u73b0\u5230\u662f\u6709\u4e00\u4e9b\uff0c\u4f46\u6839\u636e\u7fa4\u53cb\u7684\u53cd\u9988\uff0c\u4e5f\u5c31\u90a3\u6837\u5427\u3002\u6240\u4ee5\u72e0\u72e0\u5fc3\uff0c\u54ac\u54ac\u7259\uff0c\u82b1\u4e86\u8fd1\u4e00\u5468\u7684\u65f6\u95f4\uff0c\u81ea\u5df1\u5199\u4e86\u4e00\u4e2a\uff0c\u547d\u540d\u4e3a TQVirtualTreeView\uff0c\u81ea\u5df1\u6d4b\u8bd5\u7684\u7ed3\u679c\uff0c\u6548\u7387\u8fd8\u662f\u5f88\u6ee1\u610f\u7684\uff0c\u4ee5\u540e\u5c31\u6253\u7b97\u7528\u5b83\u6765\u5b9e\u73b0\u4e00\u4e9b\u6811\u5f62\u7684\u4e1c\u897f\u4e86\u3002<\/p>\n<p>\u4e3a\u4e86\u8ba9\u5927\u5bb6\u66f4\u597d\u7684\u7528\u8d77\u6765\uff0c\u6211\u8fd9\u91cc\u5c06 TQVirtualTreeView \u7684\u4f7f\u7528\u4e2d\u7684\u4e00\u4e9b\u57fa\u672c\u4e8b\u9879\u7b80\u5355\u7ed9\u5927\u5bb6\u8bf4\u4e0b\uff1a<\/p>\n<ol>\n<li>\u8bbe\u8ba1\u4e2d\u5927\u91cf\u4f7f\u7528\u4e86\u63a5\u53e3\uff0c\u6240\u4ee5\u4f60\u9700\u8981\u660e\u767d\u63a5\u53e3\u7684\u4f7f\u7528\u65b9\u5f0f\u53ca\u89c4\u5219\uff1b<\/li>\n<li>\u8bbe\u8ba1\u4e0a\u5206\u4e86\u4e09\u5c42\uff1a\n<ul>\n<li>\u6570\u636e\u7ba1\u7406\u5c42\uff0c\u7528\u6765\u63a7\u5236\u6570\u636e\u5185\u5bb9\u7684\u5b58\u8d2e\u548c\u7ba1\u7406\uff0c\u8fd9\u5757\u5b9e\u73b0\u662f\u4f7f\u7528\u8005\u7684\u8d23\u4efb\uff1b<\/li>\n<li>\u6811\u5f62\u7ed3\u6784\u7ba1\u7406\u5c42\uff0c\u7528\u4e8e\u63a7\u5236\u6811\u7684\u663e\u793a\u5c42\u7ea7\u53ca\u8981\u5b9e\u9645\u5448\u73b0\u7ed9\u7528\u6237\u7684\u5185\u5bb9\uff0c\u8fd9\u90e8\u5206\u662f TQVirtualTreeView \u7684\u8d23\u4efb\uff1b<\/li>\n<li>\u56fe\u5f62\u7ed8\u5236\u5c42\uff0c\u7528\u4e8e\u5b9e\u9645\u7ed8\u5236\u6570\u636e\u5448\u73b0\u7ed9\u7528\u6237\u7684\u6837\u5b50\uff0c\u8fd9\uff1b<\/li>\n<\/ul>\n<\/li>\n<li>\u4e09\u5c42\u4e4b\u95f4\uff0c\u901a\u8fc7\u63a5\u53e3\u8fdb\u884c\u9002\u914d\uff0c\u8fd9\u4e2a\u5927\u5bb6\u53ef\u4ee5\u770b qdac_fmx_vtdbadapter \u5355\u5143\uff0c\u5b83\u5b9e\u73b0\u4e86\u4e0e\u6570\u636e\u96c6\u5b57\u6bb5\u4e4b\u95f4\u7684\u9ed8\u8ba4\u9002\u914d\uff0c\u4ee5\u663e\u793a\u6570\u636e\u96c6\u4e2d\u7684\u6570\u636e\uff1a\n<ul>\n<li>\u6570\u636e\u7ba1\u7406\u5c42\u548c\u6811\u5f62\u7ed3\u6784\u7ba1\u7406\u5c42\u4e4b\u95f4\uff0c\u901a\u8fc7 IQVTNodeData \u63a5\u53e3\uff0c\u5efa\u7acb\u884c\u4e4b\u95f4\u7684\u5c42\u6b21\u5173\u7cfb\uff08\u9ed8\u8ba4\u5b9e\u73b0\u662f TQVTNode\uff09\uff0c\u901a\u8fc7 IQVTCellData \u63a5\u53e3\uff0c\u5efa\u7acb\u5355\u5143\u683c\u6570\u636e\u4e0e\u7ed3\u70b9\u4e4b\u95f4\u7684\u5173\u7cfb\uff08\u9ed8\u8ba4\u5b9e\u73b0\u662f TQVTDefaultCellData\uff09\uff1b\u4e3a\u4e86\u7b80\u5316\u5f00\u53d1\u6a21\u5f0f\uff0cTQVTNode \u6709\u4e00\u4e2a Exts \u5c5e\u6027\uff0c\u53ef\u4ee5\u989d\u5916\u9644\u52a0\u5176\u5b83\u7684\u63a5\u53e3\u6570\u636e\uff0c\u5e76\u7edf\u4e00\u8fdb\u884c\u7ba1\u7406\uff0cTQVirtualTreeView \u4e5f\u652f\u6301\u901a\u8fc7\u4e00\u4e9b\u4e8b\u4ef6\uff0c\u5efa\u7acb\u884c\u4e4b\u95f4\u7684\u5c42\u6b21\u5173\u7cfb\u800c\u4e0d\u9700\u8981\u7ee7\u627f TQVTNode \u5b9e\u73b0\u3002<\/li>\n<li>\u6811\u5f62\u7ed3\u6784\u7ba1\u7406\u5c42\u4e0e\u56fe\u5f62\u7ed8\u5236\u5c42\u4e4b\u95f4\uff0c\u4f7f\u7528 IQVTDrawer \u63a5\u53e3\uff0c\u6267\u884c\u5b9e\u9645\u7684\u7ed8\u5236\u8fc7\u7a0b\uff1b\u6811\u7684\u6bcf\u4e00\u5217\u90fd\u6709\u4e00\u4e2a DrawerType \u5c5e\u6027\u6307\u5b9a\u4e86\u5217\u7684\u9ed8\u8ba4\u7ed8\u5236\u5668\u7c7b\u578b\uff0c\u800c TQVirtualTreeView \u4e5f\u63d0\u4f9b OnGetCellDrawer \u4e8b\u4ef6\uff0c\u4ee5\u5b9a\u5236\u81ea\u5df1\u7684\u7ed8\u5236\u5668\u5b9e\u73b0\u3002<\/li>\n<li>IQVTCellData \u7684\u5b9e\u73b0\u4e5f\u53ef\u4ee5\u540c\u65f6\u5b9e\u73b0 IQVTDrawable\/IQVTTextDrawable \u7b49\u63a5\u53e3\uff0c\u6765\u5bf9\u7ed8\u56fe\u7684\u8fc7\u7a0b\u8fdb\u884c\u4e00\u4e9b\u989d\u5916\u7684\u63a7\u5236\uff0c\u5f53\u7136\u8fd9\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u7ed8\u5236\u5668\u7684\u5b9e\u73b0\u903b\u8f91\u3002\u9ed8\u8ba4\u7684\u5b9e\u73b0\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u5b83\u4eec\u5b9a\u5236\u586b\u5145\u3001\u753b\u7b14\u3001\u6587\u672c\u8bbe\u7f6e\u7b49\u5185\u5bb9\uff1b<\/li>\n<li>\u5bf9\u4e8e\u4e0d\u540c\u7684\u7ed8\u5236\u5668\uff0c\u53ef\u80fd\u9700\u8981\u4f60\u5b9e\u73b0\u989d\u5916\u7684\u63a5\u53e3\u4ee5\u63d0\u4f9b\u7ed8\u5236\u9700\u8981\u7684\u6570\u636e\uff0c\u6bd4\u5982\u590d\u9009\u6846\u7ed8\u5236\u5668\u9700\u8981\u4f60\u5b9e\u73b0 IQVTCheckCellData \u63a5\u53e3\u4ee5\u4fbf\u7ed8\u5236\u5668\u83b7\u53d6\u8981\u7ed8\u5236\u7684\u590d\u9009\u6846\u72b6\u6001\uff0c\u8fdb\u5ea6\u6761\u7ed8\u5236\u5668\u9700\u8981\u4f60\u5b9e\u73b0 IQVTProgressCellData \u63a5\u53e3\uff0c\u4ee5\u4fbf\u83b7\u53d6\u8fdb\u5ea6\u6570\u636e\uff1b<\/li>\n<\/ul>\n<\/li>\n<li>TQVirtualTreeView \u652f\u6301\u5355\u5143\u683c\u5185\u5bb9\u7684\u7f16\u8f91\uff0c\u4f46\u5e76\u4ee3\u8868\u5b83\u81ea\u8eab\u5b9e\u73b0\u4e86\u7f16\u8f91\u529f\u80fd\u3002\u60a8\u9700\u8981\u81ea\u5df1\u5b9e\u73b0 IQVTInplaceEditor \u63a5\u53e3\u4e0e\u5b83\u8fdb\u884c\u9002\u914d\uff0c\u5b83\u4f1a\u5728\u8981\u8fdb\u5165\u7f16\u8f91\u72b6\u6001\u65f6\uff0c\u8c03\u7528 OnGetCellEditor \u51fd\u6570\u8bf7\u6c42\u4f60\u8fd4\u56de\u5bf9\u5e94\u7684\u7f16\u8f91\u5668\u3002\u7136\u540e\u5b83\u4f1a\u8d1f\u8d23\u8c03\u7528 IQVTInplaceEditor \u7684\u76f8\u5173\u63a5\u53e3\uff0c\u63a7\u5236\u663e\u793a\u7684\u4f4d\u7f6e\u3002\u4f46\u5185\u5bb9\u548c\u66f4\u65b0\u7269\u7406\u6570\u636e\uff0c\u4ecd\u662f\u9700\u8981\u4f60\u81ea\u5df1\u8d1f\u8d23\u7684\u5185\u5bb9\u3002<\/li>\n<\/ol>\n<p>\u597d\u4e86\uff0c\u7b80\u5355\u7684\u5c31\u8bf4\u8fd9\u4e9b\u3002\u66f4\u591a\u7684\u5185\u5bb9\uff0c\u9700\u8981\u4f60\u81ea\u5df1\u53bb\u6316\u6398\u3002\u7406\u8bba\u4e0a\uff0cTQVirtualTreeView \u652f\u6301\u5168\u5e73\u53f0\uff0c\u800c\u4e14\u793a\u4f8b\u6211\u4e5f\u6d4b\u8bd5\u5168\u5e73\u53f0\u7f16\u8bd1\u6ca1\u5565\u95ee\u9898\u3002<\/p>\n<p>\u8001\u4e60\u60ef\uff0c\u6ca1\u6709\u5b89\u88c5\u5305\uff0c\u76f4\u63a5\u5f15\u7528\u5355\u5143\u52a8\u6001\u521b\u5efa\uff0c\u5982\u679c\u60f3\u9759\u6001\u62d6\u653e\uff0c\u81ea\u5df1\u505a\u4e2a\u7ec4\u4ef6\u5b89\u88c5\u5305\u5427\u3002<\/p>\n<p>\u6700\u540e\uff0c\u53d1\u51e0\u4e2a\u6548\u679c\u56fe\u5427\uff0c\u6e90\u7801\u8bf7\u4ece SVN \/ GIT \u4e2d\u81ea\u884c\u68c0\u51fa\u3002<\/p>\n<p><a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/10\/fmxvt1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4762\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/10\/fmxvt1.png\" alt=\"\" width=\"656\" height=\"519\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/10\/fmxvt1.png 656w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/10\/fmxvt1-300x237.png 300w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/a> <a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/10\/fmxvt2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4763\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/10\/fmxvt2.png\" alt=\"\" width=\"656\" height=\"519\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/10\/fmxvt2.png 656w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/10\/fmxvt2-300x237.png 300w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/a> <a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/10\/fmxvt3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4764\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/10\/fmxvt3.png\" alt=\"\" width=\"656\" height=\"519\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/10\/fmxvt3.png 656w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/10\/fmxvt3-300x237.png 300w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u597d\u5427\uff0c\u6211\u672c\u6765\u4e0d\u60f3\u5728 QDAC \u91cc\u6dfb\u52a0 U [&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":[69,8,9],"tags":[149,739,740],"class_list":["post-4761","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-qdac","tag-fmx","tag-virtualtreeview","tag-740"],"views":5350,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4761","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=4761"}],"version-history":[{"count":2,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4761\/revisions"}],"predecessor-version":[{"id":4766,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4761\/revisions\/4766"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}