Window loosing focus

(Posted 10 months ago) lavalamp

Is it possible to prevent a window from loosing focus until the OK button is clicked? Or have I missed something obvious?

(Posted 10 months ago) RonTek commented:

I think there's a Windows API equivalent which sets a window active and focus, this is available under the user32.decls.

I am also not sure if most of the features are implemented on the blitzmax side, but with SDL2.mod it is also possible.


(Posted 10 months ago) lavalamp commented:

Discovered if I added WINDOW_TITLEBAR as a style this works, prevents the window going behined a disabled window, but adds an unrequired title bar.

(Posted 10 months ago) RonTek commented:

That's awesome. hope you don't mind me asking, are you building a game or some type of tool for this?

(Posted 10 months ago) lavalamp commented:

I wrote an App, several years ago that was released on the Apple App store, and it still sells today, a sale here and there nothing huge, but theres an installed base out there that have lost access to it since MacOS Mojave was released, now theres MacOS Catalina, which only allows 64/128bit.

When I discovered BlitzMAx NG and confirmed it complied my apps. I was planning to refresh two of my three apps for updates.

I had tried to resubmit the one I'm working on now but Apple declined it siting the ComboBox popup menu issue wasn't user interface compliant, and they are right, it effectively disables the App.

So I decided to drop the popup menu in favour of a popup window, then discovered ListBox is also broken under MacOS. So I reverted to using a list of buttons, its looking OK.

(Posted 10 months ago) RonTek commented:

Sounds great! I understand the 64bit move, everybody does it starting with Google Play, I doubt the 128bit though and don't think it will happen soon, maybe in the future

(Posted 10 months ago) lavalamp commented:

Is there away to have a single binary that launches on Catalina and High Sierra or do we need to have two different versions? If I compile on one or the other they dont run.

(Posted 10 months ago) RonTek commented:

I don't know much about the latest MacOS but perhaps this is about 32 bit support? have you made the switch to NG and use 64bit?

there is also some relatable issues to this with old WinXP vs Windows Vista/7/8/10

Reply To Topic (minimum 10 characters)

Please log in to reply