Message windows
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Message windows
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
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
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
-
- Livecode Opensource Backer
- Posts: 10076
- Joined: Fri Feb 19, 2010 10:17 am
Re: Message windows
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.
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.
Last edited by richmond62 on Sat Jul 12, 2025 7:28 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 10076
- Joined: Fri Feb 19, 2010 10:17 am
-
- Livecode Opensource Backer
- Posts: 10076
- Joined: Fri Feb 19, 2010 10:17 am
Re: Message windows
Well, Cowabunga! Bunging this into the stackScript of the MessageBox made things permanent:
- -
LiveCode 9.6.3 Community Edition, MacOS 12.
- -
LiveCode 9.6.3 Community Edition, MacOS 12.
Re: Message windows
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...
I think "set the style of stack "Message Box" to toplevel" will be enough fro now.
The other solution seems a little scaring...
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
-
- Livecode Opensource Backer
- Posts: 10076
- Joined: Fri Feb 19, 2010 10:17 am
Re: Message windows
Adding one line of code does NOT seem scary at all: especially as you know what it will do.The other solution seems a little scaring...

Re: Message windows
@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:
Code: Select all
set the hidePalettes to false
-
- Livecode Opensource Backer
- Posts: 10076
- Joined: Fri Feb 19, 2010 10:17 am
Re: Message windows
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.
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.
