{"id":2519,"date":"2019-03-25T17:39:57","date_gmt":"2019-03-25T20:39:57","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/using-libraries-in-elipse-e3-lesson-6\/"},"modified":"2019-04-24T10:59:03","modified_gmt":"2019-04-24T13:59:03","slug":"using-libraries-in-elipse-e3-lesson-6","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-6\/","title":{"rendered":"Using Libraries in Elipse E3: Lesson 6."},"content":{"rendered":"<h3 align=\"justify\">Indexed Screen<\/h3>\n<p align=\"justify\">The Indexed Screen is a screen which can receive and send information to several devices individually. When opened, the screen receives an information about the name of the object to be linked, and then automatically creates the link.<\/p>\n<p align=\"justify\">For example, on a screen there are three engines. When clicking any of them, a screen with detailed information must be opened.<\/p>\n<p align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4157\/fig_4157_001.png\" alt=\"\" width=\"470\" height=\"312\" align=\"Baseline\" border=\"0\" \/><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 1<\/b><\/span><\/p>\n<p align=\"justify\">The screen with detailed information about the engine is always the same, what changes is the variables where information comes from.<\/p>\n<h3 align=\"justify\">Developing an indexed screen<\/h3>\n<h4 align=\"justify\">XObject<\/h4>\n<p align=\"justify\">The first step is having all information to pass to the indexed screen in a single place. The best way to do this is creating an XObject.<\/p>\n<p align=\"justify\">Let&#8217;s use as an example the XObject <code>EngineTag<\/code> created in previous chapters. The <code>EngineTag<\/code> monitors the maintenance status, failure, and the engine speed using three properties: <b>fail<\/b>, <b>maintenance<\/b>, and <b>RPM<\/b>.<\/p>\n<h4 align=\"justify\">XControl<\/h4>\n<p align=\"justify\">The second step is having an XControl which can access all XObject properties which you want to monitor.<\/p>\n<p align=\"justify\">Let&#8217;s use as an example the XControl <code>Engine<\/code> created in previous chapters. This XControl displays the name of the engine using a text, the RPM using a Display, its color blinks in yellow and red in case it is on failure, and a rectangle switches between red and green to symbolize the on or off status.<\/p>\n<p align=\"justify\">Using a button, you can change the failure status, and clicking the engine image you can turn it on or off. To link the XControl to the XObject, it was created a property named <b>Source<\/b> of the same type of the XObject.<\/p>\n<h4 align=\"justify\">Creating an Indexed Screen<\/h4>\n<p align=\"justify\">The next step is to create the indexed screen. Usually, this screen is windowed and modal. Thus, you must close it to return to the previous screen.<\/p>\n<p align=\"justify\">Create a screen with the size you want and insert an XControl to exchange information with the XObject.<\/p>\n<p align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4157\/fig_4157_002.png\" alt=\"\" width=\"341\" height=\"216\" align=\"Baseline\" border=\"0\" \/><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 2<\/b><\/span><\/p>\n<p align=\"justify\">This XControl must point to some XObject inserted in your application. This link is performed only when the screen opens. When this happens, the screen must receive the name of the XObject to be linked through the <i>Arg<\/i> parameter.<\/p>\n<p align=\"justify\">To do so, create in the <b>OnPreShow<\/b> event of the screen the script which links the XControl property (for example, <b>Source<\/b>) to the <i>Arg<\/i> parameter of the screen.<\/p>\n<div align=\"justify\">\n<pre>Sub EngineScreen_OnPreShow(Arg)\r\n  'Links to one of the engines\r\n  Item(\"Engine1\").Source = Arg\r\nEnd Sub<\/pre>\n<\/div>\n<h4 align=\"justify\">Opening the Indexed Screen<\/h4>\n<p align=\"justify\">Now, you must configure it so that when clicking the engine image on the screen, the operator answers if he wants to open the indexed screen, and then define the engine name as the parameter to be controlled.<\/p>\n<p align=\"center\"><b><span style=\"font-size: xx-small;\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4157\/fig_4157_003_A.png\" alt=\"\" width=\"500\" height=\"145\" align=\"Baseline\" border=\"0\" \/><\/span><\/b><\/p>\n<p><b><span style=\"font-size: xx-small;\">\u00a0<\/span><\/b><\/p>\n<p align=\"center\"><b><span style=\"font-size: xx-small;\">Figure 3<\/span><\/b><\/p>\n<h3 align=\"justify\">Exercises<\/h3>\n<div align=\"justify\">\n<ol>\n<li>Create an indexed screen for the Object <code>ValveTag<\/code>.<\/li>\n<li>Create an indexed screen for the Speedometer.<\/li>\n<\/ol>\n<h3>Attachments:<\/h3>\n<p><a href=\"\/wp-content\/uploads\/2019\/03\/LibrariesCap6.zip\">LibrariesCap6.zip<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Autor<br \/>\nPaula En\u00e9as<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[769],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using Libraries in Elipse E3: Lesson 6. - Elipse Knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Libraries in Elipse E3: Lesson 6.\" \/>\n<meta property=\"og:description\" content=\"Autor Paula En\u00e9as\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-25T20:39:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-24T13:59:03+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4157\/fig_4157_001.png\" \/>\n<meta name=\"author\" content=\"Elipse Software\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elipse Software\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"Using Libraries in Elipse E3: Lesson 6.\",\"datePublished\":\"2019-03-25T20:39:57+00:00\",\"dateModified\":\"2019-04-24T13:59:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/\"},\"wordCount\":446,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"XControl \/ XObject \/ Lib\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/\",\"url\":\"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/\",\"name\":\"[:pt]Using Libraries in Elipse E3: Lesson 6.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:39:57+00:00\",\"dateModified\":\"2019-04-24T13:59:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Libraries in Elipse E3: Lesson 6.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\",\"name\":\"Elipse Software\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"caption\":\"Elipse Software\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Libraries in Elipse E3: Lesson 6. - Elipse Knowledgebase","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]Using Libraries in Elipse E3: Lesson 6.[:] - Elipse Knowledgebase","og_description":"[:pt]Autor Paula En\u00e9as[:]","og_url":"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:39:57+00:00","article_modified_time":"2019-04-24T13:59:03+00:00","og_image":[{"url":"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4157\/fig_4157_001.png"}],"author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"Using Libraries in Elipse E3: Lesson 6.","datePublished":"2019-03-25T20:39:57+00:00","dateModified":"2019-04-24T13:59:03+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/"},"wordCount":446,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["XControl \/ XObject \/ Lib"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/","url":"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/","name":"[:pt]Using Libraries in Elipse E3: Lesson 6.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:39:57+00:00","dateModified":"2019-04-24T13:59:03+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/using-libraries-in-elipse-e3-lesson-6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Using Libraries in Elipse E3: Lesson 6."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87","name":"Elipse Software","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","caption":"Elipse Software"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2519"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=2519"}],"version-history":[{"count":2,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2519\/revisions"}],"predecessor-version":[{"id":5234,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2519\/revisions\/5234"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=2519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=2519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=2519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}