In a DektopWindow with a DektopListBox (to search in), I add a DesktopSearchField.
I add a Label and now I am asking myself where to go.
I read the documentation @ DesktopSearchField, but see nothing.
Unfortunately, I do not recall how to make a search of the old way (without DesktopSearchField).
A link to a document who explain how to find the search text in the ListBox… is welcome.
Or… must I check every Row (from 0 to last one) ?
In that case, what is the purpose/utility of a DesktopSearchField ?
Hi Mark,
could be, but not in that case. I do not found an entry that explain the raison d’être of a DesktopSearchField (vs a TextField).
In the mean time, I add a KeyDown Event, checked the key is Enter or Return and in a Loop, search in the ListBox, Select the found Line, scroll the… ScrollBar and set the Focus to the ListBox.
Things I can do with a TextField (how SearchField is useful then ?)
Result
BTW: my Earth globe is too small… 
There is no “old way”. DesktopSearchField is new to the framework and only exists as a Desktop-prefixed-control.
1 Like
Esthetics, clearly related to a search of something (the magnifying glass icon), keeps a list of last entered items too (defaults to 5).
difference is in description
A field for search values that provides a Recent Searches popup menu.
Something to be aware of: After adding a DesktopSearchfield, I started seeing problems with the Tab Order in the window, so if you start to see that, remove the search field and see if it clears up.
https://tracker.xojo.com/xojoinc/xojo/-/issues/78428
The SearchField from Einhugur does not destroy the tab order.
2 Likes