{"id":2523,"date":"2019-03-25T17:39:58","date_gmt":"2019-03-25T20:39:58","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/using-libraries-in-elipse-e3-lesson-8\/"},"modified":"2020-01-20T17:20:49","modified_gmt":"2020-01-20T20:20:49","slug":"using-libraries-in-elipse-e3-lesson-8","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/","title":{"rendered":"Using Libraries in Elipse E3: Lesson 8."},"content":{"rendered":"<h3 align=\"justify\">CustomConfig<\/h3>\n<p align=\"justify\">The <b>CustomConfig<\/b> resource, available from Elipse E3 3.2 on, which allows creating Configuration Wizards for instances of an ElipseX object inside E3 Studio.<\/p>\n<p align=\"justify\">A configuration option is always displayed in the menu of the ElipseX instances (XControl and XObject) when there is a script linked to the <b>CustomConfig<\/b> event.<\/p>\n<p align=\"justify\">The text displayed in the menu option can be informed in the <b>CustomConfigText<\/b> property of the Library object definition. If this property is empty, a text &#8220;Configure&#8221; is displayed.<\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4161\/fig_001.png\" alt=\"\" width=\"286\" height=\"139\" align=\"Baseline\" border=\"0\" \/><\/b><\/span><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 1<\/b><\/span><\/p>\n<p align=\"justify\">Let&#8217;s create an example of using CustomConfig in an XControl and an XObject.<\/p>\n<h3 align=\"justify\">XControl<\/h3>\n<p align=\"justify\">The Speedometer is an XControl developed in a previous chapter which has a property named <b>Velocity<\/b>. Let&#8217;s configure it so that when choosing the <b>Configure<\/b> option, an edit box is displayed to type the initial speed of the object.<\/p>\n<div align=\"justify\">\n<ol>\n<li>Access the scripts of the Speedometer XControl and choose the <b>CustomConfig<\/b> event:<\/li>\n<\/ol>\n<\/div>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4161\/fig_002.png\" alt=\"\" width=\"500\" height=\"84\" align=\"Baseline\" border=\"0\" \/><\/b><\/span><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 2<\/b><\/span><\/p>\n<div align=\"justify\">\n<ol start=\"2\">\n<li>Write down the following script:<\/li>\n<\/ol>\n<pre>Sub Speedometer_CustomConfig()\r\n'Initial speed of the Speedometer\r\nVelocity = InputBox(\"Velocity:\")\r\nEnd Sub<\/pre>\n<ol start=\"3\">\n<li>Save and register the Library.<\/li>\n<li>Access a screen where there is a Speedometer, right-click it and choose the <b>Configure<\/b> option.<\/li>\n<\/ol>\n<\/div>\n<p align=\"center\"><b><span style=\"font-size: xx-small;\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4161\/fig_003.png\" alt=\"\" width=\"416\" height=\"253\" align=\"Baseline\" border=\"0\" \/><\/span><\/b><\/p>\n<p align=\"center\"><b><span style=\"font-size: xx-small;\">Figure 3<\/span><\/b><\/p>\n<div align=\"justify\">\n<ol start=\"5\">\n<li>In the open window, type a value for the speed and check if the object assumes that value.<\/li>\n<\/ol>\n<\/div>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4161\/fig_004.png\" alt=\"\" width=\"500\" height=\"167\" align=\"Baseline\" border=\"0\" \/><\/b><\/span><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 4<\/b><\/span><\/p>\n<h3 align=\"justify\">XObject<\/h3>\n<p align=\"justify\">MaintenanceTime is an XObject developed in a previous chapter which has the following properties: <b>OnOff<\/b>, <b>OnTime<\/b>, and <b>MaximumTime<\/b>. Let&#8217;s configure it so that when choosing the <b>Configure<\/b> option, an edit box is displayed to type the initial <b>MaximumTime<\/b> of the object.<\/p>\n<div align=\"justify\">\n<ol>\n<li>Access the scripts of the MaintenanceTime XObject and choose the <b>CustomConfig<\/b> event.<\/li>\n<\/ol>\n<\/div>\n<p align=\"center\"><b><span style=\"font-size: xx-small;\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4161\/fig_005.png\" alt=\"\" width=\"500\" height=\"76\" align=\"Baseline\" border=\"0\" \/><\/span><\/b><\/p>\n<p align=\"center\"><b><span style=\"font-size: xx-small;\">Figure 5<\/span><\/b><\/p>\n<div align=\"justify\">\n<ol start=\"2\">\n<li>Write down the following script:<\/li>\n<\/ol>\n<pre>Sub MaintenanceTime_CustomConfig()\r\n'Maximum time turned on\r\nMaximumTime = InputBox(\"Maximum time of the device:\")\r\nEnd Sub<\/pre>\n<ol start=\"3\">\n<li>Save and register the Library.<\/li>\n<li>Access a data server where there is a MaintenanceTime object, right-click it and choose the <b>Configure<\/b> option.<\/li>\n<\/ol>\n<\/div>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4161\/fig_006.png\" alt=\"\" width=\"288\" height=\"168\" align=\"Baseline\" border=\"0\" \/><\/b><\/span><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 6<\/b><\/span><\/p>\n<div align=\"justify\">\n<ol start=\"5\">\n<li>In the open window, type a value for the maximum time of the device and check if the object assumes that value.<\/li>\n<\/ol>\n<\/div>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b><img loading=\"lazy\" title=\"\" src=\"https:\/\/kb.elipse.com.br\/en-us\/images\/ID3826\/figura%2071.jpg\" alt=\"\" width=\"570\" height=\"156\" align=\"Baseline\" border=\"0\" \/><\/b><\/span><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 7<\/b><\/span><\/p>\n<h3 align=\"justify\">Exercises<\/h3>\n<div align=\"justify\">\n<ol>\n<li>Create a configuration window for the <b>Level<\/b> property of the XControl <code>Bottle<\/code>.<\/li>\n<li>Create a configuration window for the <b>Source<\/b> property of the XControl <code>Engine<\/code>.<\/li>\n<li>Create a configuration window for the <code>SumDemoTag<\/code> properties of the XControl.<\/li>\n<\/ol>\n<h3><\/h3>\n<h3>Attachments:<\/h3>\n<p><a href=\"\/wp-content\/uploads\/2019\/03\/LibrariesCap8.zip\">LibrariesCap8.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 8. - 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\/en\/using-libraries-in-elipse-e3-lesson-8\/\" \/>\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 8.\" \/>\n<meta property=\"og:description\" content=\"Autor Paula En\u00e9as\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/\" \/>\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:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-20T20:20:49+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4161\/fig_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\/en\/using-libraries-in-elipse-e3-lesson-8\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"Using Libraries in Elipse E3: Lesson 8.\",\"datePublished\":\"2019-03-25T20:39:58+00:00\",\"dateModified\":\"2020-01-20T20:20:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/\"},\"wordCount\":340,\"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\/en\/using-libraries-in-elipse-e3-lesson-8\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/\",\"name\":\"[:pt]Using Libraries in Elipse E3: Lesson 8.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:39:58+00:00\",\"dateModified\":\"2020-01-20T20:20:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/#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 8.\"}]},{\"@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 8. - 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\/en\/using-libraries-in-elipse-e3-lesson-8\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]Using Libraries in Elipse E3: Lesson 8.[:] - Elipse Knowledgebase","og_description":"[:pt]Autor Paula En\u00e9as[:]","og_url":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:39:58+00:00","article_modified_time":"2020-01-20T20:20:49+00:00","og_image":[{"url":"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4161\/fig_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\/en\/using-libraries-in-elipse-e3-lesson-8\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"Using Libraries in Elipse E3: Lesson 8.","datePublished":"2019-03-25T20:39:58+00:00","dateModified":"2020-01-20T20:20:49+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/"},"wordCount":340,"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\/en\/using-libraries-in-elipse-e3-lesson-8\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/","url":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/","name":"[:pt]Using Libraries in Elipse E3: Lesson 8.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:39:58+00:00","dateModified":"2020-01-20T20:20:49+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-8\/#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 8."}]},{"@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\/2523"}],"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=2523"}],"version-history":[{"count":2,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2523\/revisions"}],"predecessor-version":[{"id":5223,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2523\/revisions\/5223"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=2523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=2523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=2523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}