Clear the MessageBox

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7233
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Clear the MessageBox

Post by jacque » Wed Dec 09, 2020 1:29 am

I'm not against clearing the history but I'm still not sure why one would want to. Terminal does it, I assume, to clear old junk out of the window so new commands are conveniently at the top. But we can't see what's in the message box history so...

I'm just genuinely curious. It never occurred to me that there'd be a need for it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9834
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Clear the MessageBox

Post by FourthWorld » Wed Dec 09, 2020 3:24 am

One reason, beyond mere tidiness (which is often enough for me to clear Terminal now and then when I'm working <g>): Passwords may be included in commands executed in the Message Box.

Another is performing an action you definitely only want done once (like deleting an object), and don't want to risk accidentally performing a second time.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Clear the MessageBox

Post by richmond62 » Tue Jan 05, 2021 8:07 am

Or you could take 15 minutes and write a two-line plugin.
-
Screenshot 2021-01-05 at 9.24.04.png
Screenshot 2021-01-05 at 9.24.04.png (48.04 KiB) Viewed 8527 times
Attachments
MSG.livecode.zip
Here's the stack.
(25.96 KiB) Downloaded 201 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Clear the MessageBox

Post by richmond62 » Tue Jan 05, 2021 9:48 am

Don't be shy.
-
Screenshot 2021-01-05 at 10.47.39.png

mrcoollion
Posts: 720
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: Clear the MessageBox

Post by mrcoollion » Tue Jan 05, 2021 10:09 am

Thanks Richmond .
Love the choosen icon :D

chipsm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 244
Joined: Wed May 11, 2011 7:50 pm
Location: Southern California

Re: Clear the MessageBox

Post by chipsm » Sat Jan 08, 2022 4:32 pm

Hey Richmond,
Thanks for the LiveCode Script.
At first, I thought this was a prank. It's not!
I use the Message Box to help with my debugging and I find the need to clear it.
Again, thank you!
Clarence Martin
chipsm@themartinz.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Clear the MessageBox

Post by richmond62 » Sat Jan 08, 2022 5:26 pm

cleanBog.png
cleanBog.png (10.77 KiB) Viewed 7176 times
-
Glad to be of service. 8)

chipsm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 244
Joined: Wed May 11, 2011 7:50 pm
Location: Southern California

Re: Clear the MessageBox

Post by chipsm » Sun Jan 09, 2022 6:26 pm

have you considered making this a Plugin?
Clarence Martin
chipsm@themartinz.com

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7233
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Clear the MessageBox

Post by jacque » Sun Jan 09, 2022 7:12 pm

chipsm wrote:
Sun Jan 09, 2022 6:26 pm
have you considered making this a Plugin?
Any stack can be a plugin, just put it into your LC user plugins folder (not the LC app folder) and it will show up in the list.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

chipsm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 244
Joined: Wed May 11, 2011 7:50 pm
Location: Southern California

Re: Clear the MessageBox

Post by chipsm » Sun Jan 09, 2022 8:20 pm

Thanks, Jacque,
I'm always learning new things about LiveCode.
Clarence Martin
chipsm@themartinz.com

PaulDaMacMan
Posts: 627
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: Clear the MessageBox

Post by PaulDaMacMan » Sun Feb 20, 2022 10:53 pm

I'm using the latest Xubuntu (and one of the default installed 'dark' themes) to work on the IDE under Linux, I'm finding the v9.6.3 Message box pretty much unusable, not the single-line or the multi-line.
Anyone else having issues with a similar setup?

I may just go back to Ubuntu Studio with KDE Plasma de as that seemed pretty solid for me, and comes setup with Music DAW type stuff, soft synths and whatnot 'out of the box.' It's a 7th Gen i7 Laptop with NVMe so I probably need the newer builds (not LTS versions with older Kernels)
Last edited by PaulDaMacMan on Tue Feb 22, 2022 3:14 am, edited 1 time in total.
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9834
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Clear the MessageBox

Post by FourthWorld » Sun Feb 20, 2022 11:21 pm

What is the "unusable" behavior?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Clear the MessageBox

Post by richmond62 » Mon Feb 21, 2022 8:34 am

I run LC 9.6.3 on a regular basis on the following platforms:

MacOS 12

Xubuntu 22.04 beta 64-bit

Xubuntu 18.04 LTS both 32 and 64-bit

and have never noticed any obvious differences beyond the fact that
on the Xubuntu distros the Dictionary launches in the default web-browser.

PaulDaMacMan
Posts: 627
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: Clear the MessageBox

Post by PaulDaMacMan » Tue Feb 22, 2022 3:36 am

richmond62 wrote:
Mon Feb 21, 2022 8:34 am
I run LC 9.6.3 on a regular basis on the following platforms:

MacOS 12

Xubuntu 22.04 beta 64-bit

Xubuntu 18.04 LTS both 32 and 64-bit

and have never noticed any obvious differences beyond the fact that
on the Xubuntu distros the Dictionary launches in the default web-browser.
Are you using a Dark Theme or any other UI customizations?

By unusable I mean I can't execute lines of script from the message box. It seems like the message box window is losing focus before I can hit enter.
This is with a fresh install of LCC. 9.6.3... it may be that something else that I installed (device input APIs, KDE Plasma eye candy, or any number of things) are somehow interfering with it? Not sure but I did have some issues and had to reinstall ASLA to get Audio cooperating with JACK Audio server (working well now, even using FluidSynth from a Builder extension, no problems with that at all).

I've now tested on another Linux Distro and the problem doesn't occur at all with my Ubuntu Studio Installation (KDE Plasma), in fact LCC 9.6.3 runs superbly on this Distro! Only small issues with the dark themes, but hell.. I had those same sort of issues with Ubuntu Studio's own 'Install Release...' dialogs too! And I love the KDE Plasma eye candy.

Maybe I just borked my Xubuntu install? I'd have to do a clean install of that to test that theory.

This is part of the reason I'm looking into building an AppImage, self contained distro agnostic apps!

On another possible bug note, there is something wrong with when you first open the Preferences stack window. This happens on all 3 IDE platforms...
The first time you open the prefs window I can't click on anything, if I close it and then immediately reopen it, then interacting with that window works as expected. Anybody else experience this? I can't be the only one? I've done all of the usual things like reseting the preferences (deleting the files actually) and it still happens.
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Clear the MessageBox

Post by richmond62 » Tue Feb 22, 2022 9:15 am

Are you using a Dark Theme or any other UI customizations?
No, I'm not.

AND no "fancy" KDE stuff either, which in the past (about 12 years ago) played merry hell with LiveCode.

PERHAPS it might not be a bad idea for the Forum to acquire 7 more sections:

1. Things peculiar to GNU-Linux.

2. Things peculiar to MacOS.

3. Things peculiar to Windows.

4. Things peculiar to Android.

5. Things peculiar to iOS.

6. Things peculiar to HTML.

7. Things just plain peculiar. :D

Of course, if one wanted to be polite one could use the following formula:

Issues with GNU-Linux. 8)

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”