<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SearchField &#8211; Xojo Programming Blog</title>
	<atom:link href="https://blog.xojo.com/tag/searchfield/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.xojo.com</link>
	<description>Blog about the Xojo programming language and IDE</description>
	<lastBuildDate>Tue, 02 Mar 2021 16:41:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>New SearchField for Xojo Desktop</title>
		<link>https://blog.xojo.com/2020/11/24/searchfield-arrives-at-xojo-desktop/</link>
		
		<dc:creator><![CDATA[Javier Menendez]]></dc:creator>
		<pubDate>Tue, 24 Nov 2020 14:00:49 +0000</pubDate>
				<category><![CDATA[Cross-Platform]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[SearchField]]></category>
		<category><![CDATA[Xojo Programming Language]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=7707</guid>

					<description><![CDATA[With Xojo 2020r2 you can now add to your Window Layouts a native Search control for your desktop apps, getting the same look and feel and behavior you'd expect from the OS itself.]]></description>
										<content:encoded><![CDATA[
<p>With Xojo 2020r2 you can now add to your Window Layouts a native Search control for your desktop apps, getting the same look and feel and behavior you&#8217;d expect from the OS itself.</p>



<p>For example, on macOS you will be able to offer a Recent Items popup menu contained in the search field itself, setting even through the Panel Inspector (or via code) the maximum number of allowed recent items. Of course, you will be able to set a localized text for the Hint property of the control.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img fetchpriority="high" decoding="async" width="624" height="430" src="https://blog.xojo.com/wp-content/uploads/2020/11/XojoSearchDemo.gif" alt="" class="wp-image-7733"/></figure></div>



<ul class="wp-block-list"><li>The implementation of the control logic in your apps couldn&#8217;t be more easy: Drag and drop the SearchField control from the Library to the Window Layout. Add the TextChanged event to the control instance. And write the code that should be executed every time the SearchField text changes.</li></ul>



<p>In addition, you can also implement the Pressed event handler. This one will be called everytime the user hits the Return key, clicks on the &#8220;Clear&#8221; button or selects an item from those available in the &#8220;Recent Items&#8221; menu.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" width="345" height="222" src="https://blog.xojo.com/wp-content/uploads/2020/11/SearchFieldProperties.png" alt="" class="wp-image-7711" srcset="https://blog.xojo.com/wp-content/uploads/2020/11/SearchFieldProperties.png 345w, https://blog.xojo.com/wp-content/uploads/2020/11/SearchFieldProperties-300x193.png 300w" sizes="(max-width: 345px) 100vw, 345px" /></figure></div>



<p>Lastly, all the properties are settable both at design time using the Inspector Panel, or via code at runtime; so you can change, for example, if the SearchField instance displays the &#8220;Recent Items&#8221; menu or not, the number of allowed items or the text for the Hint, and also the &#8220;Clear&#8221; and &#8220;Recent Searches&#8221; texts.</p>



<p>Questions? Ask me about Xojo programming on Twitter <a href="https://twitter.com/xojoes">@XojoES</a> or on the <a href="https://forum.xojo.com/u/javier_menendez/summary">Xojo Forum</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
