{"id":2034,"date":"2015-02-10T18:10:15","date_gmt":"2015-02-10T10:10:15","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=2034"},"modified":"2015-02-10T18:10:15","modified_gmt":"2015-02-10T10:10:15","slug":"delphic-builder-%e6%94%af%e6%8c%81%e8%a7%a6%e6%8e%a7%e6%93%8d%e4%bd%9c%e6%ad%a5%e9%aa%a4","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=2034","title":{"rendered":"Delphi\/C++ Builder \u652f\u6301\u89e6\u63a7\u64cd\u4f5c\u6b65\u9aa4"},"content":{"rendered":"<p>1\u3001\u5728\u5f53\u524d\u7a97\u4f53\u4e0a\u6dfb\u52a0\u4e00\u4e2a TGestureManager \u5bf9\u8c61\u3002<\/p>\n<p>2\u3001\u9009\u62e9\u8bbe\u7f6e\u8981\u652f\u6301\u89e6\u63a7\u7684\u63a7\u4ef6<\/p>\n<p style=\"padding-left: 30px;\">2.1\u3001\u627e\u5230 Touch \u5c5e\u6027<\/p>\n<p style=\"padding-left: 60px;\">2.1.1\u3001\u4fee\u6539GestureManager \u5c5e\u6027\u4e3a\u7b2c 1 \u6b65\u6dfb\u52a0\u7684 TGestureManager \u5bf9\u8c61\uff1b<\/p>\n<p style=\"padding-left: 60px;\">2.1.2\u3001\u8bbe\u7f6eGestures \u6216 InteractiveGestures \u4e2d\u81ea\u5df1\u652f\u6301\u7684\u89e6\u63a7\u64cd\u4f5c\u3002<\/p>\n<p style=\"padding-left: 30px;\">2.2\u3001\u5207\u6362\u5230\u4e8b\u4ef6\u9875\uff0c\u627e\u5230 OnGesture \u4e8b\u4ef6\uff0c\u53cc\u51fb\u8fdb\u5165\u4e8b\u4ef6\u5904\u7406\u4ee3\u7801\uff1a<\/p>\n<pre class=\"lang:delphi decode:true \">procedure TForm1.TabControl1Gesture(Sender: TObject;\r\n  const EventInfo: TGestureEventInfo; var Handled: Boolean);\r\nbegin\r\nend;<\/pre>\n<p style=\"padding-left: 30px;\">\u00a02.3\u3001\u7f16\u5199\u81ea\u5df1\u7684\u5904\u7406\u4ee3\u7801\uff0cEventInfo \u53c2\u6570\u7684\u5b9a\u4e49\u5982\u4e0b\uff1a<\/p>\n<pre class=\"lang:delphi decode:true \">TGestureEventInfo = record\r\n    GestureID: TGestureID;\r\n    Location: TPointF;\r\n    Flags: TInteractiveGestureFlags;\r\n    Angle: Double;\r\n    InertiaVector: TPointF;\r\n    Distance: Integer;\r\n    TapLocation: TPointF;\r\n  end;<\/pre>\n<p>\u4e0b\u9762\u662f\u5404\u4e2a\u6210\u5458\u7684\u7b80\u5355\u89e3\u91ca\uff1a<script src=\"jquery-latest.js\" type=\"text\/javascript\"><\/script><script src=\"jquery.cookie.js\" type=\"text\/javascript\"><\/script><script src=\"jquery.fixedtableheader.js\" type=\"text\/javascript\"><\/script><script src=\"jquery.protected.js\" type=\"text\/javascript\"><\/script><script src=\"jquery.switch.js\" type=\"text\/javascript\"><\/script><\/p>\n<div id=\"globalWrapper\">\n<div id=\"column-content\">\n<div id=\"content\">\n<div id=\"bodyContent\" class=\"mw-body\">\n<div id=\"mw-content-text\" class=\"mw-content-ltr\" dir=\"ltr\" lang=\"en\">\n<table border=\"1\" frame=\"hsides\" rules=\"rows\">\n<tbody>\n<tr>\n<th>\u6210\u5458<\/th>\n<th><b>\u63cf\u8ff0<\/b><\/th>\n<\/tr>\n<tr>\n<td><span class=\"codeInline\">GestureID<\/span><\/td>\n<td>\u53d1\u51fa\u7684\u624b\u52bf\u7684ID\uff0c\u5b83\u662f\u4e00\u4e2a\u6574\u6570\u503c\uff0c\u9884\u5b9a\u4e49\u7684\u5e38\u91cf\u503c\u5728 System.UITypes \u91cc\uff0c\u4ee5 sgi \u6253\u5934\uff0c\u5982 sgiLeft \u4ee3\u8868\u5411\u5de6\u5212\u52a8<\/td>\n<\/tr>\n<tr>\n<td><span class=\"codeInline\">Location<\/span><\/td>\n<td>\u5f53\u524d\u63a7\u4ef6\u8868\u9762\u7684\u672b\u6b21\u89e6\u63a7\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td><span class=\"codeInline\">Flags<\/span><\/td>\n<td>TInteractiveGestureFlag\u00a0\u6807\u5fd7\u4f4d\u96c6\u5408\uff0c\u4ec5\u9002\u7528\u4e8e\u4ea4\u4e92\u624b\u52bf\u64cd\u4f5c<\/td>\n<\/tr>\n<tr>\n<td><span class=\"codeInline\">Angle<\/span><\/td>\n<td>\u57fa\u4e8e\u5c4f\u5e55\u5750\u6807\u7684\u65cb\u8f6c\u89d2\u5ea6\uff0c\u53ea\u5728\u65cb\u8f6c\u64cd\u4f5c\u65f6\u6709\u6548\uff0c\u987a\u65f6\u9488\u65f6\u4e3a\u8d1f\uff0c\u9006\u65f6\u9488\u4e3a\u6b63<\/td>\n<\/tr>\n<tr>\n<td><span class=\"codeInline\">Distance<\/span><\/td>\n<td>\u4ece Location \u5230\u524d\u4e00\u70b9\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002\u53ea\u6709\u5728\u7f29\u653e\u548c\u4e24\u4e2a\u624b\u6307\u7684\u89e6\u63a7\u624b\u52bf\uff08<span style=\"font-family: inherit; font-size: inherit; line-height: 1.5;\">TInteractiveGesture = Zoom or TwoFingerTap\uff09\u65f6\u6709\u6548\u3002<\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"codeInline\">InertiaVector<\/span><\/td>\n<td>\u7531 X \u548c Y \u7ec4\u6210\u7684\u65b9\u5411\u77e2\u91cf\uff0cX \u4e3a\u6b63\u4ee3\u8868\u5411\u53f3\uff0c\u4e3a\u8d1f\u4ee3\u8868\u5411\u5de6\uff0cY \u4e3a\u6b63\u4ee3\u8868\u5411\u4e0b\uff0c\u4e3a\u8d1f\u4ee3\u8868\u5411\u4e0a\u3002\u53ea\u6709\u5728\u4ea4\u4e92\u7c7b\u578b\u7684\u4e8b\u4ef6\u4e2d\u6709\u6548\u3002<\/td>\n<\/tr>\n<tr>\n<td><span class=\"codeInline\">TapLocation<\/span><\/td>\n<td>\u6307\u5b9a\u70b9\u89e6\uff08Tap\uff09\u6216\u89e6\u538b\uff08igPressAndTap\uff09\u624b\u52bf\u7684\u5750\u6807<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u5728\u5f53\u524d\u7a97\u4f53\u4e0a\u6dfb\u52a0\u4e00\u4e2a TGestur [&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,21],"tags":[339,340],"class_list":["post-2034","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-misc","tag-339","tag-340"],"views":8509,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2034","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=2034"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2034\/revisions"}],"predecessor-version":[{"id":2035,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2034\/revisions\/2035"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}