How to format a search field in Desktop

Apparently (according to docs), you can’t change the search field font, color, border, etc. in a Desktop app. Hope I’m wrong.

Anybody know why I should use a search field over a regular text field? Besides how it’s supposed to automatically link up with a results box using DBKit (which doesn’t work for me anyway).

Thanks

fritz

We just accept some limitations over the way we can style controls when we use the Xojo framework. If you want complete control over the look, you’ll need to use a workaround of some kind. (There are many, if you would like suggestions for those just ask, I’m sure plenty of people can chime in!)

As is often the case, Xojo SearchControl is just a bare minimum solution, but nothing more. If you need more, I can recommend Einhugur SearchControl by @Björn_Eiríksson. We’ve had very good experiences with it.

3 Likes

I build my own using a container control, and throwing in a text field, a bevel button, a canvas (for the little cross to cancel) and a few lines of code. it was a good exercice !

1 Like

I have always used a text field for search to date. I used this search field because I was following a Xojo video tutorial and Geoff was using it. I just wondered if I was missing something about formatting. I am going back to the text field then.

Thank you all

fritz

The search field is just a container drawing a background a border and icon with a regular borderless text field embeded. You can make a better custom control like that in a couple hours.

Sascha S answer aplies for DBKit too.