Message windows

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevix
Posts: 1064
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Message windows

Post by trevix » Sat Jul 12, 2025 5:34 pm

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
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: Message windows

Post by richmond62 » Sat Jul 12, 2025 7:19 pm

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.
Last edited by richmond62 on Sat Jul 12, 2025 7:28 pm, edited 1 time in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: Message windows

Post by richmond62 » Sat Jul 12, 2025 7:27 pm

You can also do this:
-
Screenshot 2025-07-12 at 21.24.00.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: Message windows

Post by richmond62 » Sat Jul 12, 2025 7:35 pm

Well, Cowabunga! Bunging this into the stackScript of the MessageBox made things permanent:
-
Screenshot 2025-07-12 at 21.30.43.jpg
-
LiveCode 9.6.3 Community Edition, MacOS 12.

trevix
Posts: 1064
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Message windows

Post by trevix » Sun Jul 13, 2025 9:49 am

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...
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: Message windows

Post by richmond62 » Sun Jul 13, 2025 10:08 am

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. 8)

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1232
Joined: Thu Apr 11, 2013 11:27 am

Re: Message windows

Post by LCMark » Mon Jul 14, 2025 8:01 am

@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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: Message windows

Post by richmond62 » Thu Jul 17, 2025 6:52 pm

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. :wink:

Post Reply