Desktop ComboBox causes App to hide on switch to other App

Desktop, & Xojo 2023r1.1
I don’t know if this is just a Mac problem.
This problem happens in a specific way and apparently only my machine has this particular ComboBox feature. I posted this problem awhile ago and nobody else had it. In order to get the control to open I have to click twice. If I just click on it once, and switch to another App my App is hidden behind every other window.
This doesn’t happen predictably but rather randomly.
I suppose I could put in FocusLost something, but what?
Any suggestions?

I bet there’s something up with your keyboard and that one of the keys (probably CMD) is sticking.

Sorry. This is only is with the mouse. It works perfectly with the keyboard.

While I understand your logic here, I still think it’s worth looking into. You see… holding down a modifier key (I can’t remember if it’s Opt or CMD now) when clicking on another app can cause your current app to hide. Just like holding down the CTRL key will get you a contextual click with the left button. It certainly could be that this key works correctly when you’ve just been typing, but that it slowly drifts down into a “contact” position when you leave it alone.

I’ve seen several weird things with keyboard failures over the years with my macs, and if I were having that problem, I’d be reaching for my spare just to eliminate it as a possibility.

Aah. I understand your thinking, and I will look into it.

That would be the Option key, but if it really was stuck down, typing would produce alternate characters. IMO, I don’t think it’s the actual cause.

Hi @Arthur_Gabhart

Is there a simple project that replicates the issue and you can post here so we can get a better idea?

Sorry, but I’m not interested because I did a project and people said they couldn’t see it. I would otherwise.
(being repetitive) I would like to know how to prevent it from being hidden. Just to clarify, when the focus is on the ComboBox and I go to a different App, my App is pushed all the way to back and the only way I can find it is by minimizing all to the other windows.

Yes, holding down the Option key while clicking another app will hide the current app. But this would apply to every app.

Can you link to the project you did? I’m sure a few of us would be happy to check it out.

1 Like