TextField on MacOS BUG

Been tracing this forever and this IS a bug!.

When using a textfield on macOS with the following properties

  • HasBorder = false
  • AllowFocusRing = false

and displaying it in any other window type than document (Sheet, Modal etc. etc.), once the window is opened you see a textfield control which is bigger than others, but once the focus is lost, it will not happen again (wether receiving or loosing focus)

Window immediately after opening

Focus moved to another control

I develop custom controls, including a custom input field which uses declares and textfield, and this happens when I use my control within a modal and once it’s focused for the FIRST time:
image

And after it looses focus and receives it again (like in the demo, all is normal)
image

please fix!

If you want to get the attention of the fine folks who develop and fix bugs for Xojo, please file an official Issue

For best results, include your screen-shots, step-by-step instructions and an example project that demonstrates the bug.

Note: you can make your Issue “Private” so that other forum members won’t see your code.

Have you tried just using the Search field control?

I overwrote the the drawing behavior to remove the border. That worked.

Your control looks exactly like a search field control. I just wonder if a standard control would just work? Possibly not.

In terms of a bug the best place to do that is in Issues. Create a simple reproducible example and add a ticket. Put the example on there, together with the steps to reproduce the problem. Spell out what should happen and what actually happens.

You know from your own applications when someone says something goes wrong, it helps enormously when you can see it go wrong in a reproducible way. That sort of bug report gets far better traction than those without. It’s also worth discussing the issue here with others to encourage them to sign on to the bug report (post the number and issue link here). The more people affected the more chance of a fix.

1 Like

I know what you mean, but the control has a few components and CAN look like a search field (it has a custom icon (SVG), label, input area and supports multiple complex masks, autocomplete etc. etc.

1 Like

Fairy nuff (one of the magical fairies).