Page 1 of 1
Message windows
Posted: Sat Jul 12, 2025 5:34 pm
by trevix
Hello.
I always found rather annoying the fact that if LC on desktop is not to the front, the message windows disappear (the stack does not).
Since I often use the msg window for debug purpose (like remote debugging for mobile), is there a way to change its behavior ?
Thanks
Trevix
Re: Message windows
Posted: Sat Jul 12, 2025 7:19 pm
by richmond62
The easiest way to keep the MessageBox visible is to look for it in the Application Browser and double click on its name so it is no longer a palette.
Of course that is a temporary solution as on every relaunch of LC it will revert.
I expect someone 'clever' (well, more clever than me) could edit the stackScript of the revMessageBoxBehavior stack to stop it palettising on launch.
Re: Message windows
Posted: Sat Jul 12, 2025 7:27 pm
by richmond62
Re: Message windows
Posted: Sat Jul 12, 2025 7:35 pm
by richmond62
Well,
Cowabunga! Bunging this into the stackScript of the MessageBox made things permanent:
-
-
LiveCode 9.6.3 Community Edition, MacOS 12.
Re: Message windows
Posted: Sun Jul 13, 2025 9:49 am
by trevix
Thanks to all.
I think "set the style of stack "Message Box" to toplevel" will be enough fro now.
The other solution seems a little scaring...
Re: Message windows
Posted: Sun Jul 13, 2025 10:08 am
by richmond62
The other solution seems a little scaring...
Adding one line of code does NOT seem scary at all: especially as you know what it will do.

Re: Message windows
Posted: Mon Jul 14, 2025 8:01 am
by LCMark
@trevix: This is (old?) macOS quirk - by default windows which are of 'palette' type are hidden when the app is not in the foreground. You can change this by doing:
Re: Message windows
Posted: Thu Jul 17, 2025 6:52 pm
by richmond62
I should
warn everyone that hacking the Message Box stack in the way I suggested:
1. Raises the
Message Box to a
toplevel stack.
2.
Stops it working almost completely.
I apologise to anyone who was daft enough to follow through with my suggestion.
