{"id":1293,"date":"2013-09-19T17:35:59","date_gmt":"2013-09-19T17:35:59","guid":{"rendered":"https:\/\/clarionsharp.com\/blog\/?p=1293"},"modified":"2013-09-19T20:18:15","modified_gmt":"2013-09-19T20:18:15","slug":"clarion-projects-touch-support-in-the-rtl","status":"publish","type":"post","link":"https:\/\/clarionsharp.com\/blog\/clarion-projects-touch-support-in-the-rtl\/","title":{"rendered":"Clarion Projects &#8211; Touch support in the RTL"},"content":{"rendered":"<p>Clarion Projects &#8211; Touch support in the RTL<\/p>\n<p>Touch input affects all Windows (all objects with HWND handles), and all controls. A generalized processing of touch gestures and mouse input requires changes in the hierarchy of classes within the RTL that deal with user interactions. By generalized I mean the ACCEPT loop must recognize and handle all possible &#8220;gestures&#8221;, and then it needs to decode sequences of WM_POINTER* messages to matching gestures and send them back to the your program in a way that makes it easy to respond to. And further, indirectly Touch support affects some areas that are not related to input at all, for example setting and getting properties.<\/p>\n<p>The RTL also needs to expect that touch\/pointer messages can be sent to different windows depending upon where the touch is done, and to windows running in different threads as well.\u00a0 Clarion programs are typically very thread-intensive, unlike the typical MS VC\/VB\/C# programs which in terms of use of threads, are diametrically the opposite (the UI is almost always single-threaded).<\/p>\n<p>In other words the implementation isn&#8217;t a project for a rainy weekend, instead its a complex melding of current code to recognize<br \/>\nuser input, with a brand new set of requirements for touch gestures.<\/p>\n<p>A brief description of some of the functionality being worked on:<br \/>\n&#8211; scrolling of LIST control<br \/>\n&#8211; Zoom in\/out<br \/>\n&#8211; touch to press button, toggle checkbox, select radio option<br \/>\n&#8211; touch to give focus to other controls<br \/>\n&#8211; and others that we are still imagining<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Clarion Projects &#8211; Touch support in the RTL Touch input affects all Windows (all objects with HWND handles), and all controls. A generalized processing of touch gestures and mouse input requires changes in the hierarchy of classes within the RTL that deal with user interactions. By generalized I mean the ACCEPT loop must recognize and &hellip; <a href=\"https:\/\/clarionsharp.com\/blog\/clarion-projects-touch-support-in-the-rtl\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Clarion Projects &#8211; Touch support in the RTL<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,5],"tags":[],"class_list":["post-1293","post","type-post","status-publish","format-standard","hentry","category-clarion9","category-clarionnews"],"_links":{"self":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts\/1293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/comments?post=1293"}],"version-history":[{"count":2,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts\/1293\/revisions"}],"predecessor-version":[{"id":1308,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts\/1293\/revisions\/1308"}],"wp:attachment":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/media?parent=1293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/categories?post=1293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/tags?post=1293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}