{"id":1036,"date":"2022-05-07T08:29:00","date_gmt":"2022-05-07T08:29:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=1036"},"modified":"2022-05-07T08:29:00","modified_gmt":"2022-05-07T08:29:00","slug":"1036","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2022\/05\/07\/1036\/","title":{"rendered":"\u862d\u96c5CorelVBA\u5de5\u5177\u7bb1\u5de5\u5177\u680fUI\u529f\u80fd\u5bfc\u56fe"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2022\/05\/756737974.jpg\" alt=\"\u862d\u96c5CorelVBA\u5de5\u5177\u7bb1\u5de5\u5177\u680fUI\u529f\u80fd\u5bfc\u56fe.jpg\" title=\"\u862d\u96c5CorelVBA\u5de5\u5177\u7bb1\u5de5\u5177\u680fUI\u529f\u80fd\u5bfc\u56fe.jpg\"><\/p>\n<h2>\u4f7f\u7528\u81ea\u5df1\u5199\u5de5\u5177\u680fUI\uff0c\u53ef\u4ee5\u7ed1\u5b9a\u53f3\u952e\uff0c\u6dfb\u52a0\u529f\u80fd<\/h2>\n<h3>\u2460\u53f3\u952e\u6536\u7f29\u5de5\u5177\u680f   \u2461\u53f3\u952e\u5c45\u4e2d\u9875\u9762    \u2462\u53f3\u952e\u5c3a\u5bf8\u53d6\u6574\u6570    \u2463\u53f3\u952e\u5355\u8272\u9ed1\u4e2d\u7ebf\u6807\u8bb0  \u2464\u53f3\u952e\u5355\u8272\u9ed1\u4e2d\u7ebf\u6807\u8bb0<\/h3>\n<pre><code>  '\/\/\u6269\u5c55\u952e\u6309\u94ae\u4f18\u5148  \u2460\u53f3\u952e\u6536\u7f29\u5de5\u5177\u680f   \u2461\u53f3\u952e\u5c45\u4e2d\u9875\u9762    \u2462\u53f3\u952e\u5c3a\u5bf8\u53d6\u6574\u6570    \u2463\u53f3\u952e\u5355\u8272\u9ed1\u4e2d\u7ebf\u6807\u8bb0  \u2464\u53f3\u952e\u5355\u8272\u9ed1\u4e2d\u7ebf\u6807\u8bb0\n  If Abs(x - pos_x(0)) &lt; 14 And Abs(y - pos_y(0)) &lt; 14 And Button = 2 Then\n    Me.Width = 30\n    UI.Visible = False\n    LOGO.Visible = True\n    X_EXIT.Visible = True\n    Exit Sub\n\n  ElseIf Abs(x - pos_x(1)) &lt; 14 And Abs(y - pos_y(0)) &lt; 14 Then\n    Tools.\u5c45\u4e2d\u9875\u9762\n    Exit Sub\n\n  ElseIf Abs(x - pos_x(3)) &lt; 14 And Abs(y - pos_y(0)) &lt; 14 And Button = 2 Then\n    Tools.\u5c3a\u5bf8\u53d6\u6574\n    Exit Sub\n\n  ElseIf Abs(x - pos_x(5)) &lt; 14 And Abs(y - pos_y(0)) &lt; 14 And Button = 2 Then\n    \u81ea\u52a8\u4e2d\u7ebf\u8272\u9636\u6761.Auto_ColorMark_K\n    Exit Sub\n\n  '\/\/\u5206\u5206\u5408\u5408\u628a\u51e0\u4e2a\u529f\u80fd\u6309\u952e\u5408\u5e76\u5230\u4e00\u8d77\uff0c\u5b9a\u4e49\u5230\u53f3\u952e\u4e0a\n  ElseIf Abs(x - pos_x(4)) &lt; 14 And Abs(y - pos_y(0)) &lt; 14 And Button = 2 Then\n    Tools.\u5206\u5206\u5408\u5408\n    Exit Sub\n\n  End If<\/code><\/pre>\n<h2>\u5206\u5206\u5408\u5408 \u529f\u80fd\u8c03\u7528\u7684\u5de5\u5177\u6a21\u5757<\/h2>\n<pre><code>Public Function \u5206\u5206\u5408\u5408()\n  \u62fc\u7248\u88c1\u5207\u7ebf.arrange\n\n  CQL\u67e5\u627e\u76f8\u540c.CQLline_CM100\n\n  \u62fc\u7248\u88c1\u5207\u7ebf.Cut_lines\n\n  Dim s As Shape\n  Set s = ActivePage.SelectShapesFromRectangle(ActivePage.LeftX, ActivePage.TopY, ActivePage.RightX, ActivePage.BottomY, True)\n\n  \u81ea\u52a8\u4e2d\u7ebf\u8272\u9636\u6761.Auto_ColorMark\n\nEnd Function<\/code><\/pre>\n<h2>\u5b9e\u9645\u4f7f\u7528\u6f14\u793a\u89c6\u9891<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2022\/05\/1830503659.gif\" alt=\"\u5206\u5206\u5408\u5408.gif\" title=\"\u5206\u5206\u5408\u5408.gif\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528\u81ea\u5df1\u5199\u5de5\u5177\u680fUI\uff0c\u53ef\u4ee5\u7ed1\u5b9a\u53f3\u952e\uff0c\u6dfb\u52a0\u529f\u80fd \u2460\u53f3\u952e\u6536\u7f29\u5de5\u5177\u680f \u2461\u53f3\u952e\u5c45\u4e2d\u9875\u9762 \u2462\u53f3\u952e\u5c3a\u5bf8\u53d6\u6574\u6570 \u2463 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,12],"tags":[67],"class_list":["post-1036","post","type-post","status-publish","format-standard","hentry","category-soft","category-learn","tag-vba"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=1036"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1036\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=1036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=1036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=1036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}