How do I tell DesktopSearchField what text have to be searched?

I read carefully the * DesktopSearchField entry in the docs and do not found how to tell to * DesktopSearchField the reference of the Control (TetField or TextArea) to search my text.

The example I found in Examples does not works (do nothing if you prefer) and needs a Button to activate the seach.

The text to search: .Text, easy to discover.
The source text: Property Not Found !

Xojo 2024r4.2
Sequoia 15.4.1
MacBook Pro 13" m1

PS: I fired Xojo 2021r2.1 and look at the documentation (in case the information I search is there): no.nothing.

You don’t. You use the TextChanged event of the control to determine the criteria, then implement your own search on whatever content.

1 Like

so, i do not need it?

Don’t need what?

Sorry. DesktopSearchField.

I already have a search window.

But there is something I do not understand.

If you don’t need it, then you don’t need it, I guess.

If you already have a search field implementation and don’t want the additional functionality and modified user interface of the DesktopSearchField, then I guess you don’t need it. Xojo doesn’t require you to use DesktopSearchField in order to build search functionality.

The DesktopSearchField is essentially a text field that provides a pop up menu for recent searches. It doesn’t perform the actual search; that is up to you.

In other words: You don’t strictly need it for a text search but it provides useful functionality that you don’t need to implement yourself.