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

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

Re: Clear the MessageBox

Post by richmond62 » Sun Apr 10, 2022 3:13 pm

Oh my... :shock:
Shocked you may be: but what may not be clear to Thee is that I am trying to work out a way to both:

1. determine the maximum number of MessageBox lines the revpreferences stack can store.

2. Work out how to set that value to whatever one wants.

The preferences in the IDE missing a whole slew of useful things . . .

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Clear the MessageBox

Post by Klaus » Sun Apr 10, 2022 3:35 pm

There is a LOT going on in the message box stack. :shock:
I run my "Analyze it" stack over it and here the contents of the stack, maybe it will help you find what you are looking for...
Attachments
Contents of Message Box.livecode.zip
(15.86 KiB) Downloaded 62 times

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

Re: Clear the MessageBox

Post by richmond62 » Sun Apr 10, 2022 3:43 pm

OK: so I downloaded, unzipped and opened your stack:
-
SShot 2022-04-10 at 17.40.45.png
-
SShot 2022-04-10 at 17.41.00.png
-
and cannot work out how to get it to load the information for my system.

All of the buttons seem not to function.
Last edited by richmond62 on Sun Apr 10, 2022 3:52 pm, edited 1 time in total.

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Clear the MessageBox

Post by Klaus » Sun Apr 10, 2022 3:45 pm

This is just the resutling stack after "Analyze it" did its work, it will output a stack with all these info!
Find the "Analyze it" stack here on my website: https://www.major-k.de/xtalk.html

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

Re: Clear the MessageBox

Post by richmond62 » Sun Apr 10, 2022 3:57 pm

Alles is duidelijk en erg grappig:
-
SShot 2022-04-10 at 17.56.00.png

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Clear the MessageBox

Post by Klaus » Sun Apr 10, 2022 4:14 pm

Dat klopt! :-)

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

Re: Clear the MessageBox

Post by richmond62 » Sun Apr 10, 2022 4:25 pm

Not really:
-
SShot 2022-04-10 at 18.19.39.png
-
An I found naethin at all.

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Clear the MessageBox

Post by Klaus » Sun Apr 10, 2022 4:45 pm

Unfortunately my stack was created when I had no idea yet what a custom property may be.
Must have been alsmost 20 years ago, that's why they are not listed, and the revpreferences obviously only contains CPs.

The secret you are after must lie somewhere in the many scripts of the message box itself, or its behavior, if it has one.

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

Re: Clear the MessageBox

Post by richmond62 » Sun Apr 10, 2022 5:01 pm

And my attempt to saturate the Message Box did NOTHING:
-
SShot 2022-04-10 at 18.59.32.png

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

Re: Clear the MessageBox

Post by richmond62 » Sun Apr 10, 2022 5:16 pm

This:

Code: Select all

on mouseUp
set the IDESingleLineMessageHistory of stack "revpreferences" to empty
put empty into fld "fCRAP"
   put 1 into XXX
repeat until XXX > 10000
   put (XXX & cr) after fld "fCRAP"
add 1 to XXX
end repeat
set the IDESingleLineMessageHistory of stack "revpreferences" to fld "fCRAP" of stack "MSG Chopper"
end mouseUp
filled the IDESingleLineMessageHistory of stack "revpreferences" with 10,000 lines, and took about 3 minutes to do that.

So, it is anyone's guess to what the limit might be. 8)

It does seem that any customKey can have as many values as . . . well, at least 10,000 . . . bonkers! :roll:
Last edited by richmond62 on Sun Apr 10, 2022 5:20 pm, edited 1 time in total.

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Clear the MessageBox

Post by Klaus » Sun Apr 10, 2022 5:19 pm

You know how the MSG works? You enter a command and it will be executed immediately? 8)
No, you have to hit ENTER or RETURN before that happens.
And that is missing in your script.

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Clear the MessageBox

Post by Klaus » Sun Apr 10, 2022 5:21 pm

richmond62 wrote:
Sun Apr 10, 2022 5:16 pm
...
filled the IDESingleLineMessageHistory of stack "revpreferences" with 10,000 lines, and took about 3 minutes to do that.
This is the overhead of putting the text into a field!
Only use a variable, or maybe lock the screen, and it will be instantaneous!

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

Re: Clear the MessageBox

Post by richmond62 » Sun Apr 10, 2022 5:22 pm

I do ken full well how the MSG works: but the point of my recent 'mental patch' was to
find out the LIMIT on how many items entered in the Messge Box could be remembered,

and then, to find a way to set a maximum number of items.

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

Re: Clear the MessageBox

Post by richmond62 » Sun Apr 10, 2022 5:23 pm

the overhead of putting the text into a field!
Klaus: our relationship has lasted more than 20 years, and you should know my
obsession with fields by now . . . mainly because I like to see things going on.

This is a by-product of working with children . . . well, that's my excuse anyway. 8)

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Clear the MessageBox

Post by Klaus » Sun Apr 10, 2022 5:31 pm

So you really watched the field for 3 minutes straight?
OhhhhhhKayyyyyyyy... :D

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”